papers / chinchilla2022
Next task →
Research Papers/Scaling and emergent behavior/Training Compute-Optimal Large Language Models
Scaling and emergent behavior · #2 · seminal

Training Compute-Optimal Large Language Models

Jordan Hoffmann, Sebastian Borgeaud, Arthur Mensch, Elena Buchatskaya, Trevor Cai et al. · 2022 · NeurIPS
reproduction difficulty: very_highScalingLanguage ModelsEfficiency

1. Research problem

Following earlier scaling advice, very large models were trained on relatively few tokens, and it was unclear whether this was actually compute-optimal.

2. Motivation

The authors wanted to determine the optimal balance between model size and training tokens for a fixed compute budget.

3. Previous approaches

Kaplan et al. recommended scaling parameters faster than data; heuristic practice varied wildly across labs.

4. Core contribution

Trained over 400 models to show that compute-optimal models should use roughly 20 tokens per parameter, and demonstrated that a 70B model trained on 1.4T tokens beats a 175B model trained on less data.

5. Mathematical formulation

Fit L(N,D) across a broad grid under fixed compute C ~ 6ND, finding N_opt ~ C^0.5 and D_opt ~ C^0.5 rather than strongly favoring parameters.

6. Methodology

Three complementary scaling-law approaches (parameter fit, compute fit, fitted parametric loss surface) with a validated larger model, Chinchilla.

7. Architecture

Decoder-only transformer similar to GPT-3 style, trained at multiple scales.

8. Experimental setup

Hundreds of small-to-medium training runs plus a 70B run evaluated on many language tasks.

9. Datasets

Massive web-derived corpora with careful deduplication and filtering.

10. Results

Overturned the prior compute allocation rule and showed that many existing large models were significantly undertrained.

11. Limitations

Assumes a single-token-count quality notion, ignores repeated-data effects and inference cost, and laws may shift with architecture or data curation.

12. Critical analysis

A rigorous empirical correction that changed how frontier models are budgeted and trained.

13. Implementation tasks

  • 1.Train small models across a grid of N and D at fixed compute and fit L(N,D).
  • 2.Estimate the optimal tokens-per-parameter ratio from the fitted surface.
  • 3.Compare evaluation loss of undertrained versus compute-optimal small models.

14. Follow-up work

  • 1.Scaling Laws for Neural Language Models (Kaplan et al., 2020)
  • 2.Scaling Data-Constrained Language Models (Muennighoff et al., 2023)

15. Open research questions

  • 1.How does data quality change the optimal token-to-parameter ratio?
  • 2.Should scaling objectives include inference cost rather than training compute alone?
16. Reproduce it. Record the hypothesis, configuration, dataset, metrics and discrepancies in the Experiment Tracker. A reproduction is not complete until you have run the experiments, performed at least one ablation and documented the differences from the reported numbers.