[Paper Review] Between the Layers Lies the Truth: Uncertainty Estimation in LLMs Using Intra-Layer Local Information Scores
The paper proposes a compact, per-instance uncertainty estimator for LLMs that uses cross-layer KL divergence signatures across internal representations, trained with a lightweight model to predict correctness in a single forward pass. It achieves competitive in-distribution performance and superior cross-task transfer and quantization robustness compared with probing baselines.
Large language models (LLMs) are often confidently wrong, making reliable uncertainty estimation (UE) essential. Output-based heuristics are cheap but brittle, while probing internal representations is effective yet high-dimensional and hard to transfer. We propose a compact, per-instance UE method that scores cross-layer agreement patterns in internal representations using a single forward pass. Across three models, our method matches probing in-distribution, with mean diagonal differences of at most $-1.8$ AUPRC percentage points and $+4.9$ Brier score points. Under cross-dataset transfer, it consistently outperforms probing, achieving off-diagonal gains up to $+2.86$ AUPRC and $+21.02$ Brier points. Under 4-bit weight-only quantization, it remains robust, improving over probing by $+1.94$ AUPRC points and $+5.33$ Brier points on average. Beyond performance, examining specific layer--layer interactions reveals differences in how disparate models encode uncertainty. Altogether, our UE method offers a lightweight, compact means to capture transferable uncertainty in LLMs.
Motivation & Objective
- Motivate reliable uncertainty estimation (UE) for LLMs to reduce overconfident, incorrect outputs.
- Introduce a compact, per-instance UE method based on cross-layer agreement patterns in internal representations.
- Provide an interpretable, information-theoretic signature that enables transfer across tasks and datasets.
- Evaluate robustness under distribution shift and 4-bit weight quantization across multiple models and tasks.
Proposed method
- Transform post-MLP activations into layer-wise probability distributions via temperature-scaled softmax.
- Construct directed KL divergence signature maps S^(t) with size L x L across layers for task-relevant tokens.
- Optionally apply a contrast transformation to obtain S'^(t) and flatten to feature vector z^(t).
- Train a lightweight LightGBM classifier on z^(t) to predict correctness and output per-instance uncertainty u(x) = 1 - P(correct|z^(t)).
- Evaluate using AUPRC for threshold-free error detection and Brier score for probabilistic quality, without per-task calibration.
Experimental results
Research questions
- RQ1Can cross-layer divergence signatures capture transferable signals about correctness in LLMs at inference time?
- RQ2How does the proposed signature-based UE compare to probing baselines in in-distribution and cross-task transfer settings?
- RQ3Is the method robust to deployment constraints such as 4-bit weight-only quantization?
- RQ4Do cross-layer interactions reveal model-specific patterns in encoding uncertainty across layers?
Key findings
- In-distribution performance: the signature method matches probing in AUPRC and yields better Brier scores, indicating better probabilistic calibration.
- Cross-task transfer: off-diagonal gains show improved transfer over probing in AUPRC (up to 2.86 pp) and Brier (up to 21.02 points) across models.
- Quantization robustness: under 4-bit quantization, the signature method maintains AUPRC and improves Brier scores over probing on average.
- Model analysis reveals that layer–layer interactions encode distinct uncertainty patterns across different LLMs, offering interpretability of uncertainty signals.
- Representation efficiency: the L x L signature maps provide a compact representation with far fewer parameters than competing methods, maintaining competitive performance.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.