Robustness to Spurious Correlations in Text Classification via Automatically Generated Counterfactuals
Abstract
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.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
24 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- A Rationale-Centric Framework for Human-in-the-loop Machine Learning cites Learning The Difference That Makes A Difference With Counterfactually-Augmented Data
- A Rationale-Centric Framework for Human-in-the-loop Machine Learning cites Robustness to Spurious Correlations via Human Annotations
- Uncovering Main Causalities for Long-tailed Information Extraction cites Robustness to Spurious Correlations via Human Annotations
- Uncovering Main Causalities for Long-tailed Information Extraction cites Identifying spurious correlations for robust text classification
- Debiasing NLU Models via Causal Intervention and Counterfactual Reasoning cites Learning The Difference That Makes A Difference With Counterfactually-Augmented Data
- Out-of-distribution Generalization in the Presence of Nuisance-Induced Spurious Correlations cites Identifying spurious correlations for robust text classification
- C2L: Causally Contrastive Learning for Robust Text Classification cites Learning The Difference That Makes A Difference With Counterfactually-Augmented Data
- C2L: Causally Contrastive Learning for Robust Text Classification cites Identifying spurious correlations for robust text classification
- Robustness to Spurious Correlations via Human Annotations cites Learning The Difference That Makes A Difference With Counterfactually-Augmented Data
- Identifying spurious correlations for robust text classification cites Learning The Difference That Makes A Difference With Counterfactually-Augmented Data
Cited by top-tier papers24
- Out-of-distribution Generalization in the Presence of Nuisance-Induced Spurious CorrelationsAahlad Manas Puli, Lily H. Zhang, Eric Karl Oermann, Rajesh RanganathICLR 2022 · 54 citations
- C2L: Causally Contrastive Learning for Robust Text ClassificationSeungtaek Choi, Myeongho Jeong, Hojae Han, Seung-won HwangAAAI 2022 · 52 citations
- A Rationale-Centric Framework for Human-in-the-loop Machine LearningJinghui Lu, Linyi Yang, Brian MacNamee, Yue ZhangACL 2022 · 46 citations
- Debiasing NLU Models via Causal Intervention and Counterfactual ReasoningBing Tian, Yixin Cao, Yong Zhang, Chunxiao XingAAAI 2022 · 45 citations
- Uncovering Main Causalities for Long-tailed Information ExtractionGuoshun Nan, Jiaqi Zeng, Rui Qiao, Zhijiang Guo et al.EMNLP 2021 · 39 citations
Builds on3
- Learning The Difference That Makes A Difference With Counterfactually-Augmented DataDivyansh Kaushik, Eduard H. Hovy, Zachary Chase LiptonICLR 2020 · 625 citations
- Robustness to Spurious Correlations via Human AnnotationsMegha Srivastava, Tatsunori B. Hashimoto, Percy LiangICML 2020 · 103 citations
- Identifying spurious correlations for robust text classificationZhao Wang, Aron CulottaEMNLP Findings 2020 · 60 citations
Related papers
- Causal-structure Driven Augmentations for Text OOD GeneralizationAmir Feder, Yoav Wald, Claudia Shi, Suchi Saria et al.NeurIPS 2023 · 10 citations
- Towards Robust Classification Model by Counterfactual and Invariant Data GenerationChun-Hao Chang, George-Alexandru Adam, Anna GoldenbergCVPR 2021
- Counterfactual Invariance to Spurious Correlations in Text ClassificationVictor Veitch, Alexander D'Amour, Steve Yadlowsky, Jacob EisensteinNeurIPS 2021 · 108 citations
- Improving Classifier Robustness through Active Generative Counterfactual Data AugmentationAnanth Balashankar, Xuezhi Wang, Yao Qin, Ben Packer et al.EMNLP Findings 2023 · 4 citations
- Controlling Learned Effects to Reduce Spurious Correlations in Text ClassifiersParikshit Bansal, Amit SharmaACL 2023 · 1 citation
