Abstract
Large-scale Natural Language Understanding (NLU) models often rely on spurious statistical shortcuts rather than robust semantic reasoning, leading to poor generalization on out-of-distribution (OOD) data. This paper interprets these shortcuts as "head" features within a long-tailed distribution of dataset features. We propose LTGR (Long-Tailed distribution Guided Regularizer), a self-distillation framework that identifies shortcut-reliant samples and penalizes model overconfidence on them. Experimental results on FEVER and MNLI benchmarks demonstrate that LTGR significantly improves OOD robustness while maintaining high in-distribution performance.
Introduction
Despite achieving state-of-the-art results on benchmarks, models like BERT are often brittle. They frequently exploit "shortcuts"—spurious correlations between simple features (e.g., the presence of the word "not") and specific labels (e.g., "contradiction"). This shortcut learning behavior prevents models from learning the underlying logic of language, causing them to fail when these correlations no longer hold in real-world or adversarial scenarios.
Interpreting Shortcut Learning
The authors formalize shortcut learning by analyzing the distribution of features using Local Mutual Information (LMI). They find that features follow a long-tailed distribution where a small number of "head" features (the top 5%)—often functional words or punctuation—provide easy but non-robust cues for prediction.
To quantify this, the paper introduces a shortcut degree ($b_i$) for each training sample. This metric is derived from two key observations:
- Feature Preference: Using Integrated Gradients, the authors measure how much the model relies on "head" features for a given prediction.
- Early Learning: Shortcuts are typically learned in the earliest stages of training. By comparing a model snapshot from the first epoch to the final converged model, high similarity in explanations indicates a shortcut-reliant sample.
The LTGR Framework
To mitigate this behavior, the authors propose the Long-Tailed distribution Guided Regularizer (LTGR). This framework utilizes a self-distillation approach:
- Teacher Model: A standard model is trained to provide initial predictions.
- Confidence Smoothing: For samples identified with a high shortcut degree ($b_i$), the teacher’s output distribution is "smoothed" using a modified Softmax function, reducing its confidence.
- Student Model: A student model is trained to match this smoothed distribution. By lowering the target confidence for biased samples, the student is forced to look beyond simple shortcuts and identify more robust, "tail" features to satisfy the loss function.
Experimental Results
The LTGR framework was evaluated on FEVER (Fact Verification) and MNLI (Natural Language Inference) benchmarks, including their adversarial counterparts (Symmetric v1/v2 and HANS).
- OOD Robustness: LTGR showed marked improvements on OOD sets. For instance, accuracy on FEVER Symmetric v1 rose from 54.01% to 57.88%, and on MNLI HANS from 52.17% to 58.03%.
- In-Distribution Stability: Unlike many debiasing techniques, LTGR preserves (and occasionally improves) performance on standard test sets.
- Backdoor Mitigation: In a "Trojan" experiment where a double quotation mark was injected as a shortcut, LTGR improved accuracy on "hard" samples from 0% to 30.45%, demonstrating its ability to ignore intentional shortcuts.
Key Insights: Simplicity Bias and Learning Dynamics
A core finding of the paper is the "simplicity bias" of NLU models. Models are inherently "lazy," prioritizing features that reduce training loss most rapidly. This leads to the early adoption of head-distribution shortcuts.
As shown in the validation trends, models that prioritize shortcuts ("Shortcut_first") may show early gains but eventually plateau or suffer in generalization compared to models forced to learn harder, more robust features ("Hard_first"). By artificially lowering confidence on these easy samples, LTGR effectively guides the model toward the high-information "tail" of the distribution.
Limitations and Future Work
While effective, the current approach focuses on word-level shortcuts. Future research could extend this to syntactic or phrase-level biases. Additionally, the 5% threshold for "head" features is a heuristic that might benefit from dynamic adjustment across different datasets. Finally, addressing the inherent inductive biases of Transformer architectures remains a critical challenge for long-term NLU robustness.
Summary updated