Abstract
We investigate the optimal model size and number of tokens for training a transformer language model under a given compute budget. We find that current large language models are significantly undertrained, a consequence of the recent focus on scaling language models whilst keeping the amount of training data constant. By training over 400 language models ranging from 70 million to over 16 billion parameters on 5 to 500 billion tokens, we find that for compute-optimal training, the model size and the number of training tokens should be scaled equally: for every doubling of model size the number of training tokens should also be doubled. We test this hypothesis by training a predicted compute-optimal model, Chinchilla, that uses the same compute budget as Gopher but with 70B parameters and 4x more data. Chinchilla uniformly and significantly outperforms Gopher (280B), GPT-3 (175B), Jurassic-1 (178B), and Megatron-Turing NLG (530B) on a large range of downstream evaluation tasks. This also means that Chinchilla uses substantially less compute for fine-tuning and inference, greatly facilitating downstream usage. As a highlight, Chinchilla reaches a state-of-the-art average accuracy of 67.5% on the MMLU benchmark, greater than a 7% improvement over Gopher.
Introduction
In recent years, the field of Artificial Intelligence has been dominated by a "bigger is better" philosophy regarding Large Language Models (LLMs). Scaling parameter counts became the primary metric of progress, influenced by early scaling laws (e.g., Kaplan et al., 2020) which suggested that compute increases should be primarily allocated to increasing model size rather than training data. This led to the development of massive models like Megatron-Turing NLG (530B parameters), which are computationally expensive to train and deploy.
DeepMind researchers challenged this paradigm, hypothesizing that many of these "dense" behemoths are significantly undertrained. They sought to identify the "compute-optimal" point—the ideal balance between model parameters and training tokens for any given compute budget.
Methods and Empirical Study
To determine the optimal scaling laws, the team conducted an extensive empirical study, training over 400 models with parameters ranging from 70M to 16B on datasets between 5B and 500B tokens.
The researchers employed three distinct analytical approaches to identify the efficient frontier:
- Fixed Model Sizes: Finding the minimum loss for specific parameter counts across various training durations.
- IsoFLOP Profiles: Varying the parameter/token tradeoff within a fixed compute budget to find the point of lowest loss.
- Parametric Modeling: Fitting a mathematical function to the training results to predict optimal behavior at larger scales.
The models were trained on MassiveText, a curated dataset of web content, books, news, and code. Evaluation spanned a wide array of benchmarks including MMLU, BIG-bench, and LAMBADA.
Key Insights: The 1:1 Scaling Rule
The study's most significant finding is that for compute-optimal training, model size and training data should be scaled in equal proportions. This contradicts previous wisdom that prioritized parameter growth. Specifically, if the compute budget is doubled, both the number of parameters and the number of training tokens should increase by approximately 40%.
This "Chinchilla Scaling Law" reveals that models like GPT-3 (175B) and Gopher (280B), which were trained on roughly 300 billion tokens, are "starved" of data. To be compute-optimal, they would require trillions of tokens.
Results: The Chinchilla Breakthrough
To validate their findings, the researchers trained Chinchilla, a 70B parameter model. Chinchilla used the same compute budget as the 280B Gopher but was trained on 1.4 trillion tokens—four times more data.
Despite having 4x fewer parameters, Chinchilla uniformly outperformed Gopher, GPT-3, and Megatron-Turing NLG (530B) across nearly all downstream tasks. Notably, it achieved 67.5% accuracy on the MMLU benchmark, a 7.6% improvement over Gopher. This demonstrates that more data leads to superior "world knowledge" and reasoning capabilities compared to simply increasing parameter count.
Furthermore, Chinchilla's smaller size makes it significantly more efficient for inference and fine-tuning, as it can fit on smaller hardware and run faster than its oversized predecessors.
Discussion and Limitations
The shift toward data-intensive training presents new challenges, primarily the "data ceiling." As models require trillions of tokens to reach optimality, the industry may soon exhaust high-quality, human-generated text available on the internet. Future research must explore new data sources, synthetic data, or multi-epoch training strategies.
Additionally, the authors noted a slight negative curvature in the scaling frontier at extreme compute levels, suggesting that at the scale of 10^26 FLOPs and beyond, optimal models might be even smaller than current linear extrapolations predict.
Summary updated