preprint 2026

UQ Lenses

Where Is Uncertainty Observed?

Where Is Uncertainty Observed? A Mechanistic Understanding of Uncertainty Quantification in LLMs

Xiaoyu Liang1, Virginia Ceccatelli1, Aliai Eusebi1, Tobias Braun1,2, Nils Loose1,3, Carlo Malagnino1, Lorenzo Cavallaro1,4

1University College London 2Technische Universität Darmstadt 3Universität zu Lübeck 4Mohamed bin Zayed University of Artificial Intelligence

01

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…

02

Lenses

Loading the Lenses section…

03

Survey

Loading the survey…

04

Evaluation

Loading the Evaluation section…

      05

      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…

      Model
      • 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.

      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.

      06

      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