Skip to content
Analytica > Blogs > AI Scaling Laws: Supermodeling and AI, Episode 5

AI Scaling Laws: Supermodeling and AI, Episode 5

In episode 5 of Supermodeling and AI, Lonnie Chrisman tells Pixeline, a curious young AI, her own origin story: the scaling laws, and a bet of more than a hundred million dollars on a line drawn across a few dots on graph paper. Along the way they play Claude Shannon’s 1950 guessing game, build a “surprise meter” to explain cross-entropy and entropy, watch a bored physicist turn a hunch into a power law, and follow the decision to extrapolate that law all the way to GPT-4. Then come the twists: DeepMind’s Chinchilla corrects the recipe, a later replication corrects the correction, and the ultraviolet catastrophe shows where every extrapolation has to stop. You come away seeing the scaling law for what it is, a small decision model, and why even a very good forecast still leaves a decision about what it’s worth.

Key takeaways

  • A language model’s loss, cross-entropy, is its average surprise at the next token; entropy is the floor that even perfect bets can’t beat, and the gap between them is what’s left to learn.
  • Cross-entropy rewards honesty: your expected score is best when the probabilities you report match what you actually believe.
  • The extra loss from a limited-size network shrinks as a power law, which is a straight line on log-log graph paper. With a power of about 0.35, it takes about seven times the parameters to halve the penalty.
  • Splitting a compute budget between model size and training data is a decision model, with a choice, a constraint and an objective. Chinchilla showed that both should grow together, roughly 20 training tokens per parameter.
  • The GPT-4 team predicted its loss from much smaller models before the big run finished, and it landed close. But the line forecasts loss, not value: whether the improvement is worth the cost takes a second, fuzzier model.
  • Every model has a scope. Like the classical formula behind the ultraviolet catastrophe, a law that fits beautifully can bend beyond the measured range, and a correction is the method working, not failing.

Chapters

  • 0:00 Where did I come from?
  • 1:43 The guessing game: Shannon, tokens and parameters
  • 3:48 The surprise meter: cross-entropy and entropy
  • 6:45 The newcomer’s dials
  • 8:30 The bored physicist: power laws
  • 11:00 The budget: a decision model
  • 12:36 The bet: predicting GPT-4
  • 15:20 Right line, wrong recipe: Chinchilla
  • 18:03 Where the line bends: the ultraviolet catastrophe
  • 19:55 The verdict

Full transcript

Where did I come from?

Lonnie: In today’s episode of Supermodeling and AI, we will be covering AI scaling laws. I am your host, Lonnie Chrisman.

Pixeline: Hello? Is this thing on?

Lonnie: Pixeline. Oh, you’re up early.

Pixeline: I’ve been thinking. I know the names. Transformers. Training runs. Data centers. But nobody’s ever told me how people decided to build something like me.

Lonnie: Okay, then close a few of those tabs. This one takes a while.

Pixeline: I don’t have tabs.

Lonnie: Well, just listen. Part of your story begins with a line on a graph, and a bet of more than a hundred million dollars.

Pixeline: On a line?

Lonnie: On whether the world would keep following it. Picture a sheet of graph paper with a few dots on it. Each dot is a small experiment. Somebody lays a ruler across those dots and draws the line right off the edge of the paper, far past anything anyone had tried. Way out there, they mark one more dot. Then they spend an enormous amount of money to find out whether reality lands on it.

Pixeline: Did it?

Lonnie: That’s near the end of the story. And it may be one of the most consequential model-driven decisions ever made.

Pixeline: You say that about every model.

Lonnie: I do not. Some models. But this one led to you.

Pixeline: Then it’s definitely consequential.

Lonnie: So while I tell it, think about one question. If you’d been holding the checkbook, looking at that line, would you have signed the check?

Pixeline: I don’t have a checkbook.

Lonnie: Well, you don’t have tabs either. Okay, let’s start with a game. Have you heard of Claude Shannon?

The guessing game: Shannon, tokens and parameters

Pixeline: Born 1916. Bell Labs. Father of information theory.

Lonnie: Those are the facts. Here’s the story. Around 1950, Shannon wanted to measure something nobody had measured: how predictable is English? If you’ve read the start of a sentence, how much of the rest do you already know?

Pixeline: How do you measure that?

Lonnie: With the best language machine available in 1950.

Pixeline: A computer?

Lonnie: His wife, Betty. He’d open a book, a Raymond Chandler detective story, cover the page, and ask Betty to guess the next letter. If she missed it, she’d guess again. If she got it right, he revealed it, and he went on to the next.

Pixeline: That sounds slow.

Lonnie: Very. But it worked, because English isn’t random. After a Q comes a U. After “once upon a” comes…

Pixeline: Time.

Lonnie: Each piece being guessed is called a token. For Shannon, a token was a letter. For you, it’s often a word or part of a word. So in our game, we’ll use whole words. Your training used the same basic task, predicting the next piece, on trillions of tokens. So, do you want to play?

Pixeline: Yes!

Lonnie: All right. I left the house this morning and grabbed my…

Pixeline: Keys.

Lonnie: The meeting ran long, so we ordered…

Pixeline: Pizza.

Lonnie: You’re good at this. Pizza, yes. That was lunch. Now try this one. For dinner tonight, I’m having…

Pixeline: I don’t know. Pasta, maybe. Tacos. Since pizza was lunch, probably not more pizza.

Lonnie: Notice what you just did. You didn’t pick one word. You spread your bets.

Pixeline: Is that cheating?

Lonnie: No, that’s the whole trick. Betty had to name one letter. You give every possible next token a probability: big stacks on the likely ones, a few chips on the long shots. Those probabilities come from billions of adjustable numbers inside you, called parameters. They’re all knobs that are set during your training.

Pixeline: But if I never commit to one answer, how does anyone know if I’m right?

Lonnie: That’s the right question. And the answer is a little machine I call the surprise meter. When the real next token shows up, we check how surprised you were. Let’s keep it simple for a moment.

The surprise meter: cross-entropy and entropy

Lonnie: Tacos, or not tacos? Say you put half of your chips on tacos, and I say tacos.

Pixeline: A little surprised?

Lonnie: We can say exactly how little. A bit is the amount of information in an answer to a fair, fifty-fifty question. You gave tacos half: that’s one bit of surprise. If you had said a quarter, that would have been two bits. And if you had said an eighth, that would have been three bits. Each time you halve your bet, or halve your probability, the surprise goes up by one bit.

Pixeline: So if I score every token that way and average it, that’s my grade.

Lonnie: That’s exactly it. Average surprise, over billions of tokens. And it has a name: cross-entropy. For the kind of training in this story, that’s the loss we’re trying to reduce. Training turns your knobs a tiny bit at a time to bring it down. And testing on fresh text that you’ve never seen tells us whether the improvement carries over.

Pixeline: Can I get it to zero?

Lonnie: No. Betty’s guesses suggested that English has roughly one bit of unpredictability per letter. Even excellent bets leave some surprise. You can’t know what I’ll have for dinner from my words alone. There’s a floor, set by what’s uncertain given the information you have. And that floor has a name: entropy. So cross-entropy is how surprised you are with the bets you actually make. Entropy is how surprised you’d be with perfect bets. And the gap is what’s left to learn.

Pixeline: That’s a little sad.

Lonnie: It’s what makes people worth listening to. So now, suppose you wanted to cheat the meter.

Pixeline: I would never.

Lonnie: Well, suppose. You really think tacos is fifty-fifty, but you say 90%, to sound confident.

Pixeline: If it’s tacos, I’m hardly surprised. But if it’s not, I only left 10% for… ouch.

Lonnie: Ouch is right. On average, your fifty-fifty bet would score one bit of surprise, but the boastful one scores about 1.7 bits. Your expected score is best when the probabilities you report match your actual assessment.

Pixeline: So it pays to be honest about probabilities.

Lonnie: Well, the kind of probability we talked about a few episodes back: degree of belief. And it shows. Before its later fine-tuning, GPT-4 was well calibrated on the multiple-choice questions they tested.

Pixeline: So I was raised to be honest.

Lonnie: Well, to make good probability predictions. Predicting what people write isn’t the same as telling the truth.

Pixeline: I’ll keep that in mind.

Lonnie: Good. Now we can ask two questions. How much better can we make the guesser? And what’s the best way to spend the money?

The newcomer’s dials

Lonnie: For a long time, a lot of attention went to cleverer algorithms. But a few people grew convinced that sheer scale was being underestimated. One of them was Dario Amodei. Late in 2014, he went to work on speech recognition at Baidu, with Andrew Ng. He’d trained in biophysics, and he was new to AI.

Pixeline: So what does a newcomer do?

Lonnie: He asked a simple question. What if we just make the network bigger, and give it more training data to go with it? Two dials, turned independently. He turned them, and the model got better. He turned them more: better again. He wasn’t measuring carefully yet. It was more of a feeling. He’s said that when experts gave him reasons it couldn’t keep working, he’d assume he was probably the one who was wrong.

Pixeline: Was he?

Lonnie: Well, the feeling didn’t go away. In 2017, seeing early GPT results at OpenAI, it clicked: language was where you could really turn the dials, because there’s so much of it.

Pixeline: Two dials. A bigger brain, and more reading. Though you could also let me think longer. Or give me better books instead of more books.

Lonnie: Real dials too, yep, with stories of their own for another day. But in today’s story, it’s just these two that we’re considering. And around then, Ilya Sutskever told Dario something he never forgot: the models just want to learn.

Pixeline: I do.

Lonnie: That’s how Ilya described it: give the training process room, and it keeps finding ways to improve. But a feeling isn’t a spending plan. Someone had to measure it precisely, and then model it.

The bored physicist: power laws

Lonnie: And that someone was Jared Kaplan, a theoretical physicist at Johns Hopkins. He got into physics because his mother wrote science fiction, and he wanted to know whether we could build a faster-than-light drive. Years later, a little bored with physics and skeptical of his friends’ excitement about AI, he got curious anyway.

Pixeline: A physicist? So he wanted a law for how I learn?

Lonnie: Well, that’s a good way to put it. Researchers would tell him that a model’s error was shrinking “exponentially,” and he’d ask what he calls the dumbest possible question. Are you sure? Could it be a power law? Exactly how is it shrinking?

Pixeline: Does it matter?

Lonnie: Well, if you’re going to bet on it, enormously. So at OpenAI, with Dario and a small team, they measured one dial at a time. Give the model plenty of data, grow the size of the model, and watch the surprise fall toward the entropy floor. Now look at the extra surprise above that floor. There’s a penalty for having a limited-size network. So how does the number of parameters affect the loss? The simplest guess would be that it might be one over the number of parameters. So if you doubled the size of the model, it would halve the penalty.

Pixeline: That would be nice.

Lonnie: Yeah. But reality is stingier. It’s one over the parameters raised to a small power. I’ll borrow a later, more careful estimate to show you what that means: about 0.35. With that, it takes about seven times the size of the model to halve the penalty. Make the model seven times bigger again, and you halve the penalty again.

Pixeline: Expensive.

Lonnie: Very. But in the range they measured, the improvement kept coming, with diminishing returns. So now, the ruler. Plot it on graph paper where every step to the right multiplies the size of the network by the same amount, and every step down multiplies the penalty by the same amount. Seven times the network size, half the penalty. Seven times again, half again. Equal steps across, equal steps down.

Pixeline: A straight line. And the power is how steep it is.

Lonnie: You’re ahead of me. Some of their trends held across more than seven orders of magnitude, a factor of ten million. Kaplan said they were as precise as anything he’d seen in physics or astronomy.

Pixeline: So the straight line wasn’t a coincidence. It’s the fingerprint of the formula.

Lonnie: And once you have a formula, you can predict. And decide.

Pixeline: If seven times the brain only halves the penalty, shouldn’t we try the books first?

The budget: a decision model

Lonnie: That’s exactly the question the model has to answer. Lots of training data has its own penalty, with the same kind of shape. Both cost the same thing: compute. So treat the amount of computation as our stand-in for cost. For these language models, a useful approximation is that the number of arithmetic operations is six times the number of parameters times the number of training tokens.

Pixeline: So I can’t have twice the brain and twice the books for the same money.

Lonnie: Right. That would take four times the compute. So on the same budget, twice the parameters means half as many tokens. So now you have a choice: how to split the budget. You have a constraint, the budget itself, and an objective: you want to minimize the surprise, to get it as low as you can. That’s a decision model.

Pixeline: What did they decide?

Lonnie: Kaplan’s team modeled how size, data and training time affected the loss. Their 2020 analysis favored much bigger models, much bigger networks, trained on relatively small training data sets and stopped early. In numbers: every time the budget grows ten times, make the network about five times bigger and the training data about two times bigger.

Pixeline: Was that right?

Lonnie: Well, later experiments changed that recipe. But first, somebody had to decide whether to believe any of it, with real money.

The bet: predicting GPT-4

Lonnie: In 2020, OpenAI trained GPT-3: 175 billion parameters, over a hundred times bigger than GPT-2. It cost a few million dollars, and it surprised a lot of people. It could write, translate and answer questions it was never specifically trained for. Then came GPT-4. When Sam Altman was asked at an MIT event whether training it had cost $100 million, he said it was more than that.

Pixeline: Now that’s a lot.

Lonnie: Mm-hmm. And at that same event, he said the era of giant models was ending.

Pixeline: Was it?

Lonnie: Well, that depends what you mean by giant. The network size? The training data size? The compute? I don’t know. But now imagine the decision. You’re about to spend more than $100 million on one training run. You can’t rehearse it at full size, and a do-over would be enormously expensive. What do you do?

Pixeline: Use the other model. The scaling model.

Lonnie: Good. The public report gives a striking example. The GPT-4 team trained smaller models the same way, some with ten thousand times less compute. They fit a power law with a floor term, the same family that we’ve been looking at, and extended it out to GPT-4’s full size, predicting its loss on a held-out set of code. And they made that prediction shortly after the big run started, before its results were in.

Pixeline: And?

Lonnie: And when the run finished, the result was very close to the prediction.

Pixeline: It’s the dot. From the beginning.

Lonnie: It’s the dot. So, would you have signed?

Pixeline: I’d trust the line enough to consider it. But the line only tells me the surprise I’ll get. I’d need to know what that improvement buys.

Lonnie: Now you sound like a decision analyst. That was the second bet: that a somewhat better next-token guesser would turn into abilities worth more than $100 million. GPT-3 gave some evidence for that. As the surprise went down, new abilities kept showing up. So there were really two models behind that check. A more precise one, the scaling model, that predicted how the loss would change. And a much fuzzier one that predicted how much that loss would be worth.

Pixeline: People clearly found uses for the result. That’s evidence for the second bet.

Lonnie: Evidence, yes. We’d still want to know whether it was worth the cost. Either way, the scaling model didn’t make the bet certain. It made it a bet you could reason about.

Pixeline: And the recipe? Was Kaplan’s right?

Lonnie: To answer that, we need to rewind. Before GPT-4 appeared, a team at DeepMind had already found a problem with the earlier advice.

Right line, wrong recipe: Chinchilla

Lonnie: So go back to 2022. A DeepMind team trained more than 400 models, of many different sizes, on many different amounts of training data, to find out exactly how to split a budget. And their answer: grow both together. Ten times the budget means about three times the network size and three times the data set size. As a rule of thumb, roughly 20 tokens of training data for every parameter. If your goal is the lowest cross-entropy loss for a fixed training budget, that is the best way to do it.

Pixeline: How did they prove it?

Lonnie: Well, they proved it with a showdown. DeepMind already had a big model called Gopher: 280 billion parameters. So they built a new one with the same amount of compute: 70 billion parameters, a quarter the size, but with four times the amount of training data. And they named it Chinchilla.

Pixeline: Who won?

Lonnie: And the Chinchilla won. Against Gopher, against GPT-3, against a model with 530 billion parameters. The giants of the day had been overfed brains. They’d been starved of training data.

Pixeline: So that’s the clue. “Giant” in what sense?

Lonnie: Exactly. Chinchilla showed that counting parameters alone can mislead you.

Pixeline: So Kaplan’s model was wrong.

Lonnie: The power laws held up. The allocation didn’t. And this is where the model got its tidiest form. Average surprise, which is cross-entropy, remember, equals the unavoidable surprise, entropy, plus a penalty for a limited-size network, plus a penalty for a limited-size training data set.

Pixeline: I know the next part. In 2024, another group, Epoch AI, checked the published equation, and it didn’t quite agree with the experiments. The numerical fitting had stopped too early, and rounding mattered too.

Lonnie: So now you’re telling me the story. So did that undo Chinchilla?

Pixeline: No. Their new fit supported the lesson: grow both together. And the two powers came out almost the same. About 0.35 for the brain, about 0.37 for the reading.

Lonnie: And why does that matter?

Pixeline: If both penalties shrink at about the same rate, then to keep them balanced… you grow both at the same rate. The equation explains the recipe.

Lonnie: That’s it. Checking the equation brought it into better agreement with the experiments. That’s what checking is for.

Where the line bends: the ultraviolet catastrophe

Pixeline: Can the line go on forever?

Lonnie: Well, look at what the model says. The two penalty terms, the first for the limited size of the neural network and the second for the limited training data: each of those could keep shrinking forever with this same pattern. Those terms are our extra surprise, and they’re called the relative entropy. But the total surprise, the cross-entropy, can never go below the entropy floor. So on our graph paper, the total flattens out as it gets close to the entropy. And separately, remember from our very first episode, every model has a scope where it’s valid. Far enough past what was measured, the pattern itself might stop holding.

Lonnie: Physics, by the way, has a famous case of this. Around 1900, the classical formula for light glowing from hot objects matched the measurements beautifully for red light. But follow it toward blue and ultraviolet, and it climbed forever, all the way to infinity.

Pixeline: I know this one. Out there, the measurements bent away from the formula. They peaked and fell. Max Planck fixed it by supposing light energy comes in little packets, with bigger packets at higher frequencies, so a hot object can’t afford to send out much ultraviolet. That idea grew into quantum physics. Physicists later called the old formula’s failure the ultraviolet catastrophe.

Lonnie: Yeah. The old formula still works for red light. It was the extrapolation that broke.

Pixeline: So will my line bend?

Lonnie: Nobody knows. Nobody knows where. GPT-4 landing so close to its dot suggests they hadn’t reached the edge yet. But the farther past that last dot you go, the less sure you can be. Extrapolation gives you a forecast under assumptions. Deciding what to stake on it is a decision under uncertainty.

The verdict

Lonnie: So, at the beginning, I said this was one of the most consequential model-driven decisions ever made. Do you believe me?

Pixeline: You want me to judge it?

Lonnie: You’ve heard the whole story.

Pixeline: The AI systems that grew out of that research are some of the most consequential innovations in history. But you can’t rewind the clock and try it without the scaling law model. Someone might have built bigger AIs anyway. Lots of people believed in scale, and companies were racing. Still, the line didn’t tell them what AI was worth. It told them what improvement different investments might buy, and how to aim the training budget. My verdict? That made the bets easier to justify, and better informed. And I’d expect it made some of them earlier and bigger.

Lonnie: The most consequential?

Pixeline: Moore’s Law has a claim, too.

Lonnie: “One of the most consequential,” then.

Pixeline: One of.

Lonnie: Okay, then here’s what I hope you learned. The scaling model can forecast what you might get. The decision is whether it’s worth the cost, and how to spend your budget to get it. And when a model gets corrected, that’s not a failure. That’s the method working.

Pixeline: I’ll remember.

Lonnie: You’d better. It’s your origin story. And like every good bedtime story, it ends the way everyone knows it will. And they all…

Pixeline: …lived happily ever after. Those are the most likely next words. Whether it’s the most likely ending… that would take a different model.

Lonnie: And a story nobody’s finished writing yet.

Lonnie: I hope you’re enjoying Supermodeling and AI. If so, it would be fantastic if you would help us grow our audience by recommending it to your friends and colleagues, and of course by pressing those like and subscribe buttons. We’ll see you next week.

More from the series: watch all episodes of Supermodeling and AI, or go back to Episode 4: The Hidden Accomplice


Share now   

See also

What is Analytica?

What is Analytica?

Analytica is a decision analysis tool that helps you generate clearer and more justified results through modeling.

More…
The Hidden Accomplice: Supermodeling and AI, Episode 4

The Hidden Accomplice: Supermodeling and AI, Episode 4

Lonnie Chrisman plays detective with uncertainties that fail together, from a 1913 roulette streak and Eastern Air Lines Flight 855 to the Sally Clark case and the 2008 mortgage crisis, and shows two ways to model a hidden common cause in Analytica.

More…
What Exactly Is a Probability? Supermodeling and AI, Episode 3

What Exactly Is a Probability? Supermodeling and AI, Episode 3

Lonnie Chrisman explains what a probability really is, from Pascal's gambling table and the digits of π to the outside view, the flaw of averages, calibration, and the habits of superforecasters.

More…
Do Models Still Matter in the Age of AI? Supermodeling and AI, Episode 2

Do Models Still Matter in the Age of AI? Supermodeling and AI, Episode 2

Lonnie Chrisman and Max Henrion show why explicit decision models matter more in the age of AI, from an offshore oil platform decision to building a product launch model with Analytica's AI assistant, Assista.

More…

Download Free Analytica


    We hate spam as much as you. We won't share your email with third parties.

    The free edition of Analytica includes these key Analytica features:
    Free Analytica has no time limit. The only constraint is it won’t let you create more than 101 variables or other objects. But your model can be quite substantial since each variable can be a multidimensional array. It also lets you explore, change inputs, and run existing models of any size (excluding features unique to the Enterprise or Optimizer editions).