🌏 中文版
Video status: Videos included. Video source and notes
Edition: based on MIT 6.7960 Fall 2024 OCW (OCW Lec 20, Scaling Laws, taught by Phillip Isola). The recording OCW published is only 38 minutes long, and the official transcript stops around page 17 of the 52-page slide deck, in the middle of a sentence. The first half of this post follows the transcript and slides; the second half follows the slides only, and the two parts are marked separately.
The Question This Lecture Answers
You have a fixed compute budget. Should you train a very large model on a little data, or a smaller model on a lot of data? The two can cost the same number of floating-point operations and give very different results.
Lecture 20 of MIT 6.7960 answers with scaling laws: measure at small scale how loss changes with resources, then extrapolate to large scale. Phillip Isola warns at the start that these last lectures are ongoing science, and that it is not yet known whether these empirical results will stand the test of time.
After this post you should be able to:
- Use a power-law exponent to work out how much the loss drops when a resource doubles.
- Explain why growing only the model or only the data shows no power law.
- Compare the Kaplan and Chinchilla allocations, and work out what each prescribes when compute grows 10x.
- Judge where increasing the batch size stops paying off.
Prerequisites are training and test loss from Lecture 6 on generalization and Lecture 8 on Transformers.
Why Study Scale (from the Recording)
Deep learning wins when data, compute and parameters are all plentiful. His account can be organized into three reasons.
The trend itself is predictable. OpenAI's AI and Compute tracks the compute used to train landmark models, which grows steadily by year; Isola says in class that it doubles about every three months and that the slope has been steepening (the OpenAI post gives 3.4 months, with data through 2018).
The bitter lesson. Richard Sutton's 2019 essay The Bitter Lesson argues that most clever algorithms did not last, and that what won systematically were simple methods that scale with resources. So which method is better today matters less than which is better after scaling. Isola says many people disliked the essay and many loved it, and that he thinks there is a lot of truth in it.
It saves money. This is the most practical reason. If one training run of the final model costs a million dollars, intuition says the hyperparameter search during design should cost a hundred times that. What is actually done is to run all the searches and comparisons at a thousandth to a ten-thousandth of the final scale, measure at several small scales, fit a curve of loss against compute, extrapolate to the final scale, pick the configuration predicted to be best, and train at large scale once. The slides label this a 10,000x saving.
Such curves hold for more than the loss. The lecture shows a plot of downstream capability (pass rate on 23 coding problems) that is also a predictable curve.
Isola also notes that scaling laws are not a new idea. Asymptotic analysis and big-O notation in an algorithms course ask the same thing: how does cost grow as the input grows?
The Form of the Problem
Three resources: the number of parameters , the amount of data (here the number of training tokens, not depth and not dimensionality), and compute . Training a model with parameters on data points costs roughly in proportion to . The estimate used in Kaplan et al.'s 2020 paper is:
is the batch size and the number of gradient steps, so is the data seen. Isola says he does not know where the constant 6 comes from, only that it converts the units to floating-point operations.
The problem to solve: for fixed , which and give the lowest test loss?
A student asks whether compute equals time. It does not: twice the compute can be twice the time, or twice the GPUs running in parallel.
The experimental setup (from the slides): an autoregressive Transformer on WebText2 with a 1024-token context; model sizes from 768 to 1.5 billion non-embedding parameters, and data from 22 million to 23 billion tokens. Everything is trained for one epoch, so the tokens seen equal the dataset size.
Finding One: Power Laws (from the Recording)
With all other factors set optimally, test loss relates to any one resource approximately as:
A power law means "multiply the resource by a factor and the loss is multiplied by a fixed factor." Double the resource and the loss becomes of what it was. On log-log axes it is a straight line with slope , and only sets the height of the line.
For data, Kaplan et al. fit and tokens. Parameters and compute each have their own power law with different exponents and constants.
One exchange and one caution from class are worth recording:
- Why a power law and not exponential decay? Isola answers that it is mostly an empirical fact: a power law fits better than an exponential. A theoretical model comes later, but he says he is not sure how much he trusts it.
- Is this a physical law? No. The points could have traced a parabola; they just happen to form a line on a log-log plot.
The Power Law Is an Envelope
This is the easiest point to misread. Take one model of fixed size and one dataset of fixed size, add only compute, and what you plot is not a power law but a curve that flattens. The power law is the lower edge (the Pareto frontier) of many such curves: at each level of compute, tune the model size and the data to their best values, and joining those points gives the straight line.
So if you scale only one factor, diminishing returns are normal and do not mean the power law has failed.
Finding Two: Scale Model and Data Together (from the Recording)
Plot models of different sizes on the same "loss against tokens" chart: a large enough model follows the power law; a model that is too small stops improving however much data you add, because it lacks the capacity. In the words of Kaplan et al., performance improves predictably as long as and are scaled up in tandem, and enters diminishing returns if either is held fixed while the other increases.
The joint forms they fit (from the slides):
Isola treats formulas like these with reserve. He quotes "with five parameters you can fit an elephant" and says there may be some reading of tea leaves here. Counting on the spot he gets five free constants in the first formula; as written there are four: , , and . As for who said it, he first guesses von Neumann, a student says they heard it attributed to Anderson, and he accepts that. An addition of mine: the usual source is Freeman Dyson recalling Fermi quoting von Neumann, and the original has four parameters fitting the elephant and a fifth making it wiggle its trunk (see A meeting with Enrico Fermi).
The evidence that these forms are more than curve fitting is that they extrapolate. Rosenfeld et al. fit a similar form (a sum of two power laws) on vision and language tasks using only points at some scales, then predict scales that were held out, and the predictions hold.
The fitted exponents imply an optimal allocation of compute:
That is, as compute grows the model should grow much more than the data. Next to it the slides say in blue: take these exact equations and numbers with a grain of salt.
The transcript and the public recording end here, on the sentence where Isola is about to summarize the second finding.
From Here On, Slides Only
Nothing in this section has the lecturer's spoken explanation. This post relays what the slides say and does not add inferences the slides do not make.
The Remaining Findings of Kaplan et al.
- Finding three: performance depends strongly on scale and only weakly on model shape (the ratio of depth, width and attention heads).
- Finding four: larger models need fewer samples to reach the same performance. The slides also cite Li et al. (2020): larger models train faster, and little is lost by compressing them afterward.
The takeaways on the slides: loss is more sensitive to parameter count than to data, so with more compute the model should grow by a larger factor than the dataset; do not train to completion, make the model larger instead.
The slides also list limitations the paper itself admits: how loss scales with at very large model size "still remains mysterious"; the small-data regime was not studied thoroughly and fits poorly there; regularization and data augmentation were not studied; not every hyperparameter was tuned, and short runs might have better learning rates.
Two Years Later: Chinchilla
Hoffmann et al. (2022), the paper that trained the Chinchilla model, still assumes a power law but arrives at a different allocation. The differences listed on the slides: learning-rate schedules adapted to dataset size (not explored by Kaplan et al.), and larger models (over 500 million parameters).
They estimate three ways: fix the model size and record the whole training curve; fix the compute and compare final loss across ; fit the parametric form . All three give roughly the same allocation:
The slides' reading: existing large models at the time would have needed much more training data than they got, and the better allocation is a smaller model with more data and steps.
Limitations listed on the slides: smoothed training loss stands in for test loss; there were only two large-scale runs (Gopher and Chinchilla); the curve bends somewhat at high compute, so the power law may not hold universally; training is for one epoch only.
Another slide lists results from other work, including that vision models (CNNs) have a larger exponent in model size, .
Why a Power Law: The Data Manifold Hypothesis
The slides give a toy model. To approximate a Lipschitz function on with a piecewise constant function, cut the space into hypercubes of side , which takes pieces. Mean squared error shrinks as , which in terms of is:
A ReLU network is piecewise linear, so its error shrinks as and .
The hypothesis is that a neural network is really doing regression on a low-dimensional data manifold; replace with the manifold's intrinsic dimension and you get . This says the exponent is set mainly by the data and the task, so different models on the same data should have similar exponents. The slides say the prediction fits vision models well and gives only for Transformers. The corresponding paper is Sharma and Kaplan, A Neural Scaling Law from the Dimension of the Data Manifold.
Breaking the Power Law: Data Pruning
A small exponent means each small drop in loss costs another order of magnitude of data or parameters. The slides read this as a sign that many training examples are highly redundant, and that pruning data intelligently can scale better than the power law (Sorscher et al., 2022).
Critical Batch Size
The slides open with a question: 16 steps at batch size 16 and 1 step at batch size 256 cost the same compute, so which is better? There are costs beyond compute as well: one node can only process a batch up to some size in parallel, and beyond that you must split across nodes (communication cost) or compute sequentially (time cost).
The model of McCandlish, Kaplan and Amodei (2018) splits the minibatch gradient into the true gradient plus noise and derives that the progress one SGD step can make is proportional to:
is the noise scale. When is far below it, doubling the batch doubles the progress (perfect scaling); when is far above it, increasing further has almost no effect. The crossover is the critical batch size.
Representational Convergence
The last few slides belong to a different topic. Describe a representation by its kernel (how similar the embeddings of any two inputs are), then compare the kernels of language models with those of vision models. The plot shows that the better a language model performs, the more its kernel aligns with that of the vision model DINOv2. The source is The Platonic Representation Hypothesis (Huh, Cheung, Wang, Isola, ICML 2024). The slides carry no explanatory text, and this post does not interpret further.
Working the Numbers
The examples below are computed for this post from the formulas above; they are not from the lecture.
1. What doubling the data buys. Take :
| Data becomes | Loss becomes |
|---|---|
| 2x | (6.4% lower) |
| 10x | (19.6% lower) |
Halving the loss takes times the data. Check against the fitted form on the slide, : at , ; at , , which matches the points on the plot.
2. How to split 10x the compute.
| Parameters times | Data times | |
|---|---|---|
| Kaplan (, ) | 5.4 | 1.9 |
| Chinchilla (, ) | 3.1 | 3.2 |
Both rows multiply to 10. The gap widens at 100x compute: Kaplan gives 29x the parameters and 3.5x the data; Chinchilla gives 9.5x the parameters and 10.5x the data. For the same budget the former buys a model three times larger and the latter sees three times more data.
3. Returns on batch size.
| Progress per step (maximum 1) | |
|---|---|
| 0.1 | 0.091 |
| 1 | 0.5 |
| 10 | 0.909 |
From 0.1 to 1 the batch grows 10x and progress grows 5.5x, which is still reasonable. From 1 to 10 the batch again grows 10x and progress grows only 1.8x.
4. Exponent and dimension. Under the manifold hypothesis , an intrinsic dimension of gives . The higher the dimension, the smaller the exponent and the worse the return on scaling.
Common Misunderstandings
- "A power law means scaling always works." It holds only when the other factors are tuned to their best. Fix the model and add only data, and the curve flattens.
- "0.73 and 0.27 are laws." Two years later they were revised to about half each. The slides themselves say to take them with a grain of salt.
- "A small exponent means scaling is useless." A small exponent means expensive, not without return. Being able to predict is what lets you work out in advance whether it is worth it.
- "Bigger batches are always more efficient." Far past the critical batch size, almost all the extra compute goes into a gradient estimate that was already accurate enough.
Check Yourself
- A task measures . Parameters grow 4x. What happens to the loss? Answer: ; it halves. This is the case the slides mention of vision models (CNNs) having a larger exponent.
- You hold the model fixed, add 100x the data, and the loss barely moves. Does that violate the scaling law? Answer: no. Model capacity is already the bottleneck. The power law is the envelope after model size is also tuned to its best.
- Under the Chinchilla allocation, compute grows 4x. By how much should the model grow? Answer: , about 2x, and the data about 2x as well.
- Your batch size equals the noise scale exactly. Double the batch. How much does progress per step increase? Answer: from to , an increase of one third, while compute per step doubles.
Lecture Video Source
Rechecked against the live MIT OCW Fall 2024 gallery on 2026-10-13: the lecture number matches and the video is public and embeddable. Lecture numbering and topics follow OCW. This video is 38 minutes 22 seconds long, while the other lectures run about 68 to 83 minutes; the official transcript likewise ends mid-sentence, so it is the published recording that covers only the first half, not a transcript with missing pages. OCW gives no reason.
Original video: MIT 6.7960 Fall 2024 — Lec 20. Scaling Laws
Course and recording links:
Checked: 2026-10-13.
Content check: verified against the video transcript (2026-10-13): read the full official OCW transcript and the entire slide deck. The transcript has no timestamps and the audio was not replayed for this post. The transcript covers only up to the second finding; the sections after that follow the slides only, as marked in the text. The "Working the Numbers" section is computed for this post.
References
- MIT 6.7960 Fall 2024 OCW course home
- Lec 20 official transcript (PDF)
- Lecture 20: Scaling Laws slides
- Kaplan, McCandlish et al., Scaling Laws for Neural Language Models (2020)
- Hoffmann et al., Training Compute-Optimal Large Language Models (Chinchilla, 2022)
- Freeman Dyson, A meeting with Enrico Fermi (Nature, 2004)
- Rosenfeld et al., A Constructive Prediction of the Generalization Error Across Scales
- Sharma & Kaplan, A Neural Scaling Law from the Dimension of the Data Manifold
- Sorscher et al., Beyond neural scaling laws: beating power law scaling via data pruning
- McCandlish, Kaplan, Amodei, An Empirical Model of Large-Batch Training
- Huh, Cheung, Wang, Isola, The Platonic Representation Hypothesis
- Richard Sutton, The Bitter Lesson (2019)
- OpenAI, AI and Compute
- BAIR Blog, Speeding Up Transformer Training and Inference By Increasing Model Size
Loading...