← Return to Report πŸ“š All Topic Sources ⬇ Download Source Text

An empirical analysis of compute-optimal large language model training - Google DeepMind

An empirical analysis of compute-optimal large language model training β€” Google DeepMind

deepmind.google uses cookies from Google to deliver and enhance the quality of its services and to analyze traffic. Learn more

OK, got it

Skip to main content

Explore our next generation AI systems

Explore models

Gemini

Gemini Build intelligent agents

Gemini Omni Create anything from anything

Nano Banana Create and edit detailed images

Gemini Audio Talk, create and control audio

Specialized models

Veo Generate cinematic video with audio

Imagen Generate high-quality images from text

Lyria Generate high fidelity music and audio

World models & physical AI

Genie 3 Generate and explore interactive worlds

Gemini Robotics Perceive, reason, use tools and interact

Open models

Gemma Build responsible AI applications at scale

Our latest AI breakthroughs and updates from the lab

Explore research

Breakthroughs

SIMA 2 An agent that plays, reasons, and learns with you

Genie 3 Generate and explore interactive worlds

AlphaGo Mastering the game of Go

Gemini Robotics Perceive, reason, use tools and interact

Learn more

Evals

Publications

Responsibility

Frontier safety

Unlocking a new era of discovery with AI

Explore science

Breakthroughs

AlphaFold Predict protein structures with high accuracy

WeatherNext Fast and accurate AI weather forecasting

AlphaEarth Map our planet in unprecedented detail

AlphaEvolve Design advanced algorithms for math and applications in computing

Learn more

Gemini for Science

Experimental Tools

Science Skills

Our mission is to build AI responsibly to benefit humanity

About Google DeepMind

Responsibility Ensuring AI safety through proactive security, even against evolving threats

News Discover our latest AI breakthroughs, projects, and updates

Careers We're looking for people who want to make a real, positive impact on the world

Learn more

Education

Our National Partnerships for AI

Accelerator programs

The Podcast

Models

Explore our next generation AI systems

Explore models

Gemini

Gemini Build intelligent agents

Gemini Omni Create anything from anything

Nano Banana Create and edit detailed images

Gemini Audio Talk, create and control audio

Specialized models

Veo Generate cinematic video with audio

Imagen Generate high-quality images from text

Lyria Generate high fidelity music and audio

World models & physical AI

Genie 3 Generate and explore interactive worlds

Gemini Robotics Perceive, reason, use tools and interact

Open models

Gemma Build responsible AI applications at scale

Research

Our latest AI breakthroughs and updates from the lab

Explore research

Breakthroughs

SIMA 2 An agent that plays, reasons, and learns with you

Genie 3 Generate and explore interactive worlds

AlphaGo Mastering the game of Go

Gemini Robotics Perceive, reason, use tools and interact

Learn more

Evals

Publications

Responsibility

Frontier safety

Science

Unlocking a new era of discovery with AI

Explore science

Breakthroughs

AlphaFold Predict protein structures with high accuracy

WeatherNext Fast and accurate AI weather forecasting

AlphaEarth Map our planet in unprecedented detail

AlphaEvolve Design advanced algorithms for math and applications in computing

Learn more

Gemini for Science

Experimental Tools

Science Skills

About

Our mission is to build AI responsibly to benefit humanity

About Google DeepMind

Learn more

Education

Our National Partnerships for AI

Accelerator programs

The Podcast

Responsibility Ensuring AI safety through proactive security, even against evolving threats

News Discover our latest AI breakthroughs, projects, and updates

Careers We're looking for people who want to make a real, positive impact on the world

Build with Gemini Try Gemini

Google DeepMind

Google AI Learn about all our AI

Google DeepMind Explore the frontier of AI

Google Labs Try our AI experiments

Google Research Explore our research

Products and apps

Gemini app Chat with Gemini

Google AI Studio Build with our next-gen AI models

Google Antigravity Our agentic development platform

Models

Research

Science

About

Build with Gemini

Try Gemini

April 12, 2022 Research

An empirical analysis of compute-optimal large language model training

Jordan Hoffmann, Sebastian Borgeaud, Arthur Mensch, Laurent Sifre [-]

Share

Copied

In the last few years, a focus in language modelling has been on improving performance through increasing the number of parameters in transformer-based models. This approach has led to impressive results and state-of-the-art performance across many natural language processing tasks.

We also pursued this line of research at DeepMind and recently showcased Gopher, a 280-billion parameter model that established leading performance on a wide range of tasks including language modelling, reading comprehension, and question answering. Since then, an even larger model named Megatron-Turing NLG has been published with 530 billion parameters.

Due to the substantial cost of training these large models, it is paramount to estimate the best possible training setup to avoid wasting resources. In particular, the training compute cost for transformers is determined by two factors: the model size and the number of training tokens.

The current generation of large language models has allocated increased computational resources to increasing the parameter count of large models and keeping the training data size fixed at around 300 billion tokens. In this work, we empirically investigate the optimal tradeoff between increasing model size and the amount of training data with increasing computational resources. Specifically, we ask the question: β€œWhat is the optimal model size and number of training tokens for a given compute budget?” To answer this question, we train models of various sizes and with various numbers of tokens, and estimate this trade-off empirically.

Our main finding is that the current large language models are far too large for their compute budget and are not being trained on enough data. In fact, we find that for the number of training FLOPs used to train Gopher, a 4x smaller model trained on 4x more data would have been preferable.

Figure 1: Based on our approach, we show our projections of the optimal number of training tokens and parameters. We show points representing the training setup of three different established large language models along with our new model, Chinchilla.

We test our data scaling hypothesis by training Chinchilla, a 70-billion parameter model trained for 1.3 trillion tokens. While the training compute cost for Chinchilla and Gopher are the same, we find that it outperforms Gopher and other large language models on nearly every measured task, despite having 70 billion parameters compared to Gopher's 280 billion.

Figure 2: For various common benchmarks that include Question Answering (TriviaQA), CommonSense (HellaSwag, PIQA, Winogrande, and BoolQ), Reading Comprehension (LAMBADA), and the large Multi-task Language Understanding (MMLU) general knowledge benchmark, we compare the performance of Gopher, Chinchilla, GPT-3, and Megatron-Turing NLG.

After the release of Chinchilla, a model named PaLM was released with 540 billion parameters and trained on 768 billion tokens. This model was trained with approximately 5x the compute budget of Chinchilla and outperformed Chinchilla on a range of tasks. While the training corpus is different, our methods do predict that such a model trained on our data would outperform Chinchilla despite not being compute-optimal. Given the PaLM compute budget, we predict a 140-billion-parameter model trained on 3 trillion tokens to be optimal and more efficient for inference.

An additional benefit of smaller, more performant models is that the inference time and memory costs are reduced making querying the models both faster and possible on less hardware. In practice, while the training FLOPs between Gopher and Chinchilla are the same, the cost of using Chinchilla is substantially smaller, in addition to it performing better. Further simple optimisations may be possible that are able to continue to provide large gains.

Related posts

Language modelling at scale: Gopher, ethical considerations, and retrieval

December 2021 Responsibility & Safety

Learn more

Tackling multiple tasks with a single visual language model

April 2022 Research

Learn more

Dynamic language understanding: adaptation to new knowledge in parametric and semi-parametric models

May 2022 Research

Learn more

Follow us

Sign up for updates on our latest innovations

I accept Google's Terms and Conditions and acknowledge that my information will be used in accordance with Google's Privacy Policy.

Sign up

Build AI responsibly to benefit humanity

Models

Gemini

Gemini Omni

Nano Banana

Gemini Audio

footer_gemma__lightfooter_gemma__dark Gemma

Genie

Lyria

Veo

Research

Gemini Robotics

Breakthroughs

Evals

Publications

Frontier safety

Responsibility

Science

AlphaFold

AlphaGenome

WeatherNext

AlphaEarth

AlphaEvolve

Products

Gemini app

Google AI Studio

Google Antigravity

Learn more

About

News

Careers

National Partnerships for AI

Accelerator programs

The Podcast

About Google

Google products

Privacy

Terms

Cookies management controls