Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

Quantifying Aleatoric Uncertainty of In-Context Learning for Robust Measure of LLM Prediction Confidence

About

In-Context Learning (ICL) allows LLMs to adapt to new tasks from a few demonstrations, but its reliability remains a concern: predictions are highly sensitive to both prompt design and the model's ability to understand the context, obscuring whether failures arise from data properties or model limitations. Uncertainty decomposition-separating aleatoric from epistemic sources-is particularly crucial in this setting, yet existing methods, designed for standard generation tasks, fail to capture the unique dynamics of ICL. To address this, we introduce a concept of self-function vectors, built upon Bayesian views and the mechanistic interpretability of ICL. These vectors leverage internal model representations to model the latent concept learned during in-context prompting, thereby enabling a direct estimation of aleatoric uncertainty within a Bayesian framework and circumventing the reliance on brittle input or decoding manipulations. Given the lack of established benchmarks and suitable evaluation protocols, we also propose the first and rigorous evaluation protocol, in which data is manipulated in controlled ways so as to quantify aleatoric uncertainty precisely and separately from epistemic uncertainty. With this new evaluation framework, initially grounded in synthetic tasks for conceptual development and subsequently extended to real-world datasets, we show that our proposed methodology can measure uncertainty of LLM predictions made under ICL more reliably than existing alternative methods. Moreover, we show it can be used as a practical tool for trustworthy-related applications, such as hallucination detection. Our findings pave a new direction for connecting the quantitative view of uncertainty with the mechanistic understanding of model behavior.

Jinseok Chung, Minkyoung Song, Hyunji Jung, Namhoon Lee• 2026

Related benchmarks

TaskDatasetResultRank
Hallucination DetectionGSM8K
AUROC74.9
131
Hallucination DetectionGSM8K
PRR0.571
18
Hallucination DetectionHellaSwag
AUROC0.685
12
Hallucination DetectionWNMCQ1
AUROC89.93
12
Hallucination DetectionAG-News
AUROC0.845
12
Hallucination DetectionWNMCQ1
PRR86.6
10
Hallucination DetectionEmotion
PRR39.4
10
Hallucination DetectionAG-News
PRR77.9
10
Showing 8 of 8 rows

Other info

Follow for update