TL;DR
This paper investigates how much pretraining data is really needed for language models to learn different linguistic skills. They found that core linguistic features are learned with surprisingly little data (around 10-100M words), while commonsense knowledge and complex NLU tasks require vastly more data (billions of words). This suggests that simply scaling up data might not be the most efficient path to better language understanding.
What Problem Does This Paper Address?
The field of Natural Language Processing (NLP) has seen a dramatic rise in the size of language models (LMs), with models like BERT and RoBERTa being pretrained on billions of words. This has led to impressive performance gains on various benchmarks. However, a crucial question remains unanswered: what exactly do these massive datasets teach LMs, and how much data is truly necessary for them to acquire different linguistic abilities? Are we over-relying on sheer data volume, or is there a fundamental reason why billions of words are needed for certain skills? This paper aims to dissect the relationship between pretraining data size and the development of specific linguistic competencies in LMs.
Methods
The authors tackle this question by training a series of RoBERTa models, dubbed "MiniBERTas," on progressively larger datasets: 1 million, 10 million, 100 million, and 1 billion words. They then evaluate these models using five distinct probing methods:
- Classifier Probing: Training simple classifiers on the LM's internal representations to see if they can extract specific linguistic features (like part-of-speech tags or coreference).
- Information-Theoretic Probing (MDL): Using Minimum Description Length to quantify the amount of information needed to represent linguistic features, aiming to understand how "accessible" these features are.
- Unsupervised Grammaticality Judgement (BLiMP): Testing the models' ability to distinguish between grammatically correct and incorrect sentences.
- Unsupervised Language Model Knowledge Probing (LAMA): Evaluating the models' factual and commonsense knowledge by having them fill in cloze-style prompts.
- Fine-tuning on NLU Tasks (SuperGLUE): Assessing the models' performance on a suite of challenging downstream natural language understanding tasks.
For each evaluation method, they fit exponential learning curves to track how performance improves with increasing pretraining data.
Datasets
The paper uses several existing datasets for evaluation:
- Edge Probing Suite: A collection of tasks for evaluating syntactic and semantic features.
- BLiMP: A benchmark of minimal pairs designed to test understanding of individual grammatical phenomena.
- LAMA: A test suite for factual knowledge, derived from sources like Google-RE, T-REx, ConceptNet, and SQuAD.
- SuperGLUE: A benchmark suite of eight challenging classification-based NLU tasks.
The MiniBERTas models themselves were pretrained on subsets of data similar to those used for BERT and RoBERTa, ranging from 1M to 1B words. A larger RoBERTa model pretrained on approximately 30B words was also included for comparison.
Key Insights and Ideas
- Linguistic Basics are Cheap: Core syntactic and semantic features can be reliably encoded by LMs with as little as 10M to 100M words of pretraining data. This is surprisingly little compared to the billions of words typically used today.
- Commonsense is Data-Hungry: Acquiring commonsense knowledge and mastering complex NLU tasks requires significantly more data, on the order of billions of words.
- Data Scaling Isn't Uniform: The benefits of scaling pretraining data are not equal across all linguistic skills. While syntax and semantics plateau relatively early, factual knowledge and NLU performance continue to improve with massive datasets.
- Accessibility vs. Encoding: The paper explores whether features are encoded but not easily accessible for downstream tasks. While MDL probing was used, the results didn't show a substantial difference in learning curves compared to classifier probing, suggesting this distinction might be nuanced.
- Winograd is Special: The Winograd coreference task, designed to test commonsense reasoning, showed a much later and steeper learning curve, highlighting its reliance on world knowledge rather than just linguistic structure.
Key Results
- Syntactic and Semantic Features: Learning curves for classifier probing and MDL probing show that most improvements in encoding syntactic and semantic features are achieved with 10M-100M words. For instance, 90% of attainable improvements in overall performance were achieved with less than 20M words.
- Grammaticality Judgement (BLiMP): The greatest improvements in BLiMP performance were observed between 1M and 100M words. With 100M words, models were within 9 accuracy points of human performance, with only marginal gains beyond that.
- Factual Knowledge (LAMA): Most LAMA curves showed their fastest growth after 100M words, and many did not show signs of saturation even at 30B words, indicating a strong need for vast amounts of data for factual knowledge acquisition.
- NLU Tasks (SuperGLUE): Performance on SuperGLUE tasks required substantially more data, with the fastest improvements occurring with over 1B words. None of the tasks showed significant saturation at 30B words, suggesting continued improvement with even larger datasets.
Limitations and Future Work
- Winograd Sensitivity: The authors acknowledge that results on the Winograd task are sensitive to factors like dataset size and task formulation.
- MDL Interpretation: While MDL probing was used, the authors note that it measures information content of a dataset rather than feature complexity directly, and suggest alternative approaches for measuring feature accessibility. They also mention that their MDL measurement used frozen models, whereas real-world applications often fine-tune the entire model.
- Data Curation: The paper implicitly suggests that future work could focus on more carefully curating data distributions rather than just scaling up raw data volume, especially for mitigating social biases.
- Explaining NLU Gains: A key open question is what specific abilities drive the improvements in NLU performance at larger data scales, beyond just encoding linguistic features. Future work could explore this further.
- Data Efficiency: The findings suggest that more data-efficient models might be achievable by understanding which skills are learned with less data and focusing on acquiring more complex knowledge more effectively.
Summary updated