Uncertainty as Feature Gaps: Epistemic Uncertainty Quantification of LLMs in Contextual Question-Answering
Not on the map. Why?
Abstract (arXiv)
Uncertainty Quantification (UQ) research has primarily focused on closed-book factual question answering (QA), while contextual QA remains unexplored, despite its importance in real-world applications. In this work, we focus on UQ for the contextual QA task and propose a theoretically grounded approach to quantify epistemic uncertainty. We begin by introducing a task-agnostic, token-level uncertainty measure defined as the cross-entropy between the predictive distribution of the given model and the unknown true distribution. By decomposing this measure, we isolate the epistemic component and approximate the true distribution by a perfectly prompted, idealized model. We then derive an upper bound for epistemic uncertainty and show that it can be interpreted as semantic feature gaps in the given model's hidden representations relative to the ideal model. We further apply this generic framework to the contextual QA task and hypothesize that three features approximate this gap: context-reliance (using the provided context rather than parametric knowledge), context comprehension (extracting relevant information from context), and honesty (avoiding intentional lies). Using a top-down interpretability approach, we extract these features by using only a small number of labeled samples and ensemble them to form a robust uncertainty score. Experiments on multiple QA benchmarks in both in-distribution and out-of-distribution settings show that our method substantially outperforms state-of-the-art unsupervised (sampling-free and sampling-based) and supervised UQ methods, achieving up to a 13-point PRR improvement while incurring a negligible inference overhead.
Key facts. Cited by 6 papers in the map (data through 7 Oct 2026). Builds on 34 of its 41 references that are in the map. First posted on arXiv 3 Oct 2025.
Builds on
34 of 41 references.
References · 34
- 2023Judging LLM-as-a-Judge with MT-Bench and Chatbot Arenacited by 8,393
- 2015Dropout as a Bayesian Approximation: Representing Model Uncertainty in Deep Learningcited by 4,416
- 2018HotpotQA: A Dataset for Diverse, Explainable Multi-hop Question Answeringcited by 3,686
- 2024RULER: What's the Real Context Size of Your Long-Context Language Models?cited by 1,270
- 2023Representation Engineering: A Top-Down Approach to AI Transparencycited by 1,239
- 2019Aleatoric and Epistemic Uncertainty in Machine Learning: An Introduction to Concepts and Methodscited by 903
- 2023Semantic Uncertainty: Linguistic Invariances for Uncertainty Estimation in Natural Language Generationcited by 795
- 2023Just Ask for Calibration: Strategies for Eliciting Calibrated Confidence Scores from Language Models Fine-Tuned with Human Feedbackcited by 788
- 2023The Linear Representation Hypothesis and the Geometry of Large Language Modelscited by 679
- 2022What learning algorithm is in-context learning? Investigations with linear modelscited by 671
- 2023The Internal State of an LLM Knows When It's Lyingcited by 644
- 2017The NarrativeQA Reading Comprehension Challengecited by 590
22 more
- 2021A Dataset of Information-Seeking Questions and Answers Anchored in Research Paperscited by 475
- 2021Entity-Based Knowledge Conflicts in Question Answeringcited by 349
- 2024INSIDE: LLMs' Internal States Retain the Power of Hallucination Detectioncited by 317
- 2023Emergent Linear Representations in World Models of Self-Supervised Sequence Modelscited by 313
- 2023Generating with Confidence: Uncertainty Quantification for Black-box Large Language Modelscited by 286
- 2024MiniCheck: Efficient Fact-Checking of LLMs on Grounding Documentscited by 251
- 2024Kernel Language Entropy: Fine-grained Uncertainty Quantification for LLMs from Semantic Similaritiescited by 156
- 2023Shifting Attention to Relevance: Towards the Predictive Uncertainty Quantification of Free-Form Large Language Modelscited by 147
- 2024Lookback Lens: Detecting and Mitigating Contextual Hallucinations in Large Language Models Using Only Attention Mapscited by 140
- 2024To Believe or Not to Believe Your LLMcited by 120
- 2024Benchmarking Uncertainty Quantification Methods for Large Language Models with LM-Polygraphcited by 105
- 2024MARS: Meaning-Aware Response Scoring for Uncertainty Estimation in Generative LLMscited by 45
- 2025Learning without training: The implicit dynamics of in-context learningcited by 41
- 2024From Risk to Uncertainty: Generating Predictive Uncertainty Measures via Bayesian Estimationcited by 27
- 2024Do Not Design, Learn: A Trainable Scoring Function for Uncertainty Estimation in Generative LLMscited by 23
- 2024Rethinking Uncertainty Estimation in LLMs: A Principled Single-Sequence Measurecited by 18
- 2025Reconsidering LLM Uncertainty Estimation Methods in the Wildcited by 17
- 2024On Information-Theoretic Measures of Predictive Uncertaintycited by 16
- 2025Why Uncertainty Estimation Methods Fall Short in RAG: An Axiomatic Analysiscited by 13
- 2025Uncertainty Quantification in Retrieval Augmented Question Answeringcited by 8
- 2025Faithfulness-Aware Uncertainty Quantification for Fact-Checking the Output of Retrieval Augmented Generationcited by 5
- 2025TruthTorchLM: A Comprehensive Library for Predicting Truthfulness in LLM Outputscited by 4
Built on by
Citing papers per year: 2025: 1; 2026: 5.
6 papers.
- 2025Uncertainty Quantification for Hallucination Detection in Large Language Models: Foundations, Methodology, and Future Directionscited by 10
- 2026Position: agentic AI orchestration should be Bayes-consistentcited by 3
- 2026Towards Generation-Efficient Uncertainty Estimation in Large Language Modelscited by 2
- 2026Balancing Classification and Calibration Performance in Decision-Making LLMs via Calibration Aware Reinforcement Learningcited by 1
- 2026Bayesian Sparse Low-Rank Adaptation for Large Language Model Uncertainty Estimationcited by 1
- 2026Know Thy Reasoner: Not All Language Models Explore Alikecited by 0
- 2026Bayesian Sparse Low-Rank Adaptation for Large Language Model Uncertainty Estimation2 Jul 2026
- 2026Towards Generation-Efficient Uncertainty Estimation in Large Language Models7 May 2026
- 2026Position: agentic AI orchestration should be Bayes-consistent1 May 2026
- 2026Know Thy Reasoner: Not All Language Models Explore Alike12 Apr 2026
- 2026Balancing Classification and Calibration Performance in Decision-Making LLMs via Calibration Aware Reinforcement Learning19 Jan 2026
- 2025Uncertainty Quantification for Hallucination Detection in Large Language Models: Foundations, Methodology, and Future Directions14 Oct 2025