Training Compute-Optimal Large Language Models

Hoffmann et al., 2022, Training Compute-Optimal Large Language Models (Advances in Neural Information Processing Systems 35 (NeurIPS 2022))

Subscriber deck — free during early access

2 cards in “3.4 Optimal model scaling” · whole deck

3.4 Optimal model scaling

  1. How do the Chinchilla scaling exponents compare with Kaplan et al.’s?
    All three approaches give \(N_{\text{opt}} \propto C^{\approx 0.5}\) and \(D_{\text{opt}} \propto C^{\approx 0.5}\) (equal scaling), whereas Kaplan et al. had \(N \propto C^{0.73}\), \(D \propto C^{0.27}\); so existing large models were oversized for their budgets, and far more data is needed.
    methoda (N)b (D)
    1. training curve envelope0.500.50
    2. IsoFLOP profiles0.490.51
    3. parametric loss fit0.460.54
    Kaplan et al. (2020)0.730.27
  2. Check that Chinchilla matches Gopher’s compute budget, and give the tokens-per-parameter ratio it implies.
    With \(C \approx 6ND\): \(6 \times 7 \times 10^{10} \times 1.4 \times 10^{12} \approx 5.9 \times 10^{23}\) FLOPs, matching Gopher’s \(5.76 \times 10^{23}\). That is \(1.4 \times 10^{12} / 7 \times 10^{10} = 20\) tokens per parameter.

Source

  • Jordan Hoffmann, Sebastian Borgeaud, Arthur Mensch, Elena Buchatskaya, Trevor Cai, Eliza Rutherford, Diego de Las Casas, Lisa Anne Hendricks, Johannes Welbl, Aidan Clark, Tom Hennigan, Eric Noland, Katie Millican, George van den Driessche, Bogdan Damoc, Aurelia Guy, Simon Osindero, Karen Simonyan, Erich Elsen, Oriol Vinyals, Jack W. Rae and Laurent Sifre. 2022. Training Compute-Optimal Large Language Models. In Advances in Neural Information Processing Systems 35 (NeurIPS 2022). https://papers.nips.cc/paper_files/paper/2022/hash/c1e2faff6f588870935f114ebe04a3e5-Abstract-Conference.html