mlsanityData to 14 Oct 2026

Robustness to Spurious Correlations in Text Classification via Automatically Generated Counterfactuals

arXiv 2012.10040 ↗First posted 18 Dec 2020cs.LGcited by 67

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

Cited by year (2026 to 14 Oct)

Citing papers per year: 2021: 9; 2022: 14; 2023: 25; 2024: 11; 2025: 4; 2026: 4.

67 papers.

Sort:

By area:

  1. 2021Measure and Improve Robustness in NLP Models: A Surveycited by 107
  2. 2021Desiderata for Representation Learning: A Causal Perspectivecited by 76
  3. 2021Identifying and Mitigating Spurious Correlations for Improving Robustness in NLP Modelscited by 76
  4. 2022GLUE-X: Evaluating Natural Language Understanding Models from an Out-of-distribution Generalization Perspectivecited by 72
  5. 2023SocialCounterfactuals: Probing and Mitigating Intersectional Social Biases in Vision-Language Models with Counterfactual Examplescited by 53
  6. 2024Usable XAI: 10 Strategies Towards Exploiting Explainability in the LLM Eracited by 46
  7. 2021Out-of-distribution Generalization in the Presence of Nuisance-Induced Spurious Correlationscited by 41
  8. 2024The Clever Hans Mirage: A Comprehensive Survey on Spurious Correlations in Machine Learningcited by 41
  9. 2023COCO-Counterfactuals: Automatically Constructed Counterfactual Examples for Image-Text Pairscited by 39
  10. 2023Prompting Large Language Models for Counterfactual Generation: An Empirical Studycited by 37
  11. 2023Interpreting Pretrained Language Models via Concept Bottleneckscited by 33
  12. 2021Exploring the Efficacy of Automatically Generated Counterfactuals for Sentiment Analysiscited by 30
38 more
  1. 2022A Rationale-Centric Framework for Human-in-the-loop Machine Learningcited by 27
  2. 2022NeuroCounterfactuals: Beyond Minimal-Edit Counterfactuals for Richer Data Augmentationcited by 23
  3. 2021Uncovering Main Causalities for Long-tailed Information Extractioncited by 21
  4. 2022Men Also Do Laundry: Multi-Attribute Bias Amplificationcited by 21
  5. 2024A Survey on Natural Language Counterfactual Generationcited by 21
  6. 2022Nuisances via Negativa: Adjusting for Spurious Correlations via Data Augmentationcited by 18
  7. 2022Domain Generalization -- A Causal Perspectivecited by 14
  8. 2021Enhancing Model Robustness and Fairness with Causality: A Regularization Approachcited by 11
  9. 2024Navigating the Shortcut Maze: A Comprehensive Analysis of Shortcut Learning in Text Classification by Language Modelscited by 10
  10. 2022A.I. Robustness: a Human-Centered Perspective on Technological Challenges and Opportunitiescited by 9
  11. 2023EXPLAIN, EDIT, GENERATE: Rationale-Sensitive Counterfactual Data Augmentation for Multi-hop Fact Verificationcited by 9
  12. 2024A Review of Multimodal Explainable Artificial Intelligence: Past, Present and Futurecited by 9
  13. 2023SCENE: Self-Labeled Counterfactuals for Extrapolating to Negative Examplescited by 8
  14. 2023Compositional Generalization for Multi-label Text Classification: A Data-Augmentation Approachcited by 7
  15. 2024Resampled Datasets Are Not Enough: Mitigating Societal Bias Beyond Single Attributescited by 7
  16. 2023Learning to Generalize for Cross-domain QAcited by 6
  17. 2023Counterfactuals of Counterfactuals: a back-translation-inspired approach to analyse counterfactual editorscited by 6
  18. 2023Predict the Future from the Past? On the Temporal Data Distribution Shift in Financial Sentiment Classificationscited by 6
  19. 2022Debiasing Stance Detection Models with Counterfactual Reasoning and Adversarial Bias Learningcited by 5
  20. 2023Comparable Demonstrations are Important in In-Context Learning: A Novel Perspective on Demonstration Selectioncited by 5
  21. 2024A Rationale-centric Counterfactual Data Augmentation Method for Cross-Document Event Coreference Resolutioncited by 5
  22. 2024Focus On This, Not That! Steering LLMs with Adaptive Feature Specificationcited by 5
  23. 2022Less is Better: Recovering Intended-Feature Subspace to Robustify NLU Modelscited by 4
  24. 2022Realistic Data Augmentation Framework for Enhancing Tabular Reasoningcited by 4
  25. 2023RFiD: Towards Rational Fusion-in-Decoder for Open-Domain Question Answeringcited by 4
  26. 2023SOUL: Towards Sentiment and Opinion Understanding of Languagecited by 4
  27. 2023Improving the Out-Of-Distribution Generalization Capability of Language Models: Counterfactually-Augmented Data is not Enoughcited by 3
  28. 2021C3: Compositional Counterfactual Contrastive Learning for Video-grounded Dialoguescited by 2
  29. 2023Counterfactual Augmentation for Multimodal Learning Under Presentation Biascited by 2
  30. 2023Towards Robust Aspect-based Sentiment Analysis through Non-counterfactual Augmentationscited by 2
  31. 2023Mitigating Shortcuts in Language Models with Soft Label Encodingcited by 2
  32. 2023Robust Stance Detection: Understanding Public Perceptions in Social Mediacited by 2
  33. 2023Unlock the Potential of Counterfactually-Augmented Data in Out-Of-Distribution Generalizationcited by 2
  34. 2023Zero-Shot Cross-Lingual Sentiment Classification under Distribution Shift: an Exploratory Studycited by 2
  35. 2024Leveraging Variation Theory in Counterfactual Data Augmentation for Optimized Active Learningcited by 2
  36. 2025Mitigating Shortcut Learning with InterpoLated Learningcited by 2
  37. 2021Multi-Domain Transformer-Based Counterfactual Augmentation for Earnings Call Analysiscited by 1
  38. 2022Investigating the Robustness of Natural Language Generation from Logical Forms via Counterfactual Samplescited by 1

50 most cited of 67 All 67 (JSON)