Semantic Density: Uncertainty Quantification for Large Language Models through Confidence Measurement in Semantic Space
Abstract
With the widespread application of Large Language Models (LLMs) to various domains, concerns regarding the trustworthiness of LLMs in safety-critical scenarios have been raised, due to their unpredictable tendency to hallucinate and generate misinformation. Existing LLMs do not have an inherent functionality to provide the users with an uncertainty/confidence metric for each response it generates, making it difficult to evaluate trustworthiness. Although several studies aim to develop uncertainty quantification methods for LLMs, they have fundamental limitations, such as being restricted to classification tasks, requiring additional training and data, considering only lexical instead of semantic information, and being prompt-wise but not response-wise. A new framework is proposed in this paper to address these issues. Semantic density extracts uncertainty/confidence information for each response from a probability distribution perspective in semantic space. It has no restriction on task types and is "off-the-shelf" for new models and tasks. Experiments on seven state-of-the-art LLMs, including the latest Llama 3 and Mixtral-8x22B models, on four free-form question-answering benchmarks demonstrate the superior performance and robustness of semantic density compared to prior approaches.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
23 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- SelfCheckGPT: Zero-Resource Black-Box Hallucination Detection for Generative Large Language Models cites The Internal State of an LLM Knows When It's Lying
- SelfCheckGPT: Zero-Resource Black-Box Hallucination Detection for Generative Large Language Models cites Uncertainty Estimation in Autoregressive Structured Prediction
- Hallucination Detection in LLMs with Topological Divergence on Attention Graphs cites SelfCheckGPT: Zero-Resource Black-Box Hallucination Detection for Generative Large Language Models
- Hallucination Detection in LLMs with Topological Divergence on Attention Graphs cites The Internal State of an LLM Knows When It's Lying
- Hallucination Detection in LLMs with Topological Divergence on Attention Graphs cites Kernel Language Entropy: Fine-grained Uncertainty Quantification for LLMs from Semantic Similarities
- Hallucination Detection in LLMs with Topological Divergence on Attention Graphs cites Uncertainty Estimation in Autoregressive Structured Prediction
- CoCoA: A Minimum Bayes Risk Framework Bridging Confidence and Consistency for Uncertainty Quantification in LLMs cites Deberta: decoding-Enhanced Bert with Disentangled Attention
- CoCoA: A Minimum Bayes Risk Framework Bridging Confidence and Consistency for Uncertainty Quantification in LLMs cites Uncertainty Estimation in Autoregressive Structured Prediction
- Kernel Language Entropy: Fine-grained Uncertainty Quantification for LLMs from Semantic Similarities cites SelfCheckGPT: Zero-Resource Black-Box Hallucination Detection for Generative Large Language Models
- Kernel Language Entropy: Fine-grained Uncertainty Quantification for LLMs from Semantic Similarities cites Deberta: decoding-Enhanced Bert with Disentangled Attention
- Kernel Language Entropy: Fine-grained Uncertainty Quantification for LLMs from Semantic Similarities cites Uncertainty Estimation in Autoregressive Structured Prediction
Cited by top-tier papers23
- CoCoA: A Minimum Bayes Risk Framework Bridging Confidence and Consistency for Uncertainty Quantification in LLMsRoman Vashurin, Maiya Goloburda, Albina Ilina, Aleksandr Rubashevskii et al.NeurIPS 2025 · 33 citations
- Evolution Strategies at Scale: LLM Fine-Tuning Beyond Reinforcement LearningXin Qiu, Yulu Gan, Conor Hayes, Qiyao Liang et al.ICML 2026 · 24 citations
- Hallucination Detection in LLMs with Topological Divergence on Attention GraphsAlexandra Bazarova, Andrei Volodichev, Aleksandr Yugay, Andrey Shulga et al.ACL 2026 · 14 citations
- Utility-Diversity Aware Online Batch Selection for LLM Supervised Fine-tuningHeming Zou, Yixiu Mao, Yun Qu, Qi Wang et al.ICML 2026 · 13 citations
- Thought calibration: Efficient and confident test-time scalingMenghua Wu, Cai Zhou, Stephen Bates, Tommi S. JaakkolaEMNLP 2025 · 12 citations
Builds on11
- Deberta: decoding-Enhanced Bert with Disentangled AttentionPengcheng He, Xiaodong Liu, Jianfeng Gao, Weizhu ChenICLR 2021 · 3,729 citations
- Uncertainty Estimation in Autoregressive Structured PredictionAndrey Malinin, Mark J. F. GalesICLR 2021 · 439 citations
- SelfCheckGPT: Zero-Resource Black-Box Hallucination Detection for Generative Large Language ModelsPotsawee Manakul, Adian Liusie, Mark J. F. GalesEMNLP 2023 · 331 citations
- Kernel Language Entropy: Fine-grained Uncertainty Quantification for LLMs from Semantic SimilaritiesAlexander Nikitin, Jannik Kossen, Yarin Gal, Pekka MarttinenNeurIPS 2024 · 197 citations
- The Internal State of an LLM Knows When It's LyingAmos Azaria, Tom M. MitchellEMNLP Findings 2023 · 177 citations
Related papers
- Semantic Volume: Quantifying and Detecting Both External and Internal Uncertainty in LLMsXiaomin Li, Zhou Yu, Ziji Zhang, Yingying Zhuang et al.AAAI 2026 · 11 citations
- Probabilities Are All You Need: A Probability-Only Approach to Uncertainty Estimation in Large Language ModelsManh Nguyen, Sunil Gupta, Hung LeAAAI 2026 · 4 citations
- Prompting the Unknown: Understanding Response Uncertainty in Large Language ModelsZe Yu Zhang, Arun Verma, Finale Doshi-Velez, Bryan Kian Hsiang LowACL Findings 2026 · 3 citations
- Beyond Semantic Entropy: Boosting LLM Uncertainty Quantification with Pairwise Semantic SimilarityDang Nguyen, Ali Payani, Baharan MirzasoleimanACL Findings 2025 · 6 citations
- Improving Uncertainty Estimation through Semantically Diverse Language GenerationLukas Aichberger, Kajetan Schweighofer, Mykyta Ielanskyi, Sepp HochreiterICLR 2025
