arXiv:2611.03876cs.LGNov 2026

Manuscript Offprint

arXiv:2611.03876

Embedding Semantic Entropy: NLI-Free Semantic Uncertainty Estimation with Geometry-Aware Clustering

Akshiya Raveendran, Praveenasarma Baskarakurukkal, Pragatheeswaran Vipulanandan, Kamal Premaratne, Uthayasanker Thayasivam

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Large Language Models (LLMs) often generate fluent yet incorrect responses, making uncertainty estimation important for reliable deployment. Semantic Entropy (SE) estimates uncertainty by clustering responses based on semantic equivalence, but it relies on hard entailment-based clustering. We propose Embedding Semantic Entropy, which replaces entailment-based clustering with K-Medoids in semantic embedding space and uses dynamic cluster selection to account for intra-cluster compactness and inter-cluster separation. We evaluate the method on TriviaQA, SQuAD, NQ-Open, SVAMP, and BioASQ using Falcon-7B-Instruct, LLaMA-2-7B, LLaMA-2-7B-Chat, and Gemma-7B. Results show competitive AUROC and AURC performance, suggesting that NLI-based entailment clustering can be replaced with embedding-space clustering with limited degradation while improving the inspectability of semantic grouping. This matters because semantic uncertainty scores depend on underlying semantic groups; by making these groups explicit, compact, and separable in embedding space, Emb-SE turns uncertainty estimation from a black-box entailment decision into an inspectable clustering problem.

Keywords: Large Language Models; Uncertainty Quantification; Semantic Entropy; Clustering; K-Medoids; Hallucination Detection

1. Introduction

Large Language Models (LLMs) have demonstrated strong performance across a wide range of natural language processing tasks. Despite their fluency and coherence, these models frequently generate answers that are incorrect, fabricated, or unsupported by evidence while expressing high confidence. Such failures, commonly referred to as hallucinations or confabulations, pose serious risks in high-stakes domains where users may over-trust model outputs.

In this work, we focus on short-form question answering (QA), where model outputs are typically concise factual answers such as entities, dates, numerical values, or short statements.

Existing semantic uncertainty methods often rely on pairwise entailment models to group generated answers by meaning. Although effective, this approach introduces an external

  • Akshiya Raveendran and Praveenasarma Baskarakurukkal contributed equally to this work.

© 2026 A. Raveendran, P. Baskarakurukkal, P. Vipulanandan, K. Premaratne & U. Thayasivam.

NLI component, requires many pairwise comparisons, and provides limited visibility into why responses are grouped together. This motivates an alternative formulation in which semantic groups are constructed directly from the geometry of sentence embeddings. Such a formulation can expose cluster compactness, representative medoids, and inter-cluster separation, making the uncertainty score easier to inspect.