Why large language models still puzzle the people building them
Deep Learning By What The Future Newsroom · March 4, 2024 · 5 min read

Why large language models still puzzle the people building them

Large language models work well enough to power major new products, but researchers still cannot fully explain why they generalize so effectively. Phenomena such as grokking, double descent, and benign overfitting show that deep learning can behave in ways that challenge older assumptions about statistics and model training.

Large language models have become central to the current AI boom, but the science behind their success is still unsettled. Researchers can train systems that learn language, solve problems, and generalize across unfamiliar examples, yet they continue to debate why those abilities appear when they do.

That gap matters. Better explanations could help researchers build stronger systems, train them more efficiently, and understand the risks of more powerful future models.

The strange case of grokking

One of the clearest examples began with Yuri Burda and Harri Edwards, researchers at OpenAI, who were testing what it would take for a language model to learn basic arithmetic. They wanted to know how many examples of adding two numbers a model needed before it could add new pairs it had not seen.

At first, the models did not truly learn the task. They remembered the sums from training but failed when asked to solve new ones.

Then an accident changed the result. Some experiments were left running for days instead of hours, showing the models the same examples far longer than planned. When Burda and Edwards returned, the models had learned to add two numbers after all.

The surprising part was not only that the models learned. It was that they seemed to make the jump suddenly after a long period of failure. Burda, Edwards, and colleagues studied the behavior and called it grokking.

Hattie Zhou, an AI researcher at the University of Montreal and Apple Machine Learning Research, framed the concern plainly: “Can we ever be confident that models have stopped learning? Because maybe we just haven’t trained for long enough.”

Generalization is the core mystery

Grokking is one example of a broader puzzle: generalization. In machine learning, a model is trained on specific examples, but the goal is for it to handle new cases. A system that spots faces, translates sentences, or avoids pedestrians must do more than remember its training data.

Large language models such as OpenAI’s GPT-4 and Google DeepMind’s Gemini appear especially good at this. Boaz Barak, a computer scientist at Harvard University who is on secondment to OpenAI’s superalignment team for a year, described the mystery through language and math. A model might learn math problems in English, then see French literature, and from that become able to solve math problems in French.

That kind of transfer goes beyond the easier case of learning one type of problem and then solving similar examples in the same format. It suggests that the model has found useful structure inside the data, even if researchers cannot yet describe that structure fully.

Zhou said that when she began studying AI, the field often taught how to train models and what results to expect, but not why the process produced such capable systems. Mikhail Belkin, a computer scientist at the University of California, San Diego, made a similar point. Researchers are not starting from total ignorance, but their theory does not yet match what the models can do.

Why bigger models challenged old expectations

Classical statistics raised a clear warning about large models: as models grow, they should become more prone to overfitting. In simple terms, a model can fit its training examples so tightly that it performs poorly on new data.

The source article explains this with a chart. A straight line through data points may be too simple, while a very wiggly line that touches every point may memorize the training data without generalizing well. Traditional thinking suggested there should be a sweet spot between those extremes.

Large models complicated that picture. The most powerful models today are described as having up to a trillion parameters. More parameters should give a model more ways to overfit, yet some large models keep improving.

In 2018, Belkin and colleagues identified a pattern called double descent. Instead of error falling and then rising as models got larger, error could fall, rise, and then fall again. A year later, Barak coauthored a paper showing that the same type of behavior could appear not only as models got bigger, but also when they used large amounts of training data or were trained for longer.

This behavior is known as benign overfitting, and it remains under debate. Belkin has suggested that a larger model may be more likely to find a simple pattern that fits the data well and generalizes. But he also acknowledged that large language models reopened the mystery, especially after models appeared that could speak 100 languages.

The debate is still active

Researchers are not united on what these observations mean. Lauro Langosco at the University of Cambridge, UK, said there is no consensus about what is happening with grokking. At NeurIPS, Langosco and colleagues presented a paper arguing that grokking and double descent may be different aspects of the same phenomenon.

At the same conference, Alicia Curth, who studies statistics at the University of Cambridge, and colleagues argued that double descent may be an illusion created by how model complexity is measured. Belkin and colleagues used model size, measured by the number of parameters, as a proxy for complexity. Curth’s team argued that parameters are not all equivalent: adding them can make a model more complex in some cases and less complex in others, depending on how they are used during training.

Curth’s position does not deny that many questions remain. Instead, it suggests that modern machine learning may still fit within existing mathematics if researchers choose a better measure of complexity.

Why the explanation matters

It may sound academic to ask whether deep learning follows classical statistics or requires new theory. But the answer could shape how future AI systems are built and controlled.

Progress in deep learning has often come from trial and error. Researchers adopt methods that work, combine them with new techniques, and test the results. Belkin compared this state of practice to recipes that work before the underlying chemistry is fully understood.

That approach has produced powerful systems, but it also makes progress hard to predict. Many capabilities of GPT-4 surprised even the people who built it, and researchers still argue over what it can and cannot do.

For Barak, even after a model exists, it is not easy to explain why a specific capability emerged at a specific point. For Belkin, the absence of a fundamental theory makes it difficult to know what to expect from future systems.

The practical stakes are clear: large language models already work, but researchers still need a deeper account of why. Until that account improves, AI development will continue to combine remarkable results with unresolved scientific uncertainty.

← Back to the wire

Read next