Learning from more behavior
Each browsing history records what someone explored and what they did next. With more of these examples, a behavior model can learn to estimate the probability of future actions more accurately.
More data alone does not guarantee better predictions. The model needs enough capacity to learn from it, and enough compute to finish that training. These limits affect one another.
A scaling law estimates how prediction loss changes as we increase those resources. With a fixed budget, should we train a larger model or train the current model on more data?
What we observed during training
We studied model sizes from below one billion to tens of billions of parameters. We trained two of the smaller models on real web browsing histories, updating all model parameters during training. Each model predicts a probability distribution over the available next-action options. We then evaluated the probability it assigned to the action the user actually took. Both saw training data in the same order and were evaluated on the same histories. The budget chart in the next section uses our fitted scaling law to project results for larger models.
We measure prediction quality with negative log-likelihood, or NLL. A lower score means the model gave more probability to the actions people actually took. NLL is a loss measure rather than an accuracy percentage.
How prediction loss changes with more training histories
Scroll the chart sideways to explore the full range.
As Model B went from 10,000 to 34,000 training histories, its evaluation loss fell from 2.52 to 1.73. On average, it assigned more probability to the actions people actually took. When we compared the models after the same amount of data, the larger model had lower evaluation loss. That suggests we can improve predictions by increasing model capacity alongside the amount of training data.
Choosing a model for the budget
A larger model costs more to train on each example. With a fixed compute budget, that means it can see less data. A smaller model can train on more examples, though it may have less capacity to learn from them. We want the combination that gives the lowest prediction loss.
The balance shifts with the training budget
Scroll the chart sideways to explore the full range.
These projections help us choose which models to train next. On a small budget, a larger model can run short of training data. More compute can make a larger model worthwhile by letting it train on more examples. For some budgets, the sizes shown cover only part of the expected U-shaped curve.
How data enters the scaling law
Our fitted equation separates loss into the uncertainty left in the available information and the effects of limited model capacity and training data.
- E · Remaining uncertainty
- Some of what shapes a decision is missing from the input. More training cannot supply information the model never receives.
- N · Model capacity
- A larger model can learn patterns that a smaller model lacks the capacity to capture.
- D · Training data
- More training tokens can improve predictions, with smaller gains as the amount grows.
We fit this equation to the checkpoints from our behavior-prediction experiments. Its coefficients depend on the dataset and training setup.
As training data grows, the data term in the equation shrinks. The fit estimates how much improvement more relevant behavior histories could bring, and where those gains start to slow. Gains for individual customers and at untested scales still need to be measured.
The research behind the method
Our approach draws on Hoffmann and colleagues’ Training Compute-Optimal Large Language Models. We use learning curves and comparisons at fixed compute budgets to fit a loss function. Predicting behavior differs from predicting language, so we estimate the coefficients from our own experiments.
Chinchilla: training loss across model sizes
Chinchilla: model size at a fixed training budget
Scroll the chart sideways to explore the full range.