0:00Intro: MOFUSA Tech Academy
Welcome to MOFUSA Tech Academy. Beyond learning, towards mastery.
0:09Hook: a fixed budget, bigger model or more data?
Imagine a fixed budget for training a language model. You could build a giant model and train it on less text, or a smaller model trained on much more text. Which is better? In two thousand twenty-two, researchers at DeepMind put this to the test. Their smaller model, seventy billion parameters, trained on one point four trillion tokens, outperformed their own earlier model, which was four times larger but trained on far less text. The reason is one of the most remarkable discoveries in modern AI: language model performance improves in strikingly regular, predictable ways as you scale up.
Plotted the right way, the results form almost straight lines. These patterns are called scaling laws, and they shape how every large model is planned. Season Three, Module Eleven, stop two: scaling laws.
1:08The three quantities: N, D and C
Three quantities matter. The number of parameters, N: how big the model is. The number of training tokens, D: how much text it reads. And the compute, C: the total number of arithmetic operations used in training, counted in floating-point operations, or FLOPs. Compute is what costs money. Parameters and tokens are the two ways of spending it.
1:34The 6ND rule for training compute
There's a handy rule for estimating training compute. In the forward pass, every parameter takes part in roughly one multiplication and one addition for each token: about two operations per parameter per token. The backward pass, from episode twenty-five, costs about twice as much again. Add them up: roughly six operations, per parameter, per token. So training compute is about six times N times D. Let's try it. A seven-billion-parameter model trained on a hundred and forty billion tokens: six times seven billion times a hundred and forty billion, about six times ten to the twenty-one operations.
If one graphics card sustained, say, four hundred trillion operations a second, that's about a hundred and seventy GPU-days, or around four hours on a thousand GPUs. The seventy-billion-parameter model from the hook used a hundred times more. It's an approximation, but a remarkably useful one for planning.
2:37Power laws: straight lines on log-log plots
Here's what researchers found when they trained many models of different sizes. Plot the loss against the number of parameters on ordinary axes and you get a curve: big improvements at first, then smaller and smaller gains. But switch both axes to a logarithmic scale, and the points line up almost perfectly on a straight line. That's the signature of a power law. Every time you multiply the model size by ten, the reducible part of the loss, everything above a floor, falls by a roughly constant fraction. That floor is something no model can beat: the irreducible uncertainty in language itself.
The same kind of straight line appears for training data, and for compute. This regularity is enormously valuable. Teams can train a series of small, cheap models, fit the line, and predict roughly how well a huge model will do before spending a fortune training it.
3:38Chinchilla: compute-optimal training
So, the question from the start. For a fixed compute budget, what's the best split between model size and data? Draw a fixed budget as a valley. Make the model very large, and it can only afford to read a little text: undertrained. Make it very small, and it reads lots of text but lacks the capacity to learn from it. The lowest loss sits in between. The DeepMind study, nicknamed Chinchilla after the model it produced, found that as budgets grow, model size and data should grow together, in roughly equal proportion, which works out to about twenty training tokens for every parameter.
By that standard, many earlier large models were undertrained. G-P-T three, for example, had a hundred and seventy-five billion parameters but saw only about three hundred billion tokens, under two tokens per parameter. Chinchilla, with seventy billion parameters and one point four trillion tokens, beat larger models of its time.
4:43Training cost vs serving cost
But compute-optimal for training isn't the whole story. Training happens once. Using the model, called inference or serving, happens every time anyone sends a message, and each generated token costs roughly two operations per parameter. So if a model will serve millions of users, it can be worth training a smaller model on far more than twenty tokens per parameter. You pay more up front, but every answer afterwards is cheaper and faster. Many recent models are trained this way. Size also sets memory needs. In sixteen-bit precision, each parameter takes two bytes: about fourteen gigabytes just to hold the weights of a seven-billion-parameter model, and a hundred and forty for seventy billion.
We'll learn how to shrink that in Season Five. A quick note: names, prices and rankings in AI change fast. Everything on screen was accurate when this video was made, but some of it may have changed by the time you're watching.
5:49Do abilities emerge?
You may have heard that some abilities "emerge" suddenly in large models: tasks where small models score near zero, and then, past a certain size, performance jumps. Researchers have reported such jumps. But others have shown that some of them depend on how performance is measured. Score a multi-step arithmetic problem as simply right or wrong, and improvement looks sudden. Give partial credit, and the same models often show steady, gradual progress. What's clear is that the overall loss improves smoothly and predictably with scale.
How and when specific skills appear is still an active research question, so be wary of confident claims either way.
6:34The limits of scaling
Scaling has limits. High-quality text is finite, and at the time of recording, some estimates say the largest training runs are nearing the supply of high-quality public text, which is why researchers are exploring synthetic data and better data filtering, topics for Season Five. Each tenfold step costs vastly more money and energy. And returns diminish as the loss approaches its floor. So progress doesn't come only from size. Better data, better training methods, letting models think longer at answer time, and the post-training stage we'll meet next all matter as much as raw scale.
7:17Try it yourself: budget a small model
Let's budget a small model: one billion parameters, trained on twenty billion tokens, the compute-optimal ratio. How many operations? Pause and use six N D. Six times one billion times twenty billion: one point two times ten to the twenty operations. With our illustrative GPU speed, that's about eighty-three GPU-hours, roughly three and a half days on a single GPU. Our seven-billion-parameter example needed forty-nine times more. That's why research labs often test ideas on small models first, then use scaling laws to predict how the big one will turn out.
8:07Predict: twice the compute
Your compute budget doubles. Should you double the model, double the data, or something else? Pause. According to the compute-optimal finding, grow both, each by about one point four times, the square root of two, because one point four times one point four is about two. Parameters and training tokens should grow roughly in step. Putting everything into a bigger model with the same data, which was common before that finding, leaves the model undertrained.
8:44Reading a power law
Here's how to read a power law. Suppose, for illustration, the reducible part of the loss shrinks with parameters to the power minus zero point one. Then every ten-fold increase in size multiplies that loss by about zero point seven nine: roughly twenty-one percent lower. Each ten-times step gives the same relative gain, which is why it's a straight line on a log–log plot. But on ordinary axes, the gains look smaller and smaller, because each step costs ten times more than the last.
9:19Why train beyond 20 tokens per parameter
If twenty tokens per parameter is optimal, why do many models train on far more? Because training happens once, but serving happens every day. Generating a token costs about two operations per parameter, so a seven-billion-parameter model is ten times cheaper to run than a seventy-billion one. One widely used open model with eight billion parameters was reportedly trained on about fifteen trillion tokens, nearly two thousand tokens per parameter. Overtraining a smaller model costs more up front but saves money on every answer afterwards.
9:58Predict: the exact-match illusion
Here's a simple model of the emergence debate. An answer is five tokens long, and only counts if every token is right. If the model gets each token right half the time, how often is the whole answer right? Pause. Only about three percent. At seventy percent per token, seventeen percent. At ninety percent, fifty-nine. At ninety-five, seventy-seven. Per-token skill improved steadily, but the all-or-nothing score sat near zero, then shot up. Part of what looks like a sudden new ability can come from how we choose to measure it.
10:41Will we run out of text?
Can scaling continue forever? One concern is data. Training sets have grown so fast that researchers have estimated when we might use up the supply of high-quality public text, and the estimates vary widely. Labs are responding by repeating good data a few times, though the benefit shrinks with each pass, filtering better, adding other languages and modalities, and generating synthetic training data with models, which has to be checked carefully so mistakes don't compound.
11:14A new dial: compute at answer time
Scaling isn't only about training anymore. There's a second dial: spending more compute when answering. A model can write out longer reasoning, or produce several answers and take a majority vote. In a simple model where each answer is independently right sixty percent of the time, voting across five answers raises accuracy to about sixty-eight percent. We'll explore this test-time compute in episode forty-two, along with its limits.
11:45A short history of bigger models
Here's how fast "bigger" happened. In two thousand eighteen, a GPT-style model had a hundred and seventeen million parameters. In two thousand nineteen, one and a half billion. In two thousand twenty, a hundred and seventy-five billion. That's about fifteen-hundred-fold growth in two years. Since then, many labs have stopped publishing exact sizes. What made such big bets reasonable was this episode's idea: scaling laws turned building a giant model from a gamble into a forecast.
12:20Better data moves the whole line
Scaling laws also show the value of good data. Train a series of models on carefully filtered text, and the whole line on the log–log plot can sit lower than for unfiltered text, reaching the same loss with less compute. So labs run small pilot experiments on different data mixes, compare the lines, and pick the best mix before spending millions on the big run. Forecasts from small runs can still miss, which is why careful teams leave a margin.
12:51Myth vs Fact
Myth: the biggest model is always the best. Fact: a smaller model trained on more and better data can beat a larger one, as Chinchilla showed. And the right choice also depends on cost, speed and the job at hand, which is exactly how we'll choose models for Brightcart in Season Four.
13:11Recap
Let's recap. Training compute is roughly six times the parameters times the tokens. Loss falls as a power law with model size, data and compute, forming straight lines on log–log plots, which lets teams predict big runs from small ones. For a fixed training budget, model size and data should grow together, about twenty tokens per parameter. But because serving costs grow with model size, many models are deliberately smaller and trained for longer. And scaling has real limits: data, cost and diminishing returns. One sentence to remember: grow the model and the data together, and remember who pays for every answer.
13:56Next: post-training
Mission complete. Meera now knows how to split a training budget, and why a smaller, longer-trained model might serve Brightcart's customers better. But even a perfectly scaled base model just continues text. Next, we turn it into an assistant: teaching it to follow instructions with examples, then shaping its behaviour with human preferences. Post-training: S-F-T, R-L-H-F and D-P-O. See you on the map.