Understanding and Mitigating Spurious Correlations in Text Classification with Neighborhood Analysis
Not on the map. Why?
Abstract (arXiv)
Recent research has revealed that machine learning models have a tendency to leverage spurious correlations that exist in the training set but may not hold true in general circumstances. For instance, a sentiment classifier may erroneously learn that the token "performances" is commonly associated with positive movie reviews. Relying on these spurious correlations degrades the classifiers performance when it deploys on out-of-distribution data. In this paper, we examine the implications of spurious correlations through a novel perspective called neighborhood analysis. The analysis uncovers how spurious correlations lead unrelated words to erroneously cluster together in the embedding space. Driven by the analysis, we design a metric to detect spurious tokens and also propose a family of regularization methods, NFL (doN't Forget your Language) to mitigate spurious correlations in text classification. Experiments show that NFL can effectively prevent erroneous clusters and significantly improve the robustness of classifiers without auxiliary data. The code is publicly available at https://github.com/oscarchew/doNt-Forget-your-Language.
Key facts. Cited by 11 papers in the map (data through 7 Oct 2026). Builds on 32 of its 46 references that are in the map. First posted on arXiv 23 May 2023.
Builds on
32 of 46 references.
References · 32
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
- 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,854
- 2019HellaSwag: Can a Machine Really Finish Your Sentence?cited by 4,018
- 2016Making the V in VQA Matter: Elevating the Role of Image Understanding in Visual Question Answeringcited by 2,498
- 2019SuperGLUE: A Stickier Benchmark for General-Purpose Language Understanding Systemscited by 1,718
- 2021DeBERTaV3: Improving DeBERTa using ELECTRA-Style Pre-Training with Gradient-Disentangled Embedding Sharingcited by 1,219
- 2019Right for the Wrong Reasons: Diagnosing Syntactic Heuristics in Natural Language Inferencecited by 864
- 2020XTREME: A Massively Multilingual Multi-task Benchmark for Evaluating Cross-lingual Generalizationcited by 738
- 2018Annotation Artifacts in Natural Language Inference Datacited by 656
- 2021Just Train Twice: Improving Group Robustness without Training Group Informationcited by 522
- 2019Nuanced Metrics for Measuring Unintended Bias with Real Data for Text Classificationcited by 396
20 more
- 2022Last Layer Re-Training is Sufficient for Robustness to Spurious Correlationscited by 379
- 2019Don't Take the Easy Way Out: Ensemble Based Methods for Avoiding Known Dataset Biasescited by 279
- 2018Breaking NLI Systems with Sentences that Require Simple Lexical Inferencescited by 134
- 2020An Empirical Study on Robustness to Spurious Correlations using Pre-trained Language Modelscited by 133
- 2019End-to-End Bias Mitigation by Modelling Biases in Corporacited by 127
- 2019Unlearn Dataset Bias in Natural Language Inference by Fitting the Residualcited by 119
- 2020Towards Debiasing NLU Models from Unknown Biasescited by 116
- 2021Competency Problems: On Finding and Removing Artifacts in Language Datacited by 91
- 2020Mind the Trade-off: Debiasing NLU Models without Degrading the In-distribution Performancecited by 85
- 2021Identifying and Mitigating Spurious Correlations for Improving Robustness in NLP Modelscited by 76
- 2021Examining and Combating Spurious Features under Distribution Shiftcited by 64
- 2020Identifying Spurious Correlations for Robust Text Classificationcited by 59
- 2020Learning to Model and Ignore Dataset Bias with Mixed Capacity Ensemblescited by 43
- 2022Are All Spurious Features in Natural Language Alike? An Analysis through a Causal Lenscited by 28
- 2023Explanation-based Finetuning Makes Models More Robust to Spurious Cuescited by 24
- 2021MedNLI Is Not Immune: Natural Language Inference Artifacts in the Clinical Domaincited by 17
- 2021FewNLU: Benchmarking State-of-the-Art Methods for Few-Shot Natural Language Understandingcited by 17
- 2022Finding Dataset Shortcuts with Grammar Inductioncited by 15
- 2017Which Encoding is the Best for Text Classification in Chinese, English, Japanese and Korean?cited by 10
- 2022Investigating Ensemble Methods for Model Robustness Improvement of Text Classifierscited by 2
Built on by
Citing papers per year: 2024: 3; 2025: 4; 2026: 4.
11 papers.
- 2024Defending Text-to-image Diffusion Models: Surprising Efficacy of Textual Perturbations Against Backdoor Attackscited by 12
- 2024Navigating the Shortcut Maze: A Comprehensive Analysis of Shortcut Learning in Text Classification by Language Modelscited by 10
- 2024Focus On This, Not That! Steering LLMs with Adaptive Feature Specificationcited by 5
- 2025Do Students Debias Like Teachers? On the Distillability of Bias Mitigation Methodscited by 2
- 2025Q-MLLM: Vector Quantization for Robust Multimodal Large Language Model Securitycited by 2
- 2025CoBA: Counterbias Text Augmentation for Mitigating Various Spurious Correlations via Semantic Triplescited by 0
- 2025Generalizing to Unseen Disaster Events: A Causal Viewcited by 0
- 2026Three Concrete Challenges and Two Hopes for the Safety of Unsupervised Elicitationcited by 0
- 2026Models Know Their Shortcuts: Deployment-Time Shortcut Mitigationcited by 0
- 2026X-MULTI: VLM-based Imaging Factor Disentanglement for Factor-Aware Image Synthesiscited by 0
- 2026QTrans: A Quantum Transformer for Sentiment Classificationcited by 0
- 2026QTrans: A Quantum Transformer for Sentiment Classification10 Sep 2026
- 2026X-MULTI: VLM-based Imaging Factor Disentanglement for Factor-Aware Image Synthesis25 Aug 2026
- 2026Models Know Their Shortcuts: Deployment-Time Shortcut Mitigation14 Apr 2026
- 2026Three Concrete Challenges and Two Hopes for the Safety of Unsupervised Elicitation23 Feb 2026
- 2025Q-MLLM: Vector Quantization for Robust Multimodal Large Language Model Security20 Nov 2025
- 2025Generalizing to Unseen Disaster Events: A Causal View13 Nov 2025
- 2025Do Students Debias Like Teachers? On the Distillability of Bias Mitigation Methods30 Oct 2025
- 2025CoBA: Counterbias Text Augmentation for Mitigating Various Spurious Correlations via Semantic Triples26 Aug 2025
- 2024Focus On This, Not That! Steering LLMs with Adaptive Feature Specification30 Oct 2024
- 2024Navigating the Shortcut Maze: A Comprehensive Analysis of Shortcut Learning in Text Classification by Language Models26 Sep 2024
- 2024Defending Text-to-image Diffusion Models: Surprising Efficacy of Textual Perturbations Against Backdoor Attacks28 Aug 2024