Overview
Knowing when a large language model's (LLM's) response can be trusted is critical for its safe use. Uncertainty quantification (UQ) can help LLMs recognize if their responses may be unreliable. Existing taxonomies organize UQ methods by uncertainty source or estimation mechanism. They leave unresolved the question of where uncertainty is observed in the model's computation. The answer matters because the observation point determines whether an estimator has access to enough information to recover a given target, and how well it can recover it.
Drawing on mechanistic interpretability, we define four mechanistic observation lenses: the structural lens observes component updates, the representational lens observes hidden states, the distributional lens observes token probabilities, and the semantical lens observes distributions over meanings. We relate these lenses through the residual stream and order them by the information they carry, which gives a principle for selecting UQ methods for different targets. We survey existing methods through the four lenses. Furthermore, we distinguish evaluation targets, criteria, and metrics to clarify different UQ evaluation protocols. Finally, we identify open problems and research directions to connect uncertainty estimation to the internal computation and downstream use of LLMs.
Four lenses applied to queries
Loading the example…
Lenses
Loading the Lenses section…
Survey
Loading the survey…
Evaluation
Loading the Evaluation section…
Demos
Metric playground
Loading the metric playground…
DecBase, estimators and confidence
The decodability baseline (DecBase) is a supervised probe that describes the correctness information usable by this probe family: an ℓ2-regularized logistic regression followed by a one-hidden-layer MLP (logistic regression only for MMLU). Each lens is probed on nested feature sets, Fsem ⊂ Fdis ⊂ Frep ⊂ Fstr, so the gain of each lens over the next outer lens is the contribution of the new features.
The confidence score is the maximum softmax probability (MSP) of the last token. Raising the MSP cutoff removes less confident questions, leaving fewer errors and harder cases.
Loading the proof-of-concept data…
- On open-ended QA (TriviaQA, PopQA), the ordering of the lenses is preserved at every confidence level, and the gaps are wider.
- On MMLU, the four lines cross. The collapsed output space makes distributional signal the same as the semantical one.
- The lower panel shows the gunemb gap Δunemb. The representational lens helps most on confident errors.
Setup: N = 3,000 questions per dataset, evaluated on the test split; probes averaged over 5 seeds. Grey shading marks cutoffs with 50 or fewer incorrect answers. Incorrect is the positive class.
Arrow keys move the cutoff by one step; Home and End jump to the lowest and highest cutoff.
Cite
@article{liang2026uncertainty,
title = {Where Is Uncertainty Observed? A Mechanistic Understanding
of Uncertainty Quantification in {LLMs}},
author = {Liang, Xiaoyu and Ceccatelli, Virginia and Eusebi, Aliai and
Braun, Tobias and Loose, Nils and Malagnino, Carlo and
Cavallaro, Lorenzo},
journal = {arXiv preprint arXiv:2611.15735},
year = {2026}
}
References
- Chao Chen, Kai Liu, Ze Chen, Yi Gu, Yue Wu, Mingyuan Tao, Zhihang Fu, and Jieping Ye. INSIDE: LLMs' Internal States Retain the Power of Hallucination Detection. In ICLR, 2024.
- nostalgebraist. Interpreting GPT: The Logit Lens. LessWrong, 2020.
- Qwen Team: An Yang, Baosong Yang, Beichen Zhang, et al. Qwen2.5 Technical Report. arXiv:2412.15115, 2025.