From predictions to confidence intervals: an empirical study of conformal prediction methods for in-context learning
Not on the map. Why?
Abstract (arXiv)
Transformers have become a standard architecture in machine learning, demonstrating strong in-context learning (ICL) abilities that allow them to learn from the prompt at inference time. However, uncertainty quantification for ICL remains an open challenge, particularly in noisy regression tasks. This paper investigates whether ICL can be leveraged for distribution-free uncertainty estimation, proposing a method based on conformal prediction to construct prediction intervals with guaranteed coverage. While traditional conformal methods are computationally expensive due to repeated model fitting, we exploit ICL to efficiently generate confidence intervals in a single forward pass. Our empirical analysis compares this approach against ridge regression-based conformal methods, showing that conformal prediction with in-context learning (CP with ICL) achieves robust and scalable uncertainty estimates. Additionally, we evaluate its performance under distribution shifts and establish scaling laws to guide model training. These findings bridge ICL and conformal prediction, providing a theoretically grounded and new framework for uncertainty quantification in transformer-based models.
Key facts. Cited by 2 papers in the map (data through 14 Oct 2026). Builds on 29 of its 43 references that are in the map. First posted on arXiv 22 Apr 2025.
Builds on
29 of 43 references.
References · 29
- 2017Attention Is All You Needcited by 60,361
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2020Scaling Laws for Neural Language Modelscited by 6,586
- 2017On Calibration of Modern Neural Networkscited by 4,960
- 2017Model-Agnostic Meta-Learning for Fast Adaptation of Deep Networkscited by 4,897
- 2016Simple and Scalable Predictive Uncertainty Estimation using Deep Ensemblescited by 3,926
- 2022Training Compute-Optimal Large Language Modelscited by 3,019
- 2018Reconciling modern machine learning practice and the bias-variance trade-offcited by 927
- 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
- 2019Deep Double Descent: Where Bigger Models and More Data Hurtcited by 672
17 more
- 2016Distribution-Free Predictive Inference For Regressioncited by 668
- 2021MetaICL: Learning to Learn In Contextcited by 454
- 2022Conformal prediction beyond exchangeabilitycited by 355
- 2023Generating with Confidence: Uncertainty Quantification for Black-box Large Language Modelscited by 293
- 2023Do Large Language Models Know What They Don't Know?cited by 243
- 2024A Survey on Uncertainty Quantification of Large Language Models: Taxonomy, Open Research Challenges, and Future Directionscited by 121
- 2023Bayesian Low-rank Adaptation for Large Language Modelscited by 115
- 2023Understanding In-Context Learning in Transformers and LLMs by Learning to Learn Discrete Functionscited by 63
- 2024Position: Bayesian Deep Learning is Needed in the Age of Large-Scale AIcited by 62
- 2024Is In-Context Learning in Large Language Models Bayesian? A Martingale Perspectivecited by 57
- 2024Uncertainty Quantification for In-Context Learning of Large Language Modelscited by 45
- 2021Conformal Bayesian Computationcited by 39
- 2020Learnable Uncertainty under Laplace Approximationscited by 29
- 2024(Implicit) Ensembles of Ensembles: Epistemic Uncertainty Collapse in Large Modelscited by 15
- 2020Bayesian Additive Regression Trees with Model Treescited by 11
- 2024The Epistemic Uncertainty Hole: an issue of Bayesian Neural Networkscited by 11
- 2017Discretized conformal prediction for efficient distribution-free inferencecited by 8
Built on by
Citing papers per year: 2025: 2.
2 papers.