Lexical Generalization Improves with Larger Models and Longer Training

Elron Bandel, Yoav Goldberg, Yanai Elazar

Abstract

Fine-tuned Pretrained Language Models (PLMs) often achieve high benchmark scores by exploiting superficial "lexical overlap" shortcuts rather than developing true semantic understanding. This paper investigates the factors that mitigate this behavior, specifically focusing on model scale and training duration. Through a series of experiments on Natural Language Inference (NLI), Paraphrase Detection (PD), and a novel Reading Comprehension dataset (ALSQA), we demonstrate that increasing model parameters and extending training epochs are effective strategies for moving beyond heuristic-based learning. Notably, we find that models often abandon shortcuts late in training, a transition that is frequently invisible to standard validation metrics.

Introduction: The Shortcut Learning Problem

Transformer-based models like BERT are notoriously brittle despite their impressive performance. A primary cause is their reliance on lexical overlap heuristics. In tasks like paraphrase detection, a model might incorrectly label two sentences as paraphrases simply because they share the same set of words, regardless of their semantic arrangement.

Comparison of a model relying on lexical overlap (wrong) versus one processing semantic distinctions (correct).

For example, "Can a bad person become good?" and "Can a good person become bad?" share identical vocabulary but convey opposite meanings. A model using a "bag of words" approach fails here, while a robust model recognizes the structural differences.

Methodology and Metrics

To quantify a model's reliance on these shortcuts, the researchers introduced the HEURistic score (HEUR): $$\text{HEUR} = \text{Performance on consistent examples} - \text{Performance on inconsistent examples}$$

  • Consistent examples are those where the lexical overlap shortcut happens to yield the correct answer.
  • Inconsistent examples are "trap" cases where high overlap does not imply semantic equivalence.

A high HEUR score indicates a "lazy" model dependent on word-matching, while a low score suggests deeper linguistic processing. The study evaluated models ranging from "Tiny" to "Large" across various training stages.

Key Findings

The "Aha!" Moment and the Dev Set Delusion

A critical insight of this research is that models do not learn complex features linearly. They typically adopt easy lexical shortcuts very early (often within the first epoch). Only with continued training do they begin to "abandon" these heuristics in favor of more sophisticated semantic features.

Crucially, this progress is often hidden from standard validation sets. As shown in the training dynamics, a model's accuracy on a standard development set may plateau while its HEUR score continues to drop significantly. This suggests that models become more robust "under the hood" during late-stage training, even if their overall score remains stable.

Training dynamics showing the decrease in heuristic usage (top) compared to the relatively flat development set accuracy (bottom) across epochs.

Scaling for Robustness

Larger models (e.g., BERT-Large vs. BERT-Base) demonstrate a superior ability to resist shortcuts. For instance, in NLI tasks, "Early" BERT-Base exhibited a massive HEUR score of 93.7, whereas BERT-Large started lower at 63.5. With extended training, BERT-Base's HEUR score eventually plummeted to 18.5.

The authors attribute this to the pre-training phase. Larger models are significantly better at modeling "improbable" or "rare" sentences during pre-training, providing a stronger foundation that prevents them from over-relying on common lexical patterns during fine-tuning.

Conclusion

This study provides a clear prescription for improving lexical generalization: bigger models and longer training. While standard benchmarks may suggest that models "solve" tasks early, challenging "counter-heuristic" datasets reveal a different story. By scaling up and training past the point of apparent convergence, researchers can develop models that move beyond superficial word-matching toward genuine semantic comprehension.

Summary updated

BibTeX
@inproceedings{bandel2022lexical,
  author = {Elron Bandel and Yoav Goldberg and Yanai Elazar},
  title = {{Lexical Generalization Improves with Larger Models and Longer Training}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2022},
  doi = {10.18653/v1/2022.findings-emnlp.323},
}
Figure