Scaling Language Models: Methods, Analysis & Insights from Training Gopher

Jack W. Rae, Sebastian Borgeaud, Trevor Cai, Katie Millican, Jordan Hoffmann, H. Francis Song, John Aslanides, Sarah Henderson, Roman Ring, Susannah Young, Eliza Rutherford, Tom Hennigan, Jacob Menick, Albin Cassirer, Richard Powell, George van den Driessche, Lisa Anne Hendricks, Maribeth Rauh, Po-Sen Huang, Amelia Glaese, Johannes Welbl, Sumanth Dathathri, Saffron Huang, Jonathan Uesato, John Mellor, Irina Higgins, Antonia Creswell, Nat McAleese, Amy Wu, Erich Elsen, Siddhant M. Jayakumar, Elena Buchatskaya, David Budden, Esme Sutherland, Karen Simonyan, Michela Paganini, Laurent Sifre, Lena Martens, Xiang Lorraine Li, Adhiguna Kuncoro, Aida Nematzadeh, Elena Gribovskaya, Domenic Donato, Angeliki Lazaridou, Arthur Mensch, Jean-Baptiste Lespiau, Maria Tsimpoukelli, Nikolai Grigorev, Doug Fritz, Thibault Sottiaux, Mantas Pajarskas, Toby Pohlen, Zhitao Gong, Daniel Toyama, Cyprien de Masson d'Autume, Yujia Li, Tayfun Terzi, Vladimir Mikulik, Igor Babuschkin, Aidan Clark, Diego de Las Casas, Aurelia Guy, Chris Jones, James Bradbury, Matthew Johnson, Blake A. Hechtman, Laura Weidinger, Iason Gabriel, William S. Isaac, Edward Lockhart, Simon Osindero, Laura Rimell, Chris Dyer, Oriol Vinyals, Kareem Ayoub, Jeff Stanway, Lorrayne Bennett, Demis Hassabis, Koray Kavukcuoglu, Geoffrey IrvingarXiv 2021

Introduction

The "scaling laws" hypothesis suggests that increasing model parameters, data volume, and compute leads to proportional gains in artificial intelligence. However, the nuances of this progression—where scale succeeds, where it fails, and its impact on safety—require rigorous investigation. In this work, DeepMind introduces Gopher, a 280-billion parameter Transformer language model, and provides an exhaustive analysis of scaling effects across 152 diverse tasks.

Gopher achieves state-of-the-art (SOTA) results on over 80% of these benchmarks, particularly in reading comprehension and fact-checking. However, the study reveals that scaling alone provides diminishing returns for logical reasoning and mathematics, identifying capabilities that require fundamental architectural shifts rather than mere expansion.

Model Architecture and Methods

Gopher is an autoregressive Transformer model. While it follows the general architecture of predecessors like GPT-3, several modifications were implemented to ensure stability and performance at the 280B scale.

Key architectural adjustments include:

  • RMSNorm: Standard LayerNorm was replaced with RMSNorm for improved training stability.
  • Relative Positional Encodings: The model utilizes relative instead of absolute positional encodings, allowing it to evaluate sequences longer than those encountered during training—a critical feature for long-form content modeling.
  • Scale and Infrastructure: The model consists of 80 layers and 128 attention heads, with a bottleneck activation size ($d_{model}$) of 16,384. Training was conducted using JAX and Haiku on TPUv3 chips, employing sophisticated data and model parallelism.
Table 1: Hyperparameters and architectural details for the Gopher model family.

Data and Evaluation

The Gopher family was trained on MassiveText, a curated 10.5 TB collection of English-language text. To prevent the model from simply memorizing the internet, the pipeline involved extensive deduplication and quality filtering.

Table 2: Composition and sampling proportions of the MassiveText dataset.

Evaluation spanned 152 tasks, including the Massive Multitask Language Understanding (MMLU) benchmark, BIG-bench, and the RACE reading comprehension suite. Results indicate that data quality is as critical as parameter count; iterative refinement of the MassiveWeb subset through filtering was essential for peak performance.

Key Insights and Performance

Gopher outperformed existing SOTA models, including GPT-3 and Jurassic-1, on 80.6% of comparable tasks. Notable achievements include:

  • Reading Comprehension: On the RACE-h benchmark, Gopher reached 71.6% accuracy, a significant jump from the previous 47.9% SOTA.
  • General Knowledge: On MMLU, Gopher achieved 60.0% accuracy, nearly doubling the performance gap between GPT-3 and human expert levels.
  • Fact-Checking: The model showed high capacity for "open-book" verification on the FEVER benchmark.

Despite these gains, a "Reasoning Gap" persists. Scale effectively addresses knowledge-intensive and linguistic tasks but struggles with multi-step logical or mathematical reasoning. Furthermore, safety analysis shows that while larger models are better at classifying toxic text, they are also more likely to generate toxic responses if prompted maliciously. Bias remains persistent, as larger models reflect training data stereotypes with higher precision.

Conclusion and Future Directions

While Gopher represents a significant leap in LLM capability, it is not a complete intelligence. It remains susceptible to logical fragility and "hallucinations" in dialogue settings. Furthermore, the environmental cost of training—approximately 380 net $tCO_2e$—underscores the need for compute-efficient research. Future work should explore retrieval-augmented models that look up information dynamically and sparse "mixture-of-experts" architectures to improve efficiency and factuality.

Summary updated

BibTeX
@misc{rae2021scaling,
  author = {Jack W. Rae and Sebastian Borgeaud and Trevor Cai and Katie Millican and Jordan Hoffmann and H. Francis Song and John Aslanides and Sarah Henderson and Roman Ring and Susannah Young and Eliza Rutherford and Tom Hennigan and Jacob Menick and Albin Cassirer and Richard Powell and George van den Driessche and Lisa Anne Hendricks and Maribeth Rauh and Po-Sen Huang and Amelia Glaese and Johannes Welbl and Sumanth Dathathri and Saffron Huang and Jonathan Uesato and John Mellor and Irina Higgins and Antonia Creswell and Nat McAleese and Amy Wu and Erich Elsen and Siddhant M. Jayakumar and Elena Buchatskaya and David Budden and Esme Sutherland and Karen Simonyan and Michela Paganini and Laurent Sifre and Lena Martens and Xiang Lorraine Li and Adhiguna Kuncoro and Aida Nematzadeh and Elena Gribovskaya and Domenic Donato and Angeliki Lazaridou and Arthur Mensch and Jean-Baptiste Lespiau and Maria Tsimpoukelli and Nikolai Grigorev and Doug Fritz and Thibault Sottiaux and Mantas Pajarskas and Toby Pohlen and Zhitao Gong and Daniel Toyama and Cyprien de Masson d'Autume and Yujia Li and Tayfun Terzi and Vladimir Mikulik and Igor Babuschkin and Aidan Clark and Diego de Las Casas and Aurelia Guy and Chris Jones and James Bradbury and Matthew Johnson and Blake A. Hechtman and Laura Weidinger and Iason Gabriel and William S. Isaac and Edward Lockhart and Simon Osindero and Laura Rimell and Chris Dyer and Oriol Vinyals and Kareem Ayoub and Jeff Stanway and Lorrayne Bennett and Demis Hassabis and Koray Kavukcuoglu and Geoffrey Irving},
  title = {{Scaling Language Models: Methods, Analysis \& Insights from Training Gopher}},
  year = {2021},
  eprint = {2112.11446},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2112.11446},
}
Figure