Robustness to Spurious Correlations in Text Classification via Automatically Generated Counterfactuals
Not on the map. Why?
Abstract (arXiv)
Spurious correlations threaten the validity of statistical classifiers. While model accuracy may appear high when the test data is from the same distribution as the training data, it can quickly degrade when the test distribution changes. For example, it has been shown that classifiers perform poorly when humans make minor modifications to change the label of an example. One solution to increase model reliability and generalizability is to identify causal associations between features and classes. In this paper, we propose to train a robust text classifier by augmenting the training data with automatically generated counterfactual data. We first identify likely causal features using a statistical matching approach. Next, we generate counterfactual samples for the original training data by substituting causal features with their antonyms and then assigning opposite labels to the counterfactual samples. Finally, we combine the original data and counterfactual data to train a robust classifier. Experiments on two classification tasks show that a traditional classifier trained on the original data does very poorly on human-generated counterfactual samples (e.g., 10%-37% drop in accuracy). However, the classifier trained on the combined data is more robust and performs well on both the original test data and the counterfactual test data (e.g., 12%-25% increase in accuracy compared with the traditional classifier). Detailed analysis shows that the robust classifier makes meaningful and trustworthy predictions by emphasizing causal features and de-emphasizing non-causal features.
Key facts. Cited by 67 papers in the map (data through 14 Oct 2026). First posted on arXiv 18 Dec 2020.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 9; 2022: 14; 2023: 25; 2024: 11; 2025: 4; 2026: 4.
67 papers.
Sort:
By area:
- 2021Measure and Improve Robustness in NLP Models: A Surveycited by 107
- 2021Desiderata for Representation Learning: A Causal Perspectivecited by 76
- 2021Identifying and Mitigating Spurious Correlations for Improving Robustness in NLP Modelscited by 76
- 2022GLUE-X: Evaluating Natural Language Understanding Models from an Out-of-distribution Generalization Perspectivecited by 72
- 2023SocialCounterfactuals: Probing and Mitigating Intersectional Social Biases in Vision-Language Models with Counterfactual Examplescited by 53
- 2024Usable XAI: 10 Strategies Towards Exploiting Explainability in the LLM Eracited by 46
- 2021Out-of-distribution Generalization in the Presence of Nuisance-Induced Spurious Correlationscited by 41
- 2024The Clever Hans Mirage: A Comprehensive Survey on Spurious Correlations in Machine Learningcited by 41
- 2023COCO-Counterfactuals: Automatically Constructed Counterfactual Examples for Image-Text Pairscited by 39
- 2023Prompting Large Language Models for Counterfactual Generation: An Empirical Studycited by 37
- 2023Interpreting Pretrained Language Models via Concept Bottleneckscited by 33
- 2021Exploring the Efficacy of Automatically Generated Counterfactuals for Sentiment Analysiscited by 30
38 more
- 2022A Rationale-Centric Framework for Human-in-the-loop Machine Learningcited by 27
- 2022NeuroCounterfactuals: Beyond Minimal-Edit Counterfactuals for Richer Data Augmentationcited by 23
- 2021Uncovering Main Causalities for Long-tailed Information Extractioncited by 21
- 2022Men Also Do Laundry: Multi-Attribute Bias Amplificationcited by 21
- 2024A Survey on Natural Language Counterfactual Generationcited by 21
- 2022Nuisances via Negativa: Adjusting for Spurious Correlations via Data Augmentationcited by 18
- 2022Domain Generalization -- A Causal Perspectivecited by 14
- 2021Enhancing Model Robustness and Fairness with Causality: A Regularization Approachcited by 11
- 2024Navigating the Shortcut Maze: A Comprehensive Analysis of Shortcut Learning in Text Classification by Language Modelscited by 10
- 2022A.I. Robustness: a Human-Centered Perspective on Technological Challenges and Opportunitiescited by 9
- 2023EXPLAIN, EDIT, GENERATE: Rationale-Sensitive Counterfactual Data Augmentation for Multi-hop Fact Verificationcited by 9
- 2024A Review of Multimodal Explainable Artificial Intelligence: Past, Present and Futurecited by 9
- 2023SCENE: Self-Labeled Counterfactuals for Extrapolating to Negative Examplescited by 8
- 2023Compositional Generalization for Multi-label Text Classification: A Data-Augmentation Approachcited by 7
- 2024Resampled Datasets Are Not Enough: Mitigating Societal Bias Beyond Single Attributescited by 7
- 2023Learning to Generalize for Cross-domain QAcited by 6
- 2023Counterfactuals of Counterfactuals: a back-translation-inspired approach to analyse counterfactual editorscited by 6
- 2023Predict the Future from the Past? On the Temporal Data Distribution Shift in Financial Sentiment Classificationscited by 6
- 2022Debiasing Stance Detection Models with Counterfactual Reasoning and Adversarial Bias Learningcited by 5
- 2023Comparable Demonstrations are Important in In-Context Learning: A Novel Perspective on Demonstration Selectioncited by 5
- 2024A Rationale-centric Counterfactual Data Augmentation Method for Cross-Document Event Coreference Resolutioncited by 5
- 2024Focus On This, Not That! Steering LLMs with Adaptive Feature Specificationcited by 5
- 2022Less is Better: Recovering Intended-Feature Subspace to Robustify NLU Modelscited by 4
- 2022Realistic Data Augmentation Framework for Enhancing Tabular Reasoningcited by 4
- 2023RFiD: Towards Rational Fusion-in-Decoder for Open-Domain Question Answeringcited by 4
- 2023SOUL: Towards Sentiment and Opinion Understanding of Languagecited by 4
- 2023Improving the Out-Of-Distribution Generalization Capability of Language Models: Counterfactually-Augmented Data is not Enoughcited by 3
- 2021C3: Compositional Counterfactual Contrastive Learning for Video-grounded Dialoguescited by 2
- 2023Counterfactual Augmentation for Multimodal Learning Under Presentation Biascited by 2
- 2023Towards Robust Aspect-based Sentiment Analysis through Non-counterfactual Augmentationscited by 2
- 2023Mitigating Shortcuts in Language Models with Soft Label Encodingcited by 2
- 2023Robust Stance Detection: Understanding Public Perceptions in Social Mediacited by 2
- 2023Unlock the Potential of Counterfactually-Augmented Data in Out-Of-Distribution Generalizationcited by 2
- 2023Zero-Shot Cross-Lingual Sentiment Classification under Distribution Shift: an Exploratory Studycited by 2
- 2024Leveraging Variation Theory in Counterfactual Data Augmentation for Optimized Active Learningcited by 2
- 2025Mitigating Shortcut Learning with InterpoLated Learningcited by 2
- 2021Multi-Domain Transformer-Based Counterfactual Augmentation for Earnings Call Analysiscited by 1
- 2022Investigating the Robustness of Natural Language Generation from Logical Forms via Counterfactual Samplescited by 1
50 most cited of 67 All 67 (JSON)
- 2026PIDS-Bench: Evaluating Prompt-Injection Detectors Under Over-Defense, Obfuscation, and Distribution Shift14 Sep 2026
- 2026When Benchmarks Mislead: Shortcut Learning, Length Confounds, and the Limits of Cross-Dataset Generalization in Multilingual Fake News and Sarcasm Detection7 Jul 2026
- 2026Robust Biomedical Publication Type and Study Design Classification with Knowledge-Guided Perturbations12 May 2026
- 2026Three Concrete Challenges and Two Hopes for the Safety of Unsupervised Elicitation23 Feb 2026
- 2025Target-oriented Multimodal Sentiment Classification with Counterfactual-enhanced Debiasing11 Sep 2025
- 2025CoBA: Counterbias Text Augmentation for Mitigating Various Spurious Correlations via Semantic Triples26 Aug 2025
- 2025Mitigating Shortcut Learning with InterpoLated Learning7 Jul 2025
- 2025MiMu: Mitigating Multiple Shortcut Learning Behavior of Transformers14 Apr 2025
- 2024A Review of Multimodal Explainable Artificial Intelligence: Past, Present and Future18 Dec 2024
- 2024Focus On This, Not That! Steering LLMs with Adaptive Feature Specification30 Oct 2024
- 2024Evaluation of Attribution Bias in Generator-Aware Retrieval-Augmented Large Language Models16 Oct 2024
- 2024Navigating the Shortcut Maze: A Comprehensive Analysis of Shortcut Learning in Text Classification by Language Models26 Sep 2024
38 more
- 2024Topic-aware Causal Intervention for Counterfactual Detection25 Sep 2024
- 2024Leveraging Variation Theory in Counterfactual Data Augmentation for Optimized Active Learning7 Aug 2024
- 2024A Survey on Natural Language Counterfactual Generation4 Jul 2024
- 2024Resampled Datasets Are Not Enough: Mitigating Societal Bias Beyond Single Attributes4 Jul 2024
- 2024A Rationale-centric Counterfactual Data Augmentation Method for Cross-Document Event Coreference Resolution2 Apr 2024
- 2024Usable XAI: 10 Strategies Towards Exploiting Explainability in the LLM Era13 Mar 2024
- 2024The Clever Hans Mirage: A Comprehensive Survey on Spurious Correlations in Machine Learning20 Feb 2024
- 2023Compositional Generalization for Multi-label Text Classification: A Data-Augmentation Approach18 Dec 2023
- 2023Comparable Demonstrations are Important in In-Context Learning: A Novel Perspective on Demonstration Selection12 Dec 2023
- 2023SocialCounterfactuals: Probing and Mitigating Intersectional Social Biases in Vision-Language Models with Counterfactual Examples30 Nov 2023
- 2023Zero-Shot Cross-Lingual Sentiment Classification under Distribution Shift: an Exploratory Study11 Nov 2023
- 2023Interpreting Pretrained Language Models via Concept Bottlenecks8 Nov 2023
- 2023Detecting Spurious Correlations via Robust Visual Concepts in Real and AI-Generated Image Classification3 Nov 2023
- 2023Addressing Weak Decision Boundaries in Image Classification by Leveraging Web Search and Generative Models30 Oct 2023
- 2023SOUL: Towards Sentiment and Opinion Understanding of Language27 Oct 2023
- 2023EXPLAIN, EDIT, GENERATE: Rationale-Sensitive Counterfactual Data Augmentation for Multi-hop Fact Verification23 Oct 2023
- 2023Predict the Future from the Past? On the Temporal Data Distribution Shift in Financial Sentiment Classifications19 Oct 2023
- 2023Accurate Use of Label Dependency in Multi-Label Text Classification Through the Lens of Causality11 Oct 2023
- 2023Unlock the Potential of Counterfactually-Augmented Data in Out-Of-Distribution Generalization10 Oct 2023
- 2023Robust Stance Detection: Understanding Public Perceptions in Social Media26 Sep 2023
- 2023COCO-Counterfactuals: Automatically Constructed Counterfactual Examples for Image-Text Pairs23 Sep 2023
- 2023Mitigating Shortcuts in Language Models with Soft Label Encoding17 Sep 2023
- 2023Towards Robust Aspect-based Sentiment Analysis through Non-counterfactual Augmentations24 Jun 2023
- 2023Counterfactuals of Counterfactuals: a back-translation-inspired approach to analyse counterfactual editors26 May 2023
- 2023RFiD: Towards Rational Fusion-in-Decoder for Open-Domain Question Answering26 May 2023
- 2023Prompting Large Language Models for Counterfactual Generation: An Empirical Study24 May 2023
- 2023Out-of-Distribution Generalization in Text Classification: Past, Present, and Future23 May 2023
- 2023Counterfactual Augmentation for Multimodal Learning Under Presentation Bias23 May 2023
- 2023Learning to Generalize for Cross-domain QA14 May 2023
- 2023SCENE: Self-Labeled Counterfactuals for Extrapolating to Negative Examples13 May 2023
- 2023Contrastive variational information bottleneck for aspect-based sentiment analysis6 Mar 2023
- 2023Improving the Out-Of-Distribution Generalization Capability of Language Models: Counterfactually-Augmented Data is not Enough18 Feb 2023
- 2022Debiasing Stance Detection Models with Counterfactual Reasoning and Adversarial Bias Learning20 Dec 2022
- 2022GLUE-X: Evaluating Natural Language Understanding Models from an Out-of-distribution Generalization Perspective15 Nov 2022
- 2022Realistic Data Augmentation Framework for Enhancing Tabular Reasoning23 Oct 2022
- 2022NeuroCounterfactuals: Beyond Minimal-Edit Counterfactuals for Richer Data Augmentation22 Oct 2022
- 2022Men Also Do Laundry: Multi-Attribute Bias Amplification21 Oct 2022
- 2022Robustifying Sentiment Classification by Maximally Exploiting Few Counterfactuals21 Oct 2022
50 newest of 67 All 67 (JSON)
- 2021Measure and Improve Robustness in NLP Models: A Surveycited by 107
- 2021Desiderata for Representation Learning: A Causal Perspectivecited by 76
- 2021Identifying and Mitigating Spurious Correlations for Improving Robustness in NLP Modelscited by 76
- 2022GLUE-X: Evaluating Natural Language Understanding Models from an Out-of-distribution Generalization Perspectivecited by 72
- 2024Usable XAI: 10 Strategies Towards Exploiting Explainability in the LLM Eracited by 46
- 2021Out-of-distribution Generalization in the Presence of Nuisance-Induced Spurious Correlationscited by 41
- 2024The Clever Hans Mirage: A Comprehensive Survey on Spurious Correlations in Machine Learningcited by 41
- 2023COCO-Counterfactuals: Automatically Constructed Counterfactual Examples for Image-Text Pairscited by 39
- 2023Prompting Large Language Models for Counterfactual Generation: An Empirical Studycited by 37
- 2023Interpreting Pretrained Language Models via Concept Bottleneckscited by 33
- 2021Exploring the Efficacy of Automatically Generated Counterfactuals for Sentiment Analysiscited by 30
- 2022A Rationale-Centric Framework for Human-in-the-loop Machine Learningcited by 27
12 most cited of 64 All 64 (JSON)
- 2026PIDS-Bench: Evaluating Prompt-Injection Detectors Under Over-Defense, Obfuscation, and Distribution Shift14 Sep 2026
- 2026When Benchmarks Mislead: Shortcut Learning, Length Confounds, and the Limits of Cross-Dataset Generalization in Multilingual Fake News and Sarcasm Detection7 Jul 2026
- 2026Robust Biomedical Publication Type and Study Design Classification with Knowledge-Guided Perturbations12 May 2026
- 2026Three Concrete Challenges and Two Hopes for the Safety of Unsupervised Elicitation23 Feb 2026
- 2025Target-oriented Multimodal Sentiment Classification with Counterfactual-enhanced Debiasing11 Sep 2025
- 2025CoBA: Counterbias Text Augmentation for Mitigating Various Spurious Correlations via Semantic Triples26 Aug 2025
- 2025Mitigating Shortcut Learning with InterpoLated Learning7 Jul 2025
- 2025MiMu: Mitigating Multiple Shortcut Learning Behavior of Transformers14 Apr 2025
- 2024A Review of Multimodal Explainable Artificial Intelligence: Past, Present and Future18 Dec 2024
- 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
- 2024Topic-aware Causal Intervention for Counterfactual Detection25 Sep 2024
12 newest of 64 All 64 (JSON)