Invariant Language Modeling
Not on the map. Why?
Abstract (arXiv)
Large pretrained language models are critical components of modern NLP pipelines. Yet, they suffer from spurious correlations, poor out-of-domain generalization, and biases. Inspired by recent progress in causal machine learning, in particular the invariant risk minimization (IRM) paradigm, we propose invariant language modeling, a framework for learning invariant representations that generalize better across multiple environments. In particular, we adapt a game-theoretic formulation of IRM (IRM-games) to language models, where the invariance emerges from a specific training schedule in which all the environments compete to optimize their own environment-specific loss by updating subsets of the model in a round-robin fashion. We focus on controlled experiments to precisely demonstrate the ability of our method to (i) remove structured noise, (ii) ignore specific spurious correlations without affecting global performance, and (iii) achieve better out-of-domain generalization. These benefits come with a negligible computational overhead compared to standard training, do not require changing the local loss, and can be applied to any language model. We believe this framework is promising to help mitigate spurious correlations and biases in language models.
Key facts. Cited by 15 papers in the map (data through 7 Oct 2026). Builds on 37 of its 59 references that are in the map. First posted on arXiv 16 Oct 2021.
Builds on
37 of 59 references.
References · 37
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
- 2019DistilBERT, a distilled version of BERT: smaller, faster, cheaper and lightercited by 4,243
- 2016Pointer Sentinel Mixture Modelscited by 2,992
- 2019Benchmarking Neural Network Robustness to Common Corruptions and Perturbationscited by 2,857
- 2020The Pile: An 800GB Dataset of Diverse Text for Language Modelingcited by 2,346
- 2019Invariant Risk Minimizationcited by 1,832
- 2020In Search of Lost Domain Generalizationcited by 1,042
- 2020StereoSet: Measuring stereotypical bias in pretrained language modelscited by 911
- 2017Learning to Generalize: Meta-Learning for Domain Generalizationcited by 762
- 2013Domain Generalization via Invariant Feature Representationcited by 622
25 more
- 2021Domain Generalization with MixStylecited by 563
- 2015Causal inference using invariant prediction: identification and confidence intervalscited by 533
- 2017Men Also Like Shopping: Reducing Gender Bias Amplification using Corpus-level Constraintscited by 420
- 2019Domain Generalization via Model-Agnostic Learning of Semantic Featurescited by 405
- 2019Multi-Task Deep Neural Networks for Natural Language Understandingcited by 349
- 2020Learning to Generate Novel Domains for Domain Generalizationcited by 296
- 2020The Risks of Invariant Risk Minimizationcited by 262
- 2019Causality for Machine Learningcited by 242
- 2019Identifying and Reducing Gender Bias in Word-Level Language Modelscited by 214
- 2019Probing Neural Network Comprehension of Natural Language Argumentscited by 212
- 2018Gender Bias in Neural Natural Language Processingcited by 210
- 2020Invariant Risk Minimization Gamescited by 188
- 2018Knowledge Distillation by On-the-Fly Native Ensemblecited by 186
- 2018Learning Gender-Neutral Word Embeddingscited by 169
- 2018Domain Generalization via Conditional Invariant Representationcited by 146
- 2019Distributionally Robust Language Modelingcited by 142
- 2020An Empirical Study on Robustness to Spurious Correlations using Pre-trained Language Modelscited by 133
- 2021Evaluating the Robustness of Neural Language Models to Input Perturbationscited by 87
- 2018Theoretical Impediments to Machine Learning With Seven Sparks from the Causal Revolutioncited by 66
- 2020Empirical or Invariant Risk Minimization? A Sample Complexity Perspectivecited by 62
- 2020Learning Causal Semantic Representation for Out-of-Distribution Predictioncited by 60
- 2019Reducing Gender Bias in Word-Level Language Models with a Gender-Equalizing Loss Functioncited by 57
- 2019Adversarial Invariant Feature Learning with Accuracy Constraint for Domain Generalizationcited by 43
- 2021Out-of-distribution Prediction with Invariant Risk Minimization: The Limitation and An Effective Fixcited by 27
- 2020Domain Adversarial Fine-Tuning as an Effective Regularizercited by 8
Built on by
Citing papers per year: 2022: 5; 2023: 6; 2024: 2; 2025: 1; 2026: 1.
15 papers.
Sort:
By area:
- 2023Auditing large language models: a three-layered approachcited by 135
- 2022Datasheet for the Pilecited by 41
- 2023SoK: Memorization in General-Purpose Large Language Modelscited by 36
- 2022Towards efficient representation identification in supervised learningcited by 14
- 2022Domain Generalization -- A Causal Perspectivecited by 14
- 2022FL Games: A Federated Learning Framework for Distribution Shiftscited by 14
- 2023Fuse to Forget: Bias Reduction and Selective Memorization through Model Fusioncited by 13
- 2024PIDformer: Transformer Meets Control Theorycited by 10
- 2023Learning Optimal Features via Partial Invariancecited by 5
- 2023Debiasing Multimodal Models via Causal Information Minimizationcited by 4
- 2026Rethinking Data Curation in LLM Training: Online Reweighting Offers Better Generalization than Offline Methodscited by 3
- 2023Out-of-Distribution Generalization in Text Classification: Past, Present, and Futurecited by 1
3 more
- 2026Rethinking Data Curation in LLM Training: Online Reweighting Offers Better Generalization than Offline Methods19 Apr 2026
- 2025Reversal Invariance in Autoregressive Language Models1 Nov 2025
- 2024PIDformer: Transformer Meets Control Theory25 Feb 2024
- 2024Sequence graphs realizations and ambiguity in language models13 Feb 2024
- 2023Debiasing Multimodal Models via Causal Information Minimization28 Nov 2023
- 2023Fuse to Forget: Bias Reduction and Selective Memorization through Model Fusion13 Nov 2023
- 2023SoK: Memorization in General-Purpose Large Language Models24 Oct 2023
- 2023Out-of-Distribution Generalization in Text Classification: Past, Present, and Future23 May 2023
- 2023Auditing large language models: a three-layered approach16 Feb 2023
- 2023Learning Optimal Features via Partial Invariance28 Jan 2023
- 2022FL Games: A Federated Learning Framework for Distribution Shifts31 Oct 2022
- 2022Domain Generalization -- A Causal Perspective30 Sep 2022
3 more
- 2022FL Games: A federated learning framework for distribution shifts23 May 2022
- 2022Towards efficient representation identification in supervised learning10 Apr 2022
- 2022Datasheet for the Pile13 Jan 2022
- 2023Auditing large language models: a three-layered approachcited by 135
- 2022Datasheet for the Pilecited by 41
- 2023SoK: Memorization in General-Purpose Large Language Modelscited by 36
- 2022Towards efficient representation identification in supervised learningcited by 14
- 2022Domain Generalization -- A Causal Perspectivecited by 14
- 2022FL Games: A Federated Learning Framework for Distribution Shiftscited by 14
- 2023Fuse to Forget: Bias Reduction and Selective Memorization through Model Fusioncited by 13
- 2024PIDformer: Transformer Meets Control Theorycited by 10
- 2023Learning Optimal Features via Partial Invariancecited by 5
- 2023Debiasing Multimodal Models via Causal Information Minimizationcited by 4
- 2023Out-of-Distribution Generalization in Text Classification: Past, Present, and Futurecited by 1
- 2022FL Games: A federated learning framework for distribution shiftscited by 0
12 most cited of 14 All 14 (JSON)
- 2025Reversal Invariance in Autoregressive Language Models1 Nov 2025
- 2024PIDformer: Transformer Meets Control Theory25 Feb 2024
- 2024Sequence graphs realizations and ambiguity in language models13 Feb 2024
- 2023Debiasing Multimodal Models via Causal Information Minimization28 Nov 2023
- 2023Fuse to Forget: Bias Reduction and Selective Memorization through Model Fusion13 Nov 2023
- 2023SoK: Memorization in General-Purpose Large Language Models24 Oct 2023
- 2023Out-of-Distribution Generalization in Text Classification: Past, Present, and Future23 May 2023
- 2023Auditing large language models: a three-layered approach16 Feb 2023
- 2023Learning Optimal Features via Partial Invariance28 Jan 2023
- 2022FL Games: A Federated Learning Framework for Distribution Shifts31 Oct 2022
- 2022Domain Generalization -- A Causal Perspective30 Sep 2022
- 2022FL Games: A federated learning framework for distribution shifts23 May 2022
12 newest of 14 All 14 (JSON)