← Latest papers
🤖 machine learning

A Defense of the Quadratic Model

This paper demonstrates that the simple quadratic model, when applied via Taylor expansion at intermediate checkpoints, can surprisingly accurately predict optimization dynamics in large language models, revealing structured Hessian spectra and confirming that training typically occurs at a stochastic edge of stability dependent on batch size.

Original authors: Alexandru Meterez, Pranav Ajit Nair, Depen Morwani, Cengiz Pehlevan, Sham Kakade, Alex Damian

Published 2026-07-27
📖 4 min read☕ Coffee break read

Original authors: Alexandru Meterez, Pranav Ajit Nair, Depen Morwani, Cengiz Pehlevan, Sham Kakade, Alex Damian

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you are trying to navigate a massive, foggy mountain range at night. This mountain is the "loss landscape" of a giant Artificial Intelligence, a complex terrain where every step the AI takes is an attempt to find the lowest valley (the best possible performance). The problem is that the mountain is so huge and twisted that no one can see the whole map at once. For years, scientists have tried to predict how the AI moves by using simple, flat maps or idealized models. Sometimes these maps work, but often they are too simple to be useful, or too complicated to calculate. The big question is: Can we use a simple, flat map to predict the AI's journey through this chaotic mountain?

To understand this, you need to know a few things. First, AI models learn by "optimizing," which just means taking tiny steps to reduce their mistakes. Second, the "Hessian" is a mathematical way of describing how steep or curved the ground is at any specific spot. If you know the curve, you can predict if a step will take you down into a valley or up a cliff. Finally, there is a concept called the "edge of stability," which is like walking right on the edge of a cliff where the ground is so steep that one wrong step sends you tumbling, yet the AI somehow keeps walking without falling. This paper asks if the simplest possible map—a flat, quadratic (bowl-shaped) approximation—can actually predict how a giant AI behaves in the real world.

The authors of this paper decided to stress-test this simple "quadratic model" on a Large Language Model (LLM) with 150 million parameters, trained on 3 billion words. They wanted to see if, instead of trying to understand the whole crazy mountain, they could just look at a small, flat patch of ground around where the AI currently is, and use that to predict the next few steps.

They found something surprisingly cool: the simple bowl-shaped map works! When they stopped the training every 10% of the way through and created a flat, quadratic version of the problem at that exact spot, this simple model could accurately predict the AI's behavior for the next 10% of the training. It's as if, even though the mountain is a jagged mess, the AI spends so much time in specific "bowl-shaped" valleys that a simple map of a bowl is enough to tell you where it will go next. The prediction was even better near the end of training than at the beginning.

Once they proved the simple map worked, they used it to peek under the hood of the AI's learning process. They looked at the "Hessian spectrum," which is like a list of all the different slopes and curves in the landscape. They discovered that this list isn't random; it has a very specific structure. The top part of the list is dominated by the part of the AI that handles vocabulary (the "unembedding" layer), while the long, trailing part of the list follows a universal "power law." This means the shape of the tail is identical whether the AI is using a tiny batch of data or a huge one, and it doesn't care about the specific tricks (preconditioners) the optimizer uses to speed things up. It's a universal pattern hidden in the chaos.

Finally, they investigated the "edge of stability." They wanted to know if the AI is walking carefully in the middle of the valley or dancing on the very edge of a cliff. By tweaking the learning rate and the batch size (the size of the data chunks), they found that the AI is indeed dancing on the edge. When the AI uses small batches, it dances on a "stochastic edge of stability," meaning it's teetering because of the random noise in the data. When it uses huge batches, it teeters on a "deterministic edge," where the instability is caused by the math of the steps themselves. In both cases, the AI is operating right at the limit of what is stable, which suggests that this precarious balancing act is actually how these models learn best.

The paper concludes that while the AI's world is incredibly complex, we can understand it by treating it as a sequence of simple, local quadratic problems. Instead of needing a single, impossible theory for the whole mountain, we can just look at the local bowl the AI is standing in. This simple model isn't just a toy; it's a surprisingly accurate proxy for how real-world AI pretraining actually works, giving us a new, tractable way to understand and improve these massive systems.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →