Embedding Semantic Entropy: NLI-Free Semantic Uncertainty Estimation with Geometry-Aware Clustering
Organizations: University of Moratuwa, Sri Lanka · University of Miami, USA
Abstract
Large Language Models (LLMs) often generate fluent yet incorrect responses, making un- certainty 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 AUARC 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 en- tailment decision into an inspectable clustering problem.
Figures & tables
Appendix figures & tables5 assets
Supplementary material from the paper’s appendix.
Appendix
| Parameter | Group | Avg. selected value | Selected range |
| NQ | 0.39 | 0.23–0.50 | |
| SQuAD | 0.34 | 0.23–0.39 | |
| SVAMP | 0.28 | 0.05–0.46 | |
| TriviaQA | 0.25 | 0.14–0.44 | |
| BioASQ | 0.21 | 0.01–0.42 | |
| Gemma-7B | 0.16 | 0.15–0.20 |
| Method | TriviaQA | SQuAD | NQ | SVAMP | BioASQ | |||||
| AUROC | AUARC | AUROC | AUARC | AUROC | AUARC | AUROC | AUARC | AUROC | AUARC | |
| SE | 0.791 0.02 | 0.549 0.03 | 0.665 0.04 | 0.251 0.03 | 0.716 0.03 | 0.369 0.03 | 0.698 0.04 | 0.279 0.04 | 0.831 0.02 | 0.499 0.03 |
| DSE | 0.779 0.02 | 0.532 0.03 | 0.655 0.04 | 0.241 0.03 | 0.714 0.03 | 0.351 0.03 | 0.711 0.04 | 0.267 0.03 | 0.828 0.02 | 0.479 0.03 |
| PE | 0.750 0.03 | 0.522 0.03 | 0.665 0.04 | 0.257 0.03 | 0.671 0.03 | 0.348 0.03 | 0.732 0.04 | 0.290 0.03 | 0.655 0.03 | 0.406 0.03 |
| 0.544 0.03 | 0.390 0.03 | 0.404 0.03 | 0.133 0.02 | 0.554 0.03 | 0.280 0.03 | 0.592 0.04 | 0.226 0.03 | 0.598 0.03 | 0.358 0.03 | |
| ER | 0.719 0.03 | 0.490 0.03 | 0.628 0.04 | 0.232 0.03 | 0.658 0.03 | 0.325 0.03 | 0.683 0.04 | 0.258 0.03 | 0.829 0.02 | 0.507 0.03 |
| Method | TriviaQA | SQuAD | NQ | SVAMP | BioASQ | |||||
| AUROC | AUARC | AUROC | AUARC | AUROC | AUARC | AUROC | AUARC | AUROC | AUARC | |
| SE | 0.784 0.03 | 0.745 0.02 | 0.785 0.03 | 0.405 0.03 | 0.775 0.02 | 0.541 0.03 | 0.878 0.02 | 0.649 0.03 | 0.852 0.02 | 0.642 0.03 |
| DSE | 0.778 0.02 | 0.742 0.02 | 0.798 0.03 | 0.398 0.03 | 0.776 0.02 | 0.527 0.03 | 0.870 0.02 | 0.636 0.03 | 0.848 0.02 | 0.618 0.03 |
| PE | 0.751 0.03 | 0.730 0.02 | 0.757 0.03 | 0.408 0.03 | 0.750 0.03 | 0.533 0.03 | 0.841 0.02 | 0.632 0.03 | 0.819 0.02 | 0.620 0.03 |
| 0.607 0.03 | 0.668 0.03 | 0.628 0.03 | 0.331 0.03 | 0.678 0.03 | 0.480 0.03 | 0.751 0.03 | 0.555 0.04 | 0.672 0.03 | 0.521 0.03 | |
| ER | 0.619 0.03 | 0.664 0.03 | 0.573 0.03 | 0.288 0.03 | 0.569 0.03 | 0.403 0.03 | 0.758 0.03 | 0.574 0.03 | 0.748 0.02 | 0.583 0.03 |
| Method | TriviaQA | SQuAD | NQ | SVAMP | BioASQ | |||||
| AUROC | AUARC | AUROC | AUARC | AUROC | AUARC | AUROC | AUARC | AUROC | AUARC | |
| SE | 0.787 0.02 | 0.731 0.02 | 0.750 0.03 | 0.360 0.03 | 0.724 0.03 | 0.514 0.03 | 0.841 0.02 | 0.590 0.03 | 0.842 0.02 | 0.640 0.03 |
| DSE | 0.788 0.02 | 0.730 0.02 | 0.755 0.03 | 0.356 0.03 | 0.726 0.03 | 0.510 0.03 | 0.845 0.02 | 0.588 0.03 | 0.840 0.02 | 0.632 0.03 |
| PE | 0.758 0.02 | 0.722 0.02 | 0.719 0.03 | 0.359 0.03 | 0.715 0.03 | 0.510 0.03 | 0.835 0.02 | 0.589 0.03 | 0.678 0.03 | 0.554 0.03 |
| 0.670 0.03 | 0.662 0.03 | 0.598 0.04 | 0.297 0.03 | 0.647 0.03 | 0.465 0.03 | 0.573 0.03 | 0.422 0.04 | 0.790 0.02 | 0.633 0.03 | |
| ER | 0.599 0.02 | 0.636 0.03 | 0.562 0.03 | 0.266 0.03 | 0.570 0.03 | 0.412 0.03 | 0.803 0.03 | 0.575 0.03 | 0.729 0.03 | 0.569 0.03 |
| Method | TriviaQA | SQuAD | NQ | SVAMP | BioASQ | |||||
| AUROC | AUARC | AUROC | AUARC | AUROC | AUARC | AUROC | AUARC | AUROC | AUARC | |
| SE | 0.767 0.02 | 0.705 0.03 | 0.744 0.03 | 0.364 0.03 | 0.735 0.03 | 0.528 0.03 | 0.890 0.02 | 0.763 0.02 | 0.869 0.02 | 0.702 0.02 |
| DSE | 0.764 0.02 | 0.695 0.02 | 0.749 0.03 | 0.350 0.03 | 0.750 0.03 | 0.522 0.03 | 0.878 0.02 | 0.749 0.03 | 0.865 0.02 | 0.683 0.02 |
| PE | 0.744 0.02 | 0.698 0.02 | 0.737 0.03 | 0.361 0.03 | 0.725 0.03 | 0.513 0.03 | 0.858 0.02 | 0.753 0.03 | 0.825 0.02 | 0.686 0.02 |
| 0.739 0.03 | 0.690 0.03 | 0.644 0.03 | 0.328 0.03 | 0.684 0.03 | 0.501 0.03 | 0.710 0.03 | 0.649 0.03 | 0.808 0.02 | 0.681 0.02 | |
| ER | 0.647 0.02 | 0.625 0.03 | 0.575 0.03 | 0.298 0.03 | 0.598 0.03 | 0.416 0.03 | 0.627 0.02 | 0.604 0.03 | 0.784 0.02 | 0.547 0.02 |
LLM Uncertainty Estimation
Large language model uncertainty estimation measures when outputs may be wrong, ambiguous, or unreliable to guide safer decisions.
See all 408 papers