mlsanityData to 14 Oct 2026

Context is Environment

arXiv 2309.09888 ↗First posted 18 Sep 2023cs.LG cs.AI stat.MLcited by 1

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

  1. 2017Attention Is All You Needcited by 60,361
  2. 2014Adam: A Method for Stochastic Optimizationcited by 37,240
  3. 2020Language Models are Few-Shot Learnerscited by 32,419
  4. 2023GPT-4 Technical Reportcited by 18,396
  5. 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 13,028
  6. 2017Model-Agnostic Meta-Learning for Fast Adaptation of Deep Networkscited by 4,897
  7. 2015Domain-Adversarial Training of Neural Networkscited by 3,044
  8. 2019Benchmarking Neural Network Robustness to Common Corruptions and Perturbationscited by 2,877
  9. 2019Invariant Risk Minimizationcited by 1,854
  10. 2020The Many Faces of Robustness: A Critical Analysis of Out-of-Distribution Generalizationcited by 1,850
  11. 2020WILDS: A Benchmark of in-the-Wild Distribution Shiftscited by 1,375
  12. 2019Distributionally Robust Neural Networks for Group Shifts: On the Importance of Regularization for Worst-Case Generalizationcited by 1,247
38 more
  1. 2016Deep CORAL: Correlation Alignment for Deep Domain Adaptationcited by 1,200
  2. 2020In Search of Lost Domain Generalizationcited by 1,054
  3. 2020Out-of-Distribution Generalization via Risk Extrapolation (REx)cited by 742
  4. 2022Transformers learn in-context by gradient descentcited by 732
  5. 2022What Can Transformers Learn In-Context? A Case Study of Simple Function Classescited by 715
  6. 2022What learning algorithm is in-context learning? Investigations with linear modelscited by 684
  7. 2013Domain Generalization via Invariant Feature Representationcited by 623
  8. 2015Causal inference using invariant prediction: identification and confidence intervalscited by 536
  9. 2019Variational Autoencoders and Nonlinear ICA: A Unifying Frameworkcited by 503
  10. 2021Towards Out-Of-Distribution Generalization: A Surveycited by 436
  11. 2020Improving robustness against common corruptions by covariate shift adaptationcited by 431
  12. 2018Conditional Neural Processescited by 426
  13. 2023DoReMi: Optimizing Data Mixtures Speeds Up Language Model Pretrainingcited by 399
  14. 2022Last Layer Re-Training is Sufficient for Robustness to Spurious Correlationscited by 381
  15. 2021Transformers Can Do Bayesian Inferencecited by 360
  16. 2018Neural Processescited by 311
  17. 2016Revisiting Batch Normalization For Practical Domain Adaptationcited by 288
  18. 2019Attentive Neural Processescited by 283
  19. 2021Gradient Matching for Domain Generalizationcited by 258
  20. 2020Domain Generalization using Causal Matchingcited by 225
  21. 2021Invariance Principle Meets Information Bottleneck for Out-of-Distribution Generalizationcited by 220
  22. 2020Invariant Risk Minimization Gamescited by 188
  23. 2021Fishr: Invariant Gradient Variances for Out-of-Distribution Generalizationcited by 186
  24. 2020Improve Unsupervised Domain Adaptation with Mixup Trainingcited by 185
  25. 2020Adaptive Risk Minimization: Learning to Adapt to Domain Shiftcited by 183
  26. 2017Domain Generalization by Marginal Transfer Learningcited by 180
  27. 2021Disentanglement via Mechanism Sparsity Regularization: A New Principle for Nonlinear ICAcited by 160
  28. 2018Domain Generalization via Conditional Invariant Representationcited by 146
  29. 2022On Feature Learning in the Presence of Spurious Correlationscited by 145
  30. 2021On Calibration and Out-of-domain Generalizationcited by 134
  31. 2020Learning explanations that are hard to varycited by 132
  32. 2020Invariant Rationalizationcited by 131
  33. 2022Transformer Neural Processes: Uncertainty-Aware Meta Learning Via Sequence Modelingcited by 127
  34. 2021Model-Based Domain Generalizationcited by 104
  35. 2022Wild-Time: A Benchmark of in-the-Wild Distribution Shift over Timecited by 90
  36. 2021OoD-Bench: Quantifying and Understanding Two Dimensions of Out-of-Distribution Generalizationcited by 86
  37. 2022Probable Domain Generalization via Quantile Risk Minimizationcited by 66
  38. 2021Causally motivated Shortcut Removal Using Auxiliary Labelscited by 55

50 most cited of 61 All 61 (JSON)

Built on by

Cited by year

Citing papers per year: 2023: 1.

1 paper.