[Paper Review] An Empirical Study on Robustness to Spurious Correlations using Pre-trained Language Models
This paper investigates why pre-trained language models like BERT achieve robustness to spurious correlations in NLP tasks. It finds that robustness stems from generalization on a small number of counterexamples that break dominant heuristics; when such examples are scarce, multi-task learning (MTL) with auxiliary tasks significantly improves robustness by enhancing generalization from minority data, without sacrificing in-distribution performance.
Recent work has shown that pre-trained language models such as BERT improve robustness to spurious correlations in the dataset. Intrigued by these results, we find that the key to their success is generalization from a small amount of counterexamples where the spurious correlations do not hold. When such minority examples are scarce, pre-trained models perform as poorly as models trained from scratch. In the case of extreme minority, we propose to use multi-task learning (MTL) to improve generalization. Our experiments on natural language inference and paraphrase identification show that MTL with the right auxiliary tasks significantly improves performance on challenging examples without hurting the in-distribution performance. Further, we show that the gain from MTL mainly comes from improved generalization from the minority examples. Our results highlight the importance of data diversity for overcoming spurious correlations.
Motivation & Objective
- To understand the mechanism behind the robustness of pre-trained language models to spurious correlations in NLP.
- To investigate whether and how data diversity, especially minority examples that break spurious patterns, improves model generalization.
- To evaluate whether multi-task learning (MTL) can enhance robustness when counterexamples are extremely rare.
- To assess whether MTL improves generalization from minority examples rather than just in-distribution performance.
- To challenge the assumption that MTL offers limited benefit in i.i.d. settings by demonstrating its effectiveness in out-of-distribution generalization.
Proposed method
- The authors analyze pre-trained models (BERT, RoBERTa) fine-tuned on NLI (MNLI) and paraphrase identification (QQP) datasets, comparing performance on standard and challenging (adversarial) test sets.
- They isolate the impact of minority examples by removing counterexamples that violate spurious correlations (e.g., high word overlap without entailment) and measuring performance drop on challenging sets.
- They apply multi-task learning (MTL) with auxiliary tasks designed to improve generalization on rare, counterfactual examples, such as paraphrase or NLI-style data with inverted patterns.
- They train models with varying pre-training data sizes, model sizes, and fine-tuning epochs to assess their impact on robust accuracy.
- They compare performance on in-distribution (MNLI, QQP) and out-of-distribution (HANS, PAWS_QQP) test sets to isolate robustness gains.
- They use statistical significance testing and report standard deviations to validate results across multiple runs.
Experimental results
Research questions
- RQ1Why do pre-trained language models generalize better to challenging, out-of-distribution examples that violate spurious correlations?
- RQ2To what extent does the presence of minority counterexamples in the training data contribute to robustness in pre-trained models?
- RQ3Can multi-task learning improve robustness when counterexamples are extremely scarce, without degrading in-distribution performance?
- RQ4Does the improvement from MTL stem from better generalization on minority examples, or from other inductive biases?
- RQ5How do model scale, pre-training data size, and fine-tuning duration affect robustness to spurious correlations?
Key findings
- Pre-trained models achieve higher robust accuracy (e.g., 71.4% on HANS with BERT_LARGE) than models trained from scratch (49.9% with BERT_SCRATCH), primarily due to generalization from rare counterexamples.
- Removing minority counterexamples that break spurious correlations causes a significant drop in robust accuracy (e.g., from 62.5% to 49.9% on HANS), proving their critical role.
- When counterexamples are extremely rare, multi-task learning (MTL) with auxiliary tasks improves robust accuracy by up to 12.6 percentage points on HANS (from 53.8% to 62.5%) without harming in-distribution performance.
- The gain from MTL is attributed to improved generalization from minority examples, not just model capacity or inductive bias.
- Larger model size, more pre-training data, and longer fine-tuning further improve robust accuracy, especially when minority examples are scarce.
- The performance gap between models on HANS and PAWS_QQP suggests that current challenging datasets may not cover all types of distribution shift, highlighting the need for more comprehensive evaluation.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.