Towards Better Understanding of In-Context Learning Ability from In-Context Uncertainty Quantification
Not on the map. Why?
Abstract (arXiv)
Predicting simple function classes has been widely used as a testbed for developing theory and understanding of the trained Transformer's in-context learning (ICL) ability. In this paper, we revisit the training of Transformers on linear regression tasks, and different from all the existing literature, we consider a bi-objective prediction task of predicting both the conditional expectation mathbbE[Y|X] and the conditional variance Var(Y|X). This additional uncertainty quantification objective provides a handle to (i) better design out-of-distribution experiments to distinguish ICL from in-weight learning (IWL) and (ii) make a better separation between the algorithms with and without using the prior information of the training distribution. Theoretically, we show that the trained Transformer reaches near Bayes-optimum, suggesting the usage of the information of the training distribution. Our method can be extended to other cases. Specifically, with the Transformer's context window S, we prove a generalization bound of tildeO(√minS, T/(n T)) on n tasks with sequences of length T, providing sharper analysis compared to previous results of tildeO(√1/n). Empirically, we illustrate that while the trained Transformer behaves as the Bayes-optimal solution as a natural consequence of supervised training in distribution, it does not necessarily perform a Bayesian inference when facing task shifts, in contrast to the textitequivalence between these two proposed in many existing literature. We also demonstrate the trained Transformer's ICL ability over covariates shift and prompt-length shift and interpret them as a generalization over a meta distribution.
Key facts. Cited by 2 papers in the map (data through 7 Oct 2026). Builds on 39 of its 53 references that are in the map. First posted on arXiv 24 May 2024.
Builds on
39 of 53 references.
References · 39
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2019Transformer-XL: Attentive Language Models Beyond a Fixed-Length Contextcited by 1,830
- 2021Decision Transformer: Reinforcement Learning via Sequence Modelingcited by 1,528
- 2022In-context Learning and Induction Headscited by 930
- 2021An Explanation of In-context Learning as Implicit Bayesian Inferencecited by 915
- 2020A Review of Uncertainty Quantification in Deep Learning: Techniques, Applications and Challengescited by 813
- 2023Semantic Uncertainty: Linguistic Invariances for Uncertainty Estimation in Natural Language Generationcited by 795
- 2023SelfCheckGPT: Zero-Resource Black-Box Hallucination Detection for Generative Large Language Modelscited by 787
- 2022Transformers learn in-context by gradient descentcited by 714
- 2022What Can Transformers Learn In-Context? A Case Study of Simple Function Classescited by 700
- 2021A Survey of Uncertainty in Deep Neural Networkscited by 675
- 2022What learning algorithm is in-context learning? Investigations with linear modelscited by 671
27 more
- 2023Larger language models do in-context learning differentlycited by 386
- 2023Trained Transformers Learn Linear Models In-Contextcited by 331
- 2024INSIDE: LLMs' Internal States Retain the Power of Hallucination Detectioncited by 317
- 2023Transformers as Statisticians: Provable In-Context Learning with In-Context Algorithm Selectioncited by 291
- 2023Generating with Confidence: Uncertainty Quantification for Black-box Large Language Modelscited by 286
- 2023Transformers learn to implement preconditioned gradient descent for in-context learningcited by 274
- 2023Transformers as Algorithms: Generalization and Stability in In-context Learningcited by 220
- 2022Exploring Length Generalization in Large Language Modelscited by 204
- 2020Benign overfitting in ridge regressioncited by 152
- 2023Pretraining task diversity and the emergence of non-Bayesian in-context learning for regressioncited by 138
- 2022Quantifying Aleatoric and Epistemic Uncertainty in Machine Learning: Are Conditional Entropy and Mutual Information Appropriate Measures?cited by 124
- 2023The mechanistic basis of data dependence and abrupt learning in an in-context classification taskcited by 115
- 2023What and How does In-Context Learning Learn? Bayesian Model Averaging, Parameterization, and Generalizationcited by 112
- 2023How Many Pretraining Tasks Are Needed for In-Context Learning of Linear Regression?cited by 93
- 2023Transformers as Decision Makers: Provable In-Context Reinforcement Learning via Supervised Pretrainingcited by 82
- 2023In-Context Learning through the Bayesian Prismcited by 78
- 2023How Do Transformers Learn In-Context Beyond Simple Functions? A Case Study on Learning with Representationscited by 72
- 2023The Transient Nature of Emergent In-Context Learning in Transformerscited by 72
- 2023Large Language Models for Supply Chain Optimizationcited by 61
- 2023The Curious Case of Hallucinatory (Un)answerability: Finding Truths in the Hidden States of Over-Confident Large Language Modelscited by 54
- 2023Credal Bayesian Deep Learningcited by 45
- 2024Distinguishing the Knowable from the Unknowable with Language Modelscited by 45
- 2023Prompting AI Art: An Investigation into the Creative Skill of Prompt Engineeringcited by 40
- 2023Is the Volume of a Credal Set a Good Measure for Epistemic Uncertainty?cited by 40
- 2024An Information-Theoretic Analysis of In-Context Learningcited by 39
- 2024Credal Learning Theorycited by 30
- 2022Relational Reasoning via Set Transformers: Provable Efficiency and Applications to MARLcited by 12
Built on by
Citing papers per year: 2024: 1; 2025: 1.
2 papers.