PulseExploreJournal ClubDebatesTrendingResearchersJournals
Instagram
HomeExploreJournal ClubTrending
Synapse
⌘+K
Synapse
October 8, 20250 citationsOpen Access

Beyond Semantic Entropy: Boosting LLM Uncertainty Quantification with Pairwise Semantic Similarity

View Full Paper
DNDang NguyenAPAli PayaniBMBaharan Mirzasoleiman

Key Points

  • This approach enhances uncertainty quantification by incorporating pairwise semantic similarity, addressing key limitations of semantic entropy.
  • Empirical results show significant improvements over traditional semantic entropy in two recent LLMs on tasks like question answering and text summarization.
  • The proposed method offers flexibility, working as both a simple black-box and an extended white-box quantification approach.
  • Theoretical results validate the generalization of semantic entropy, indicating potential for broader applications in machine learning.

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 inter-cluster 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 AI
Helpful
Bookmark
Share
View Full Paper

Cite This Study

Nguyen et al. (2025) studied this question.

synapsesocial.com/papers/68e6bc5f38ca8e474d549fd8https://doi.org/10.48550/arxiv.2506.00245
Ask AI
Helpful
Bookmark
Share
View Full Paper

Also Consider

Synapse has enriched 5 closely related papers on similar clinical questions. Consider them for comparative context:

  1. 1Kernel Language Entropy: Fine-grained Uncertainty Quantification for LLMs from Semantic Similarities2024 · 2 citations
  2. 2Semantic Density: Uncertainty Quantification for Large Language Models through Confidence Measurement in Semantic Space2024 · 1 citations
  3. 3Semantic Entropy Probes: Robust and Cheap Hallucination Detection in LLMs2024 · 4 citations
  4. 4CSS: Contrastive Semantic Similarity for Uncertainty Quantification of LLMs2024
  5. 5Semantic Volume: Quantifying and Detecting both External and Internal Uncertainty in LLMs2025