The leap from large language models (LLMs) to artificial general intelligence (AGI) hinges on a fundamental understanding of how these technologies process information. This exploration reveals not only the mechanics behind LLMs but also the missing elements necessary for achieving true intelligence.
To grasp the intricacies of LLMs, one must first recognize that they operate through a system of mathematical predictions. Vishal Misra, a prominent researcher in the field, presents a compelling argument that while LLMs excel at pattern matching, they lack the ability to understand the underlying causality that drives genuine intelligence.
In this discussion, we will delve into the mathematical models that explain how LLMs function, the concept of in-context learning, and the implications for future advancements in AI technology, specifically regarding the transition from correlation to causation.
The Mathematical Underpinnings of LLMs
Misra's research outlines a model where LLMs are viewed as gigantic matrices. Each row corresponds to a prompt, with columns representing a distribution of probabilities for the next token. This framework allows for a clearer understanding of how LLMs generate text based on prior input.
For instance, when given a prompt like "protein," the model predicts the next word by sampling from a distribution over its vocabulary of around 50,000 tokens. This process is an example of Bayesian updating, where the model adjusts its predictions based on new information fed into it.
"“The entirety of LLMs is this giant matrix where you have every row. Given the vocabulary of these LLMs, there’s no way that these models can represent it exactly.”"
What's Missing Between LLMs and AGI - Vishal Misra & Martin Casado
This sparse representation allows LLMs to compress vast amounts of data effectively, aiding in their ability to respond to various prompts. However, the critical insight here is that while LLMs can predict the most likely next token based on correlations, they do not inherently understand the causal relationships between concepts.
In-Context Learning and Its Implications
In-context learning refers to the model's ability to adapt its responses based on examples provided in real-time. Misra’s experiments demonstrated that when LLMs are exposed to a set of examples, their posterior probabilities for certain tokens increase as they learn the context of the task.
For example, when querying a cricket statistics database, Misra designed a domain-specific language (DSL) that allowed GPT-3 to interpret natural language queries. This was achieved through few-shot learning, where the model adapted its understanding based on the limited context previously provided.
"“Once the training is done, those weights are frozen. During inference, the model does not retain any learning that happened in the previous instance.”"
What's Missing Between LLMs and AGI - Vishal Misra & Martin Casado
This ability to learn in context is powerful, yet it highlights a significant limitation: LLMs do not retain knowledge between sessions, unlike human cognitive processes which remain plastic throughout life.
