ACL Findings2025
Beyond Semantic Entropy: Boosting LLM Uncertainty Quantification with Pairwise Semantic Similarity
Dang Nguyen, Ali Payani, Baharan Mirzasoleiman
Abstract
Hallucination in large language models (LLMs) can be detected by assessing the uncertainty of model outputs, typically measured using entropy. Semantic entropy (SE) enhances traditional entropy estimation by quantifying uncertainty at the semantic cluster level. However, as modern LLMs generate longer one-sentence responses, SE becomes less effective because it overlooks two crucial factors: intra-cluster similarity (the spread within a cluster) and intercluster similarity (the distance between clusters). To address these limitations, we propose a simple black-box uncertainty quantification method inspired by nearest neighbor estimates of entropy. Our approach can also be easily extended to white-box settings by incorporating token probabilities. Additionally, we provide theoretical results showing that our method generalizes semantic entropy. Extensive empirical results demonstrate its effectiveness compared to semantic entropy across two recent LLMs (Phi3 and Llama3) and three common text generation tasks: question answering, text summarization, and machine translation. Our code is available at https://github.com/BigML-CS- UCLA/SNNE.
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.
6 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
- Kernel Language Entropy: Fine-grained Uncertainty Quantification for LLMs from Semantic Similarities cites Uncertainty Estimation in Autoregressive Structured Prediction
- INSIDE: LLMs' Internal States Retain the Power of Hallucination Detection cites Uncertainty Estimation in Autoregressive Structured Prediction
- Semantic Uncertainty Quantification of Hallucinations in LLMs: A Quantum Tensor Network Based Method cites Kernel Language Entropy: Fine-grained Uncertainty Quantification for LLMs from Semantic Similarities
- “very likely” Means “uncertain”? How LLMs Diverge from Humans in Linguistic Uncertainty Quantification cites INSIDE: LLMs' Internal States Retain the Power of Hallucination Detection
- “very likely” Means “uncertain”? How LLMs Diverge from Humans in Linguistic Uncertainty Quantification cites Uncertainty Estimation in Autoregressive Structured Prediction
- “very likely” Means “uncertain”? How LLMs Diverge from Humans in Linguistic Uncertainty Quantification cites Estimating Semantic Alphabet Size for LLM Uncertainty Quantification
- Estimating Semantic Alphabet Size for LLM Uncertainty Quantification cites Kernel Language Entropy: Fine-grained Uncertainty Quantification for LLMs from Semantic Similarities
- Estimating Semantic Alphabet Size for LLM Uncertainty Quantification cites Uncertainty Estimation in Autoregressive Structured Prediction
Cited by top-tier papers6
- Estimating Semantic Alphabet Size for LLM Uncertainty QuantificationLucas H. McCabe, Rimon Melamed, Tom Hartvigsen, H. Howie HuangICLR 2026 · 7 citations
- Enhancing Multi-Modal LLMs Reasoning via Difficulty-Aware Group NormalizationJinghan Li, Junfeng Fang, Jinda Lu, Yuan Wang et al.ICML 2026 · 5 citations
- Semantic Uncertainty Quantification of Hallucinations in LLMs: A Quantum Tensor Network Based MethodPragatheeswaran Vipulanandan, Kamal Premaratne, Dilip SarkarICLR 2026 · 4 citations
- Not All Inconsistency Is Equal: Decomposing LVLM Uncertainty into Belief Divergence and Belief ConflictJie Shi, Xiaodong Yue, Wei Liu, Yufei Chen et al.AAAI 2026 · 1 citation
- “very likely” Means “uncertain”? How LLMs Diverge from Humans in Linguistic Uncertainty QuantificationJinhao Duan, Zicheng Liu, Zijie Liu, Kaidi Xu et al.ICML 2026
Builds on7
- BERTScore: Evaluating Text Generation with BERTTianyi Zhang, Varsha Kishore, Felix Wu, Kilian Q. Weinberger et al.ICLR 2020 · 8,443 citations
- PEGASUS: Pre-training with Extracted Gap-sentences for Abstractive SummarizationJingqing Zhang, Yao Zhao, Mohammad Saleh, Peter J. LiuICML 2020 · 2,453 citations
- Uncertainty Estimation in Autoregressive Structured PredictionAndrey Malinin, Mark J. F. GalesICLR 2021 · 439 citations
- INSIDE: LLMs' Internal States Retain the Power of Hallucination DetectionChao Chen, Kai Liu, Ze Chen, Yi Gu et al.ICLR 2024 · 281 citations
- Kernel Language Entropy: Fine-grained Uncertainty Quantification for LLMs from Semantic SimilaritiesAlexander Nikitin, Jannik Kossen, Yarin Gal, Pekka MarttinenNeurIPS 2024 · 197 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
- Semantic Uncertainty: Linguistic Invariances for Uncertainty Estimation in Natural Language GenerationLorenz Kuhn, Yarin Gal, Sebastian FarquharICLR 2023 · 49 citations
- Semantic Density: Uncertainty Quantification for Large Language Models through Confidence Measurement in Semantic SpaceXin Qiu, Risto MiikkulainenNeurIPS 2024
- SIMBA UQ: Similarity-Based Aggregation for Uncertainty Quantification in Large Language ModelsDebarun Bhattacharjya, Balaji Ganesan, Junkyu Lee, Radu Marinescu et al.EMNLP Findings 2025
