When Do You Need Billions of Words of Pretraining Data?

Yian Zhang, Alex Warstadt, Haau-Sing Li, Samuel R. Bowman

Abstract

NLP is currently dominated by general-purpose pretrained language models like RoBERTa, which achieve strong performance on NLU tasks through pretraining on billions of words. But what exact knowledge or skills do Transformer LMs learn from large-scale pretraining that they cannot learn from less data? We adopt four probing methods---classifier probing, information-theoretic probing, unsupervised relative acceptability judgment, and fine-tuning on NLU tasks---and draw learning curves that track the growth of these different measures of linguistic ability with respect to pretraining data volume using the MiniBERTas, a group of RoBERTa models pretrained on 1M, 10M, 100M and 1B words. We find that LMs require only about 10M or 100M words to learn representations that reliably encode most syntactic and semantic features we test. A much larger quantity of data is needed in order to acquire enough commonsense knowledge and other skills required to master typical downstream NLU tasks. The results suggest that, while the ability to encode linguistic features is almost certainly necessary for language understanding, it is likely that other forms of knowledge are the major drivers of recent improvements in language understanding among large pretrained models.

Introduction

Modern Natural Language Processing (NLP) is dominated by massive language models pretrained on tens or hundreds of billions of words. While probing studies have shown these models successfully learn complex syntactic and semantic features, a key question remains: when during the scaling process do they learn these things? This paper aims to uncover what data-rich models know that data-poor models do not, specifically identifying which aspects of language can be learned from data volumes comparable to human exposure (10M to 100M words) versus internet-scale datasets (30B+ words).

Methodology

To track the acquisition of linguistic skills, the authors trained a suite of MiniBERTas—RoBERTa models trained from scratch on 1M, 10M, 100M, and 1B words. These were compared against a randomly initialized baseline and the standard RoBERTa-base model (~30B words). Evaluation was conducted using four distinct methods:

  1. Classifier Probing: Training a simple MLP to extract linguistic features from frozen representations.
  2. Minimum Description Length (MDL) Probing: An information-theoretic approach measuring feature accessibility.
  3. Unsupervised Grammaticality Judgments (BLiMP): A zero-shot evaluation using minimal sentence pairs.
  4. Fine-tuning on NLU Tasks (SuperGLUE): Standard fine-tuning on complex downstream benchmarks.

Key Insights: Syntax vs. Commonsense

A primary finding is that basic syntactic and semantic features are "cheap" to learn, requiring only 10M–100M words. In contrast, tasks requiring world knowledge and commonsense reasoning, such as the Winograd schema, only show significant improvement after 1B words.

Learning curves for syntactic and semantic features compared to the Winograd coreference task, showing the delayed acquisition of commonsense knowledge.

There is a notable disconnect between a model encoding a linguistic feature and being able to use it. Models trained on 100M words have excellent representations of syntax but still perform poorly on SuperGLUE. This suggests that massive data requirements are likely driven by the need to memorize commonsense knowledge and learn how to apply linguistic features to complex reasoning tasks.

Key Results

The study reveals distinct learning trajectories for different linguistic abilities. Probing tasks for syntax and semantics saturate early, while downstream NLU performance continues to scale significantly with more data.

Summary learning curves for the four evaluation methods, illustrating that linguistic probing and grammaticality judgments saturate much earlier than downstream NLU tasks.
  • Edge Probing: 90% of the attainable improvements in extracting syntactic and semantic features are achieved with less than 20M words of pretraining data.
  • Grammaticality (BLiMP): The steepest improvement occurs between 1M and 100M words. At 100M words, the model's sensitivity to grammatical contrasts is within 9 accuracy points of human performance.
  • Downstream NLU (SuperGLUE): Unlike probing tasks, SuperGLUE performance sees its fastest point of improvement after 1 billion words and shows no signs of saturation even at 30B words.

Conclusion and Future Work

The results suggest that while encoding linguistic features is necessary, it is likely that other forms of knowledge—such as commonsense and world knowledge—are the major drivers of recent improvements in large pretrained models. Future work should explore causal probing methods to determine if early-learned features are responsible for later NLU improvements and investigate ways to close the data-efficiency gap between humans and Transformer models.

Summary updated

BibTeX
@inproceedings{zhang2021when,
  author = {Yian Zhang and Alex Warstadt and Haau-Sing Li and Samuel R. Bowman},
  title = {{When Do You Need Billions of Words of Pretraining Data?}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2021},
  url = {https://openreview.net/forum?id=2OrcOYz6I49},
}
Figure