Variational Uncertainty Decomposition for In-Context Learning

I. Shavindra Jayasekera, Jacob Si, Filippo Valdettaro, Wenlong Chen, A. Aldo Faisal +1 more
9/2/2025
stat.MLcs.LG

No official code found. Best implementation: jacobyhsi/VUD (9 stars, MIT, last commit 2025-11-09).

Abstract

As large language models (LLMs) gain popularity in conducting prediction tasks in-context, understanding the sources of uncertainty in in-context learning becomes essential to ensuring reliability. The recent hypothesis of in-context learning performing predictive Bayesian inference opens the avenue for Bayesian uncertainty estimation, particularly for decomposing uncertainty into epistemic uncertainty due to lack of in-context data and aleatoric uncertainty inherent in the in-context prediction task. However, the decomposition idea remains under-explored due to the intractability of the latent parameter posterior from the underlying Bayesian model. In this work, we introduce a variational uncertainty decomposition framework for in-context learning without explicitly sampling from the latent parameter posterior, by optimising auxiliary queries as probes to obtain an upper bound to the aleatoric uncertainty of an LLM's in-context learning procedure, which also induces a lower bound to the epistemic uncertainty. Through experiments on synthetic and real-world tasks, we show quantitatively and qualitatively that the decomposed uncertainties obtained from our method exhibit desirable properties of epistemic and aleatoric uncertainty.

View on arXivView PDF

Code Implementations(1)

jacobyhsi/VUDCommunity66%
MIT

[NeurIPS'25] Variational Uncertainty Decomposition for In-Context Learning.

90Shell, PythonJun 14, 202511 months agoMIT

Similar Papers

Cite this paper

@article{jayasekera2025variational,
  title  = {Variational Uncertainty Decomposition for In-Context Learning},
  author = {I. Shavindra Jayasekera and Jacob Si and Filippo Valdettaro and Wenlong Chen and A. Aldo Faisal and Yingzhen Li},
  year   = {2025},
  eprint = {2509.02327},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2509.02327v3}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2509.02327.svg)](https://codeofpaper.com/paper/2509.02327)

Discussion