Bayes' Power for Explaining In-Context Learning Generalizations
Not on the map. Why?
Abstract (arXiv)
Traditionally, neural network training has been primarily viewed as an approximation of maximum likelihood estimation (MLE). This interpretation originated in a time when training for multiple epochs on small datasets was common and performance was data bound; but it falls short in the era of large-scale single-epoch trainings ushered in by large self-supervised setups, like language models. In this new setup, performance is compute-bound, but data is readily available. As models became more powerful, in-context learning (ICL), i.e., learning in a single forward-pass based on the context, emerged as one of the dominant paradigms. In this paper, we argue that a more useful interpretation of neural network behavior in this era is as an approximation of the true posterior, as defined by the data-generating process. We demonstrate this interpretations' power for ICL and its usefulness to predict generalizations to previously unseen tasks. We show how models become robust in-context learners by effectively composing knowledge from their training data. We illustrate this with experiments that reveal surprising generalizations, all explicable through the exact posterior. Finally, we show the inherent constraints of the generalization capabilities of posteriors and the limitations of neural networks in approximating these posteriors.
Key facts. Cited by 6 papers in the map (data through 7 Oct 2026). Builds on 13 of its 17 references that are in the map. First posted on arXiv 2 Oct 2024.
Builds on
13 of 17 references.
References · 13
- 2017Attention Is All You Needcited by 59,932
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2023DINOv2: Learning Robust Visual Features without Supervisioncited by 7,764
- 2021An Explanation of In-context Learning as Implicit Bayesian Inferencecited by 915
- 2022TabPFN: A Transformer That Solves Small Tabular Classification Problems in a Secondcited by 643
- 2021Transformers Can Do Bayesian Inferencecited by 338
- 2021Thinking Like Transformerscited by 182
- 2024Transformers need glasses! Information over-squashing in language taskscited by 87
- 2023PFNs4BO: In-Context Learning for Bayesian Optimizationcited by 70
- 2023Pretraining Data Mixtures Enable Narrow Model Selection Capabilities in Transformer Modelscited by 45
- 2020Understanding Variational Inference in Function-Spacecited by 40
- 2023Efficient Bayesian Learning Curve Extrapolation using Prior-Data Fitted Networkscited by 37
1 more
Built on by
Citing papers per year: 2025: 5; 2026: 1.
6 papers.
- 2025Position: The Future of Bayesian Prediction Is Prior-Fittedcited by 19
- 2025Solving Empirical Bayes via Transformerscited by 7
- 2025In-Context Learning Enhanced Credibility Transformercited by 2
- 2025Exploring Imbalanced Annotations for Effective In-Context Learningcited by 0
- 2025LLMs are Bayesian, In Expectation, Not in Realizationcited by 0
- 2026Conformal Prediction and Conditional Coverage for Tabular Foundation Modelscited by 0
- 2026Conformal Prediction and Conditional Coverage for Tabular Foundation Models28 Sep 2026
- 2025In-Context Learning Enhanced Credibility Transformer9 Sep 2025
- 2025LLMs are Bayesian, In Expectation, Not in Realization15 Jul 2025
- 2025Position: The Future of Bayesian Prediction Is Prior-Fitted29 May 2025
- 2025Solving Empirical Bayes via Transformers14 Feb 2025
- 2025Exploring Imbalanced Annotations for Effective In-Context Learning6 Feb 2025