Vibeleaderboard
← All Intel
Intel / article

A super long overdue (3+ years?) post on scaling laws. Compute is expensive. Sca

Source
lilianweng.github.io
Author
Lilian Weng
Date
Photo by Shubham Sharan on Unsplash

Context

Scaling laws are curves that predict how a 's error falls as it gets more parameters, more text and more computing power. Labs fit them on small, affordable training runs and extend them to decide how to spend a large budget before committing to it. Lilian Weng's Scaling Laws, Carefully argues that the extension is fragile, and its central example is two influential studies that reached different answers to the same question.

In 2020, Kaplan and colleagues concluded that model size should grow faster than training data: for ten times more compute, about 5.5 times more parameters but only 1.8 times more text. In 2022, the Chinchilla study found that both should grow at the same rate. It tested the claim by training Chinchilla, a 70-billion-parameter model given four times more data than the 280-billion-parameter Gopher at the same compute budget, and Chinchilla outperformed Gopher across a wide range of tasks. Weng traces much of the gap, following Pearce and Song, to two choices in the earlier study: it worked mostly with small models, and it left out parameters (the lookup table that turns each piece of text into numbers), which make up a sizable share of a small model.

Weng's broader point is that fitting choices which look like rounding can move the extrapolation a lot. A replication of Chinchilla's third method found implausibly narrow confidence intervals, which Chinchilla's authors then traced to averaging rather than summing the fitting loss, a choice that stopped the optimizer early. The curves also assume each training token is new, which stops holding as high-quality text runs short and data gets repeated; she describes newer formulas that discount repeated data or add a penalty for it. Fitting a scaling law assumes that only scale changes while architecture, optimizer, data mix and other settings stay fixed. Weng's post treats the result as a way to reason about compute before a large run, valid for the it was measured on.

Terms in this piece · Glossary
  • Large language model — A model trained on large amounts of data to process and generate language.
  • Training — The process that adjusts a model using examples and a measure of how well it performs.
  • embedding — A list of numbers representing a piece of text's meaning, so that similar meanings end up numerically close and can be searched.
  • Setup — The combination of a model, a harness, its connections and the path the task's data takes, considered together for a task.

Get the Brief

A cited digest of what matters for people building with AI, every morning. Unsubscribe anytime. See today’s edition

Read the source lilianweng.github.io
More from Lilian Weng
Recommended reads