paper-with-me

Papers

Kernel Language Entropy: Fine-grained Uncertainty Quantification for LLMs from Semantic Similarities

2024-05-30 · Alexander Nikitin, Jannik Kossen, Yarin Gal, Pekka Marttinen

Uncertainty quantification in Large Language Models (LLMs) is crucial for applications where safety and reliability are important. In particular, uncertainty can be used to improve the trustworthiness of LLMs by detecting factually incorrect model responses, commonly called hallucinations. Critically, one should seek to capture the model's semantic uncertainty, i.e., the uncertainty over the meanings of LLM outputs, rather than uncertainty over lexical or syntactic variations that do not affect answer correctness. To address this problem, we propose Kernel Language Entropy (KLE), a novel method for uncertainty estimation in white- and black-box LLMs. KLE defines positive semidefinite unit trace kernels to encode the semantic similarities of LLM outputs and quantifies uncertainty using the von Neumann entropy. It considers pairwise semantic dependencies between answers (or semantic clusters), providing more fine-grained uncertainty estimates than previous methods based on hard clustering of answers. We theoretically prove that KLE generalizes the previous state-of-the-art method called semantic entropy and empirically demonstrate that it improves uncertainty quantification performance across multiple natural language generation datasets and LLM architectures.

📄 PDF Abstract BibTeX arXiv:2405.20003

Code (2)

alexandervnikitin/kernel-language-entropy 공식 구현 pytorch
iinemo/lm-polygraph pytorch

Tasks

Text GenerationUncertainty Quantification

Similar Papers 제목 키워드 기반

A Bias-Variance-Covariance Decomposition of Kernel Scores for Generative Models

2023-10-09 · Sebastian G. Gruber, Florian Buettner

Generative models, like large language models, are becoming increasingly relevant in our daily lives, yet a theoretical framework to assess their generalization behavior and uncertainty does not exist. Particularly, the …

Image GenerationQuestion AnsweringText GenerationTriviaQA

Fine-Grained Uncertainty Decomposition in Large Language Models: A Spectral Approach

2025-09-26 · Nassim Walha, Sebastian G. Gruber, Thomas Decker, Yinchong Yang 외 arxiv

As Large Language Models (LLMs) are increasingly integrated in diverse applications, obtaining reliable measures of their predictive uncertainty has become critically important. A precise distinction between aleatoric un…

Semantic Similarity

NERVE: Neighbourhood & Entropy-guided Random-walk for training free open-Vocabulary sEgmentation

2025-11-11 · Kunal Mahatha, Jose Dolz, Christian Desrosiers arxiv

Despite recent advances in Open-Vocabulary Semantic Segmentation (OVSS), existing training-free methods face several limitations: use of computationally expensive affinity refinement strategies, ineffective fusion of tra…

Semantic Segmentation

From Entropy to Calibrated Uncertainty: Training Language Models to Reason About Uncertainty

2026-03-06 · Azza Jenane, Nassim Walha, Lukas Kuhn, Florian Buettner arxiv

Large Language Models (LLMs) that can express interpretable and calibrated uncertainty are crucial in high-stakes domains. While methods to compute uncertainty post-hoc exist, they are often sampling-based and therefore …

Reinforcement Learning

Different Questions, Different Models: Fine-Grained Evaluation of Uncertainty and Calibration in Clinical QA with LLMs

2025-06-12 · Alberto Testoni, Iacer Calixto

Accurate and well-calibrated uncertainty estimates are essential for deploying large language models (LLMs) in high-stakes domains such as clinical decision support. We present a fine-grained evaluation of uncertainty es…

Multiple-choiceQuestion Answering