Skip to main content
QUICK REVIEW

[Paper Review] What Language Model to Train if You Have One Million GPU Hours?

Teven Le Scao, Thomas J. Wang|arXiv (Cornell University)|Oct 27, 2022
Topic ModelingComputer Science6 citations
TL;DR

This paper investigates optimal architecture and training choices for a 100B+ parameter multilingual language model under a fixed 1 million A100-GPU-hour budget. Using ablation studies at the 1.3B parameter scale, it identifies that pretraining on diverse, high-quality corpora like The Pile significantly improves zero-shot generalization, and that multilingual models exhibit distinct language-specific scaling laws, informing the final 176B-parameter BLOOM architecture design with open-sourced models and code.

ABSTRACT

The crystallization of modeling methods around the Transformer architecture has been a boon for practitioners. Simple, well-motivated architectural variations can transfer across tasks and scale, increasing the impact of modeling research. However, with the emergence of state-of-the-art 100B+ parameters models, large language models are increasingly expensive to accurately design and train. Notably, it can be difficult to evaluate how modeling decisions may impact emergent capabilities, given that these capabilities arise mainly from sheer scale alone. In the process of building BLOOM--the Big Science Large Open-science Open-access Multilingual language model--our goal is to identify an architecture and training setup that makes the best use of our 1,000,000 A100-GPU-hours budget. Specifically, we perform an ablation study at the billion-parameter scale comparing different modeling practices and their impact on zero-shot generalization. In addition, we study the impact of various popular pre-training corpora on zero-shot generalization. We also study the performance of a multilingual model and how it compares to the English-only one. Finally, we consider the scaling behaviour of Transformers to choose the target model size, shape, and training setup. All our models and code are open-sourced at https://huggingface.co/bigscience .

Motivation & Objective

  • To determine the optimal architecture and training setup for a 100B+ parameter multilingual language model given a fixed 1 million A100-GPU-hour budget.
  • To evaluate the impact of architectural choices—such as positional embeddings, activation functions, and normalization—on zero-shot generalization at the 1.3B parameter scale.
  • To assess the effect of pretraining corpus diversity and quality on model generalization performance.
  • To study multilingual scaling behavior and identify language-specific scaling laws in a multilingual setting.
  • To guide the final design of the 176B-parameter BLOOM model using systematic ablation and scaling analysis.

Proposed method

  • Conducting controlled ablation studies on a GPT-2-style decoder-only Transformer at 1.3B parameters to evaluate architectural components like activation functions, normalization, and positional embeddings.
  • Evaluating zero-shot generalization performance across 20 diverse NLP benchmarks using the EAI Harness suite.
  • Comparing pretraining on diverse corpora such as The Pile, C4, and OSCAR v1 to identify data composition effects on model performance.
  • Analyzing multilingual scaling behavior by training both English-only and multilingual models and measuring performance per language.
  • Using power-law scaling fits (αC ≈ 0.046) to extrapolate optimal model size and pretraining token count for the final 176B-parameter model.

Experimental results

Research questions

  • RQ1Which pretraining corpus yields the best zero-shot generalization performance for a 1.3B-parameter model?
  • RQ2How do architectural components like activation functions, normalization, and positional embeddings affect zero-shot generalization?
  • RQ3What is the impact of multilinguality on model scaling behavior and performance?
  • RQ4How do scaling laws differ between English-only and multilingual models?
  • RQ5What is the optimal model size and pretraining data scale for maximizing performance within a fixed 1M A100-GPU-hour budget?

Key findings

  • Pretraining on The Pile, a diverse, high-quality corpus, yielded the highest zero-shot generalization accuracy (47.09%) among 1.3B-parameter models, outperforming C4 and OSCAR v1.
  • The multilingual model trained on The Pile achieved a zero-shot generalization accuracy of 47.09%, significantly outperforming the English-only baseline on the same corpus.
  • The study found that multilingual models exhibit distinct language-specific scaling laws, with performance varying across languages based on pretraining data distribution.
  • The power-law scaling coefficient αC ≈ 0.046 was observed, enabling accurate estimation of optimal model size and pretraining data scale for the final 176B-parameter BLOOM model.
  • Architectural choices such as GELU activation, RMSNorm, and rotary positional embeddings contributed to improved performance, with RMSNorm showing particular gains in generalization.
  • The final BLOOM model was designed based on these findings, with all models, code, and meeting notes open-sourced at Hugging Face.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.