ESI: Epistemic Uncertainty Quantification via Semantic-preserving Intervention for Large Language Models
Mingda Li, Xinyu Li, Weinan Zhang, Longxuan Ma
TL;DR
ESI introduces a causal-invariance framework for estimating epistemic uncertainty in LLMs by measuring output changes under semantic-preserving interventions to prompts. It defines a principled UQ score using invariance of token-predictive distributions, justified by a ground-truth language model that remains stable under semantic-preserving edits and approximated via an Expected Pairwise KL-Divergence proxy (EPKL). Empirically, ESI (with Paraphrase or Skip-One-Char interventions) outperforms state-of-the-art baselines on multiple QA datasets and models, while delivering substantial runtime efficiency and requiring fewer samples. The work offers a practical, scalable approach to improving LLM reliability and provides a causal-invariance perspective for UQ in free-form generation.
Abstract
Uncertainty Quantification (UQ) is a promising approach to improve model reliability, yet quantifying the uncertainty of Large Language Models (LLMs) is non-trivial. In this work, we establish a connection between the uncertainty of LLMs and their invariance under semantic-preserving intervention from a causal perspective. Building on this foundation, we propose a novel grey-box uncertainty quantification method that measures the variation in model outputs before and after the semantic-preserving intervention. Through theoretical justification, we show that our method provides an effective estimate of epistemic uncertainty. Our extensive experiments, conducted across various LLMs and a variety of question-answering (QA) datasets, demonstrate that our method excels not only in terms of effectiveness but also in computational efficiency.
