Efficient semantic uncertainty quantification in language models via diversity-steered sampling
Ji Won Park, Kyunghyun Cho
TL;DR
This paper tackles semantic uncertainty in open-ended language generation by treating semantic clusters as the basis for aleatoric and epistemic uncertainty in free-form QA. It introduces diversity-steered sampling, a gradient-free approach that injects a semantic entailment-based penalty into decoding for both autoregressive and masked-diffusion models, guided by a minimally finetuned NLI on partial sequences. To yield unbiased uncertainty estimates, the method uses importance weighting and further reduces variance with adaptive control variates, demonstrating improved semantic coverage and competitive AUROC across four QA benchmarks. The framework is modular, gradient-free, and deployable as a drop-in enhancement for risk-sensitive applications.
Abstract
Accurately estimating semantic aleatoric and epistemic uncertainties in large language models (LLMs) is particularly challenging in free-form question answering (QA), where obtaining stable estimates often requires many expensive generations. We introduce a diversity-steered sampler that discourages semantically redundant outputs during decoding, covers both autoregressive and masked diffusion paradigms, and yields substantial sample-efficiency gains. The key idea is to inject a continuous semantic-similarity penalty into the model's proposal distribution using a natural language inference (NLI) model lightly finetuned on partial prefixes or intermediate diffusion states. We debias downstream uncertainty estimates with importance reweighting and shrink their variance with control variates. Across four QA benchmarks, our method matches or surpasses baselines while covering more semantic clusters with the same number of samples. Being modular and requiring no gradient access to the base LLM, the framework promises to serve as a drop-in enhancement for uncertainty estimation in risk-sensitive model deployments.
