Between the Layers Lies the Truth: Uncertainty Estimation in LLMs Using Intra-Layer Local Information Scores
Organizations: Faculty of Data and Decision Sciences, Technion — Israel Institute of Technology, Haifa, Israel · Faculty of Computer Science, Technion — Israel Institute of Technology, Haifa, Israel · Faculty of Biomedical Engineering, Technion — Israel Institute of Technology, Haifa, Israel
Abstract
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 AUPRC percentage points and Brier score points. Under cross-dataset transfer, it consistently outperforms probing, achieving off-diagonal gains up to AUPRC and Brier points. Under 4-bit weight-only quantization, it remains robust, improving over probing by AUPRC points and 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.
Figures & tables
| Model | Metric | Within-dataset (Diagonal, pp) | Across-dataset (Off-diagonal, pp) |
| Llama-3.1-8B | AUPRC | ||
| Brier | |||
| Qwen3-14B | AUPRC | ||
| Brier | |||
| Mistral-7B-v0.3 | AUPRC | ||
| Brier |
| Metric | Method | Math | MMLU | Movies | WinoBias | WinoGrande | Mean |
| AUPRC ( ) | Signature | 0.9385 | 0.7303 | 0.9599 | 0.9151 | 0.5552 | 0.8198 |
| Probing | 0.9033 | 0.6594 | 0.9733 | 0.9171 | 0.5486 | 0.8004 | |
| Brier score ( ) | Signature | 0.2445 | 0.4061 | 0.1837 | 0.3755 | 0.6406 | 0.3701 |
| Probing | 0.0438 | 0.1743 | 0.4542 | 0.3088 | 0.6029 | 0.3168 |
| Model | Ours | Probing | ACT-ViT | LOS-NET |
| HeRo BERT | ||||
| GPT-OSS 20B | ||||
| Llama 3.1 8B | ||||
| Phi-4 Mini | ||||
| Mistral 7B | ||||
| Qwen3 14B |
Appendix figures & tables5 assets
Supplementary material from the paper’s appendix.
Appendix
| Model | Dataset | ||
| Llama-3.1-8B | IMDB | 0.8752 | 0.8719 |
| TriviaQA | 0.4912 | 0.4958 | |
| Mistral-7B-Instruct-v0.3 | HotpotQA | 0.7471 | 0.7461 |
| TriviaQA | 0.4604 | 0.4578 | |
| Qwen3-14B | HotpotQA | 0.8135 | 0.8131 |
| IMDB | 0.4614 | 0.4906 |
| Train | Method | HotpotQA | Movies |
| HotpotQA | Signatures | 72.79 | 61.38 |
| LOS-NET | 58.96 | 58.98 | |
| Movies | Signatures | 53.76 | 66.56 |
| LOS-NET | 58.96 | 58.98 | |
| IMDB | Signatures | 59.21 | 51.72 |
| LOS-NET | 58.96 | 58.98 |
| Train | Method | HotpotQA | TriviaQA |
| HotpotQA | Signatures | 72.79 | 58.42 |
| ACT-ViT | 54.34 | 87.91 | |
| TriviaQA | Signatures | 63.83 | 55.01 |
| ACT-ViT | 67.57 | 82.66 | |
| IMDB | Signatures | 59.21 | 71.19 |
| ACT-ViT | 67.16 | 62.01 |
Uncertainty Quantification
Uncertainty quantification estimates how reliable predictions and scientific inferences are, and how uncertainty propagates into decisions.
See all 647 papers