Variational Uncertainty Decomposition for In-Context Learning

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Jayasekera, I. Shavindra, Si, Jacob, Valdettaro, Filippo, Chen, Wenlong, Faisal, A. Aldo, Li, Yingzhen
Format: Preprint
Published: 2025
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866917126730678272
author Jayasekera, I. Shavindra
Si, Jacob
Valdettaro, Filippo
Chen, Wenlong
Faisal, A. Aldo
Li, Yingzhen
author_facet Jayasekera, I. Shavindra
Si, Jacob
Valdettaro, Filippo
Chen, Wenlong
Faisal, A. Aldo
Li, Yingzhen
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2509_02327
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Variational Uncertainty Decomposition for In-Context Learning
Jayasekera, I. Shavindra
Si, Jacob
Valdettaro, Filippo
Chen, Wenlong
Faisal, A. Aldo
Li, Yingzhen
Machine Learning
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.
title Variational Uncertainty Decomposition for In-Context Learning
topic Machine Learning
url https://arxiv.org/abs/2509.02327