Disentangling Spurious Correlations: How IRM Handles Diverse Shortcuts in Text Classification

Paul Grunenwald, Benoit Crabbé, Guillaume Wisniewski, Pirmin Lemberger


Abstract
In NLP, models trained via Empirical Risk Minimization (ERM) often exploit spurious correlations, such as dialectal markers, at the expense of robust linguistic features, thereby degrading their out-of-distribution (OOD) generalization. Invariant Risk Minimization (IRM) aims to suppress such shortcuts by identifying predictive relationships that remain stable across environments, but its practical utility for NLP remains debated. We use a causality-driven framework to evaluate IRM under three shortcut-generating mechanisms: label-generated features, confounding, and selection bias. Our results show that IRM successfully rejects shortcuts across the evaluated causal and anti-causal structures, including under limited environmental variation and increasing label noise. We then extend our analysis beyond controlled synthetic artifacts to two less constrained settings: gender-profession associations in Bias in Bios and semantically loaded actor-name shortcuts in ActorCorr. These experiments show that invariant learning can mitigate more realistic textual shortcuts, while semantically meaningful features require careful calibration of the invariance penalty.
Anthology ID:
2026.emnlp-main.2671
Volume:
Proceedings of the 2026 Conference on Empirical Methods in Natural Language Processing
Month:
October
Year:
2026
Address:
Budapest, Hungary
Editors:
Hung-Yi Lee, Sunipa Dev, Jessy Li, Desmond Elliott
Venue:
EMNLP
SIG:
SIGDAT
Publisher:
Association for Computational Linguistics
Note:
Pages:
60785–60805
Language:
URL:
https://aclanthology.org/2026.emnlp-main.2671/
DOI:
Bibkey:
Cite (ACL):
Paul Grunenwald, Benoit Crabbé, Guillaume Wisniewski, and Pirmin Lemberger. 2026. Disentangling Spurious Correlations: How IRM Handles Diverse Shortcuts in Text Classification. In Proceedings of the 2026 Conference on Empirical Methods in Natural Language Processing, pages 60785–60805, Budapest, Hungary. Association for Computational Linguistics.
Cite (Informal):
Disentangling Spurious Correlations: How IRM Handles Diverse Shortcuts in Text Classification (Grunenwald et al., EMNLP 2026)
Copy Citation:
PDF:
https://aclanthology.org/2026.emnlp-main.2671.pdf