0% found this document useful (0 votes)
15 views2 pages

Understanding Generative AI and LLMs

The document discusses the complexities of generative AI, particularly large language models (LLMs) and their underlying technologies like deep learning and Generative Adversarial Networks (GANs). It highlights the capabilities of LLMs in generating various types of content and the challenges related to their training and transparency. Additionally, it outlines options for businesses to utilize LLMs, including customization and fine-tuning for specific tasks.

Uploaded by

Valen Guu
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
15 views2 pages

Understanding Generative AI and LLMs

The document discusses the complexities of generative AI, particularly large language models (LLMs) and their underlying technologies like deep learning and Generative Adversarial Networks (GANs). It highlights the capabilities of LLMs in generating various types of content and the challenges related to their training and transparency. Additionally, it outlines options for businesses to utilize LLMs, including customization and fine-tuning for specific tasks.

Uploaded by

Valen Guu
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

It is so complex that the developers don’t know a 100% how they work.

It is a type of ai that is within deep learning.

Ai
Machine learning inside ai
Deep learning inside machine learning
Generative ai inside deep learning

Using a forming database and entering a prompt, then this kind of applications can generate
content (text, audios, images…).

ChatGPT is a specific product of what we call a large language model.

We insert a prompt and we ask the machine to do something with the text. And then base on
that we might get some results.

General/generic means that we can make a lot of things.

General ai uses neural networks, and deep learning techniques (a lot of layers of neurons).
The more layers, and the more neurons the better the performance.

We need to use a large dataset to train those machines.

Using probabilities these machines are able to generate solutions.

Multimodal Large language models (MLLM): they can produce whatever we want besides
text (compositions, videos, photos…). You can not only produce text (chatGPT 4.0).

Generative Adversarial Networks (GAN). How do they work? We have a generator and a
discriminator. Inside we have deep learning neural networks. We put random examples so
the generator can create some data and the discriminator compares the random data with
real data, if they are not the same they are able to update the data they have so that they
are similar.

Initially we have random weights and the faces we generate will be very different to the real
faces. The machine will learn from error to adjust the correct weighs with the algorithm called
backpropagation so that the faces are more similar. Thanks to the discriminator the
generator will be able to create faces that are similar to real faces.

Large language models (LLM) are able to understand the patterns of the text. They use a
transformer: a mathematical function where we use algebra and matrices to calculate
probabilities.
They are able to predict the next word.

When we work with words we need to embed these words into vectors (multidimensional
vectors which are huge). The neural networks only function with numbers. The number
behind the networks take into account the context and the position in a sentence and if a
word is a pronoun, substantive, verb…

LLM use the attention mechanism. Based on the context they are able to give more weight
on one part than the other. They use probability to guess the next word.

To train these language models they needed to take billions of data. Then they realized that
the machine was not able to produce right answers. To avoid that they took humans with
questions and answers to adjust the answers of the large language model.

Problems with LLM:


-​ We don’t know which data was used to train the model. It is not transparent
-​ We don’t know which data they used to refine (finetune) the model and improve the
accuracy
-​ They needed humans to check it (which people did they use? and which questions
and answers?)

From this point we have a machine (LLM) which is a generic language model (it can do a lot
of things). To apply it on a company you have three options:
-​ Use chat gpt or others as they are
-​ We can also customize these tools using prompt engineering (how we write the text
to have the answers we want)
-​ We can take a pre-trained gpt and then we introduce information from a company.
Then we are able to change some of the weights of the model. A gpt is based on
neural networks so if we introduce info about our company, then we can customize
these gpts to make specific tasks for the companies. This is what’s called fine tuning.
WE CANNOT DO IT WITH CHAT GPT, but we have open source large language
models. You can download them and retrain them (llama from meta).
-​ You can build them from scratch

LLM need to be in the cloud, so they are expensive

SLM is Small Language Models. They are very specific, specific tasks. Phi is a new one.
They have less parameters. You can now substitute someone with an SLM

Generative AI can change the way we work today. We can use them as machines to have
more expertise. We can use these machines to establish better relations with
customers/suppliers…

Common questions

Powered by AI

A significant transparency issue with Large Language Models (LLMs) is the lack of clarity around the datasets used for training and fine-tuning. Users are not informed which specific data sources were employed initially or during refinement, leading to uncertainty about the reliability and bias potential in generated outputs. Furthermore, the opacity extends to the involvement of human oversight in aligning model outputs with expected responses, as information about the selection of participants and the criteria for questions and answers remains undisclosed .

Generative Adversarial Networks (GANs) work through a dual-system approach comprising a generator and a discriminator, both of which utilize deep learning neural networks. The generator creates data, such as simulated faces, starting with random examples. Simultaneously, the discriminator evaluates these generated examples against real data, discerning differences. This adversarial process enables the generator to iteratively refine its outputs based on feedback from the discriminator. The adjustment mechanism uses backpropagation to calibrate the neural network's weights, progressively enhancing the realism of the generated data to resemble true data closely .

Developers encounter several challenges with neural networks in deep learning applications such as LLMs. Key issues include the complexity of underlying mechanisms which developers do not fully understand, complicating optimization and troubleshooting processes. Additionally, training these large models demands vast computational resources and data, often lacking transparency regarding data origins and refinement methodologies. Fine-tuning these models also requires careful adjustment and validation, often involving human oversight to align outputs with expectations, increasing resource dependency and potentially introducing bias .

Small Language Models (SLMs) contrast with Large Language Models (LLMs) through their focused application and reduced parameter set. SLMs are designed to perform specific tasks with higher efficiency due to their smaller size, making them more suitable for certain applications where resource use must be minimized or precise task performance is prioritized. LLMs, in contrast, are versatile generalists capable of a broad range of functions. This generality often requires substantially greater computational resources, and they are typically hosted in the cloud due to their complexity and size .

AI tools like ChatGPT can significantly enhance customer relationships by providing rapid responses, personalized interactions, and consistent availability. These tools enable companies to offer efficient and flexible customer service, potentially increasing satisfaction and loyalty. By utilizing AI's ability to handle large volumes of requests and learn from interactions, organizations can improve engagement quality and gather valuable insights into customer preferences, facilitating tailored communication strategies .

Customizing open-source LLMs such as LLaMA offers significant advantages, including the flexibility to tailor models to specific business needs and the ability to leverage proprietary data to enhance performance in niche areas. This approach allows companies to modify model weights for bespoke functionality while maintaining control over critical inputs, enhancing relevance and effectiveness. However, limitations arise from the need for substantial technical expertise to implement changes, ensuring data privacy, and the resource-intensive nature of retraining models. Additionally, maintaining models post-customization requires ongoing monitoring to prevent drift and ensure compliance with evolving business and regulatory requirements .

Multimodal large language models (MLLMs) extend their generative capabilities beyond text to include outputs like compositions, videos, and photos. This versatility stems from their architecture and training, allowing them to understand and generate content across different modalities. By using extensive datasets and employing mechanisms like the attention mechanism and embeddings, MLLMs can integrate information effectively across different types of media, enabling applications ranging from creative industries to customer service, where diverse content needs are addressed .

The attention mechanism in Large Language Models (LLMs) allows these models to assign varying levels of importance to different parts of a given input, focusing more on certain data points based on context. This mechanism is crucial for LLMs to understand text patterns and predict the next word in a sequence effectively. It helps in embedding words into vectors and considering contextual nuances, enabling better handling of complex linguistic structures by prioritizing certain words and phrases over others .

Prompt engineering enhances the utility of pre-trained language models by tailoring input instructions to shape outputs towards organizational goals. It involves crafting precise, context-aware prompts that direct the model to deliver information or perform tasks aligned with specific business processes. This strategic customization allows companies to leverage the general capabilities of pre-trained models, like GPT, to address niche applications without modifying the core model structure, efficiently aligning outcomes with business-specific objectives and workflows .

Companies can customize a generic Large Language Model (LLM) using several approaches. They can employ prompt engineering, which involves crafting specific input prompts to shape desired outputs from the model. Additionally, by incorporating company-specific information, businesses can fine-tune a pre-trained model, adjusting some of its weights for specialized applications. Open-source LLMs, such as those from Meta, offer further customization potential by allowing users to retrain models with proprietary data, thereby tailoring them to execute company-specific tasks effectively .

You might also like