TL;DR
This paper introduces a novel method to improve the robustness of NLP models against spurious correlations by identifying and fine-tuning on "forgettable" examples. By leveraging examples that models struggle to learn or forget during training, they achieve significant gains in out-of-distribution generalization across several challenging benchmarks.
What Problem Does This Paper Address?
Modern NLP models, while powerful, often learn spurious correlations present in training data rather than true underlying linguistic patterns. For instance, in natural language inference (NLI), models might rely heavily on word overlap between a premise and hypothesis to predict entailment, a heuristic that breaks down on out-of-distribution (OOD) datasets. This brittleness limits their real-world applicability. While previous work has shown that minority examples (those that violate these spurious correlations) are crucial for OOD generalization, effectively identifying these minority examples without prior knowledge of the specific biases has been a significant challenge.
Methods
The core of this paper is a two-pronged approach:
- Identifying Minority Examples via Forgetting: The authors propose using "forgettable examples" as a proxy for minority examples. An example is considered forgettable if it's either never learned correctly during training or is learned and then forgotten. They compute this by training simpler models (BoW and BiLSTM) on the training data and tracking example-level accuracy across epochs. Examples that are consistently misclassified or flip from correct to incorrect are flagged. This method is model- and task-agnostic, requiring no prior knowledge of specific spurious correlations.
- Robustifying via Two-Stage Fine-Tuning: Once forgettable (minority) examples are identified, the authors fine-tune a pre-trained language model (PLM) in two stages. First, the PLM is fine-tuned on the entire training dataset. Second, an additional fine-tuning step is performed exclusively on the identified forgettable examples. This second stage aims to reinforce the model's understanding of these challenging, minority cases.
Datasets
The paper evaluates its approach on three sentence-pair classification tasks:
- Natural Language Inference (NLI):
- Training: MNLI (Multi-Genre Natural Language Inference)
- Out-of-Distribution Evaluation: HANS (Heuristic Analysis for NLI Systems)
- Paraphrase Identification:
- Training: QQP (Quora Question Pairs)
- Out-of-Distribution Evaluation: PAWS (Paraphrase Adversaries from Word Scrambling)
- Fact Verification:
- Training: FEVER (Fact Extraction and VERification)
- Out-of-Distribution Evaluation: FEVER-Symmetric (a challenging subset of FEVER)
Key Insights and Ideas
- Forgetting as a Signal for Minority Examples: The paper demonstrates that examples a model struggles to learn or forgets are indeed good indicators of minority examples that violate common spurious correlations. This provides a practical, data-driven way to find these crucial examples without manual annotation or prior bias knowledge.
- Two-Stage Fine-Tuning is Effective: The proposed two-stage fine-tuning strategy (full dataset then minority examples) significantly boosts OOD performance while minimally impacting in-distribution accuracy. This suggests that reinforcing learning on challenging examples after initial broad training is a powerful technique.
- Simpler Models as Forgetting Detectors: Using shallower models like BoW or BiLSTM to identify forgettable examples is effective and potentially more representative of true minorities than using the PLM itself, as these simpler models might exhibit less memorization and capture different types of learning difficulties.
- Larger Models Benefit, But Still Need Help: While larger PLMs (like BERT-large and XLNet) inherently show better OOD generalization, they still benefit substantially from fine-tuning on forgettable examples, indicating that even advanced models can be brittle.
Key Results
- Substantial OOD Improvement: The proposed method achieved significant improvements in out-of-distribution accuracy on HANS, PAWS, and FEVER-Symmetric datasets. For example, on HANS, their best model achieved a +8.4% absolute improvement over the initial BERT model.
- Comparable to or Better than Baselines: The approach performed comparably to or better than several recent baselines that rely on re-weighting or confidence regularization, often with a simpler methodology.
- Fine-grained Analysis: The paper shows that fine-tuning on forgettable examples specifically improves performance on "non-entailment" classes in NLI and "non-paraphrase" classes in paraphrase identification, directly addressing the weaknesses caused by spurious correlations.
- Model Calibration: Fine-tuning on forgettables also helped calibrate the confidence of models, making them less overconfident on challenging examples.
Limitations and Future Work
- Size of Forgettable Set: The paper notes that while fine-tuning on forgettables improves OOD performance, training only on forgettable examples leads to poor performance, highlighting the need for a balanced approach.
- Heuristic-Specific Biased Models: For certain specific heuristics (e.g., hypothesis-only features), a model specifically designed to capture that heuristic might yield better forgettable examples than general-purpose models.
- Future Work: The authors suggest exploring influence estimation as an alternative method to mine minority examples and comparing it with their forgettable example approach. They also hint at investigating whether specific biased models are needed for certain challenging test sets.
Summary updated