Abstract
One reason pretraining on self-supervised linguistic tasks is effective is that it teaches models features that are helpful for language understanding. However, we want pretrained models to learn not only to represent linguistic features, but also to use those features preferentially during fine-turning. With this goal in mind, we introduce a new English-language diagnostic set called MSGS (the Mixed Signals Generalization Set), which consists of 20 ambiguous binary classification tasks that we use to test whether a pretrained model prefers linguistic or surface generalizations during fine-tuning. We pretrain RoBERTa models from scratch on quantities of data ranging from 1M to 1B words and compare their performance on MSGS to the publicly available RoBERTa-base. We find that models can learn to represent linguistic features with little pretraining data, but require far more data to learn to prefer linguistic generalizations over surface ones. Eventually, with about 30B words of pretraining data, RoBERTa-base does demonstrate a linguistic bias with some regularity. We conclude that while self-supervised pretraining is an effective way to learn helpful inductive biases, there is likely room to improve the rate at which models learn which features matter.
Introduction
Pretrained language models like BERT and RoBERTa have demonstrated an impressive ability to encode complex linguistic features, such as syntactic trees and parts of speech, within their internal representations. However, a persistent challenge in Natural Language Processing (NLP) is that these models often rely on "surface generalizations"—shallow patterns or dataset artifacts—when fine-tuned on downstream tasks. For instance, a model might learn that the presence of the word "not" typically correlates with a negative sentiment label, ignoring deeper structural cues. This study investigates the "poverty of the stimulus" problem, exploring whether models prefer complex linguistic rules over simple surface shortcuts when both are supported by ambiguous training data.
The Mixed Signals Generalization Set (MSGS)
To quantify inductive bias, the authors developed the Mixed Signals Generalization Set (MSGS), a diagnostic suite comprising 20 ambiguous binary classification tasks. Each task pairs a linguistic feature (e.g., morphology or syntactic position) with a surface feature (e.g., word order or orthography).
The experimental setup involves three stages:
- Ambiguous Training: Models are trained on data where both the linguistic and surface features perfectly correlate with the label.
- Disambiguating Test: Models are evaluated on data where these features conflict, forcing the model to reveal its underlying preference.
- Inoculation: Tiny amounts of disambiguating data (0.1% to 1%) are added to the training set to measure how much evidence is needed to shift the model from a surface shortcut to a linguistic rule.
The researchers pretrained RoBERTa models from scratch on English Wikipedia and BookCorpus at scales of 1M, 10M, 100M, and 1B words, comparing them against the standard RoBERTa-base (trained on ~30B words).
Results: The Acquisition of Linguistic Bias
A key finding is that feature representation does not equal feature preference. While even models trained on just 1M words can represent linguistic features when forced, they overwhelmingly prefer surface shortcuts in ambiguous settings.
The data reveals a significant "phase transition" around the 1B word mark. Models trained on 100M words or less show a strong surface bias. However, at 1B words, models begin to show a shift toward linguistic bias, especially when "nudged" with small amounts of inoculation data (0.1% to 0.3%). Only the full RoBERTa-base model (30B words) demonstrated a consistent linguistic bias in the fully ambiguous (0% inoculation) setting.
Furthermore, the "stickiness" of surface features varies. While models easily ignore simple features like sentence length, they struggle significantly to overcome biases related to orthography or specific word sequences.
Discussion and Conclusion
The results suggest that a preference for syntax over surface patterns is not an inherent property of the Transformer architecture but is a bias slowly acquired through massive self-supervised pretraining. While MSGS provides a controlled environment for studying these biases, it is limited to a specific set of morphological and syntactic features. Future research should explore how to design more efficient pretraining objectives that instill these inductive biases with less data, and expand the diagnostic set to include semantic and pragmatic features. Understanding how different architectures, such as tree-structured models, acquire these biases could also provide insights into more data-efficient language learning.
Summary updated