Context is Environment
Not on the map. Why?
Abstract (arXiv)
Two lines of work are taking the central stage in AI research. On the one hand, the community is making increasing efforts to build models that discard spurious correlations and generalize better in novel test environments. Unfortunately, the bitter lesson so far is that no proposal convincingly outperforms a simple empirical risk minimization baseline. On the other hand, large language models (LLMs) have erupted as algorithms able to learn in-context, generalizing on-the-fly to eclectic contextual circumstances that users enforce by means of prompting. In this paper, we argue that context is environment, and posit that in-context learning holds the key to better domain generalization. Via extensive theory and experiments, we show that paying attention to contextunicodex2013unicodex2013unlabeled examples as they arriveunicodex2013unicodex2013allows our proposed In-Context Risk Minimization (ICRM) algorithm to zoom-in on the test environment risk minimizer, leading to significant out-of-distribution performance improvements. From all of this, two messages are worth taking home. Researchers in domain generalization should consider environment as context, and harness the adaptive power of in-context learning. Researchers in LLMs should consider context as environment, to better structure data towards generalization.
Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Builds on 61 of its 87 references that are in the map. First posted on arXiv 18 Sep 2023.
Builds on
61 of 87 references.
References · 61
- 2017Attention Is All You Needcited by 60,361
- 2014Adam: A Method for Stochastic Optimizationcited by 37,240
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2023GPT-4 Technical Reportcited by 18,396
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 13,028
- 2017Model-Agnostic Meta-Learning for Fast Adaptation of Deep Networkscited by 4,897
- 2015Domain-Adversarial Training of Neural Networkscited by 3,044
- 2019Benchmarking Neural Network Robustness to Common Corruptions and Perturbationscited by 2,877
- 2019Invariant Risk Minimizationcited by 1,854
- 2020The Many Faces of Robustness: A Critical Analysis of Out-of-Distribution Generalizationcited by 1,850
- 2020WILDS: A Benchmark of in-the-Wild Distribution Shiftscited by 1,375
- 2019Distributionally Robust Neural Networks for Group Shifts: On the Importance of Regularization for Worst-Case Generalizationcited by 1,247
38 more
- 2016Deep CORAL: Correlation Alignment for Deep Domain Adaptationcited by 1,200
- 2020In Search of Lost Domain Generalizationcited by 1,054
- 2020Out-of-Distribution Generalization via Risk Extrapolation (REx)cited by 742
- 2022Transformers learn in-context by gradient descentcited by 732
- 2022What Can Transformers Learn In-Context? A Case Study of Simple Function Classescited by 715
- 2022What learning algorithm is in-context learning? Investigations with linear modelscited by 684
- 2013Domain Generalization via Invariant Feature Representationcited by 623
- 2015Causal inference using invariant prediction: identification and confidence intervalscited by 536
- 2019Variational Autoencoders and Nonlinear ICA: A Unifying Frameworkcited by 503
- 2021Towards Out-Of-Distribution Generalization: A Surveycited by 436
- 2020Improving robustness against common corruptions by covariate shift adaptationcited by 431
- 2018Conditional Neural Processescited by 426
- 2023DoReMi: Optimizing Data Mixtures Speeds Up Language Model Pretrainingcited by 399
- 2022Last Layer Re-Training is Sufficient for Robustness to Spurious Correlationscited by 381
- 2021Transformers Can Do Bayesian Inferencecited by 360
- 2018Neural Processescited by 311
- 2016Revisiting Batch Normalization For Practical Domain Adaptationcited by 288
- 2019Attentive Neural Processescited by 283
- 2021Gradient Matching for Domain Generalizationcited by 258
- 2020Domain Generalization using Causal Matchingcited by 225
- 2021Invariance Principle Meets Information Bottleneck for Out-of-Distribution Generalizationcited by 220
- 2020Invariant Risk Minimization Gamescited by 188
- 2021Fishr: Invariant Gradient Variances for Out-of-Distribution Generalizationcited by 186
- 2020Improve Unsupervised Domain Adaptation with Mixup Trainingcited by 185
- 2020Adaptive Risk Minimization: Learning to Adapt to Domain Shiftcited by 183
- 2017Domain Generalization by Marginal Transfer Learningcited by 180
- 2021Disentanglement via Mechanism Sparsity Regularization: A New Principle for Nonlinear ICAcited by 160
- 2018Domain Generalization via Conditional Invariant Representationcited by 146
- 2022On Feature Learning in the Presence of Spurious Correlationscited by 145
- 2021On Calibration and Out-of-domain Generalizationcited by 134
- 2020Learning explanations that are hard to varycited by 132
- 2020Invariant Rationalizationcited by 131
- 2022Transformer Neural Processes: Uncertainty-Aware Meta Learning Via Sequence Modelingcited by 127
- 2021Model-Based Domain Generalizationcited by 104
- 2022Wild-Time: A Benchmark of in-the-Wild Distribution Shift over Timecited by 90
- 2021OoD-Bench: Quantifying and Understanding Two Dimensions of Out-of-Distribution Generalizationcited by 86
- 2022Probable Domain Generalization via Quantile Risk Minimizationcited by 66
- 2021Causally motivated Shortcut Removal Using Auxiliary Labelscited by 55
50 most cited of 61 All 61 (JSON)
Built on by
Citing papers per year: 2023: 1.
1 paper.