🟢 Understanding AI Minds
- There are many different types of AIs
- Basics of how LLMs work
Before delving into the rest of the course, it's important to grasp some fundamental concepts about various AIs and their functioning. This foundational knowledge will provide a clearer understanding of the material that follows.
The landscape of artificial intelligence is vast and varieda, encompassing thousands, if not millions, of distinct models. These models boast a broad spectrum of capabilities and applications. Some are generative, engineered to create outputs such as images, music, text, and even videos. In contrast, others are discriminative, designed to classify or differentiate between various inputs, like an image classifier distinguishing between cats and dogs. This course, however, will concentrate solely on generative AIs.
Among generative AIs, only a select few possess the advanced capabilities that make them particularly useful for prompt engineering. In this course, we will primarily focus on ChatGPT and other Large Language Models (LLMs). The techniques we explore are applicable to most LLMs.
How Large Language Models Work
Generative text AIs, such as GPT-3 and ChatGPT, operate based on a complex type of neural network known as a transformer architecture. This architecture comprises billions of artificial neurons. Here are some key points to understand about how these AIs work:
- At their core, these AIs are mathematical functions. Instead of a simple function like , think of them as functions with thousands of variables leading to thousands of possible outputs.
- These AIs process sentences by breaking them into units called tokens, which can be words or subwords. For example, the AI might read
I don't likeas
"I", "don", "'t", "like". Each token is then converted into a list of numbers for the AI to process.
- The AIs generate text by predicting the next token based on the previous ones. For instance, after
I don't like, the AI might predict
applesb. Each new token they generate is influenced by the previous tokens.
- Unlike humans who read from left to right or right to left, these AIs consider all tokens simultaneously.
It is important to note that terms like "think", "brain", and "neuron" are metaphors used to describe the workings of these AIs. In reality, these models are mathematical functions, not biological entities. They don't "think" in the way humans do; they calculate based on the data they've been trained on.
Understanding the fundamental workings of AI is crucial as we delve deeper into this course. While it's tempting to anthropomorphize AI for easier understanding, it's essential to remember that these models are mathematical functions, not thinking beings. They operate based on data and algorithms, not human cognition. As we continue to explore and debate the nature and capabilities of AI, this foundational knowledge will serve as a guide, helping us navigate the complex and fascinating world of artificial intelligence.