Efficient Epistemic Uncertainty Estimation for Large Language Models via Knowledge Distillation
Seonghyeon Park, Jewon Yeom, Jaewon Sok, Jeongjae Park, Heejun Kim, Taesup Kim
TL;DR
The paper tackles the prohibitive cost of estimating epistemic uncertainty (EU) in large language models by leveraging a family of lightweight draft models. It formalizes a bias–variance decomposition where EU is approximated by a variance proxy (the Jensen–Shannon divergence among drafts) plus a bias proxy (the KL divergence between the draft mixture and the target posterior), and introduces Online Stochastic Distillation (OSD) to learn a proxy mean $p_{mix}$ that converges to the target predictive distribution. To maximize posterior diversity, it proposes Data-Diverse Drafts (DDD) and analyzes three distillation variants, demonstrating substantial improvements in EU estimation (e.g., RMSE reductions up to ~37%) and strong hallucination-detection performance with much lower inference cost than heavy perturbation baselines like TokUR. Experiments on GSM8K show that DDD achieves superior uncertainty fidelity across model sizes while maintaining efficient computation, enabling practical uncertainty-aware deployment of LLMs. Overall, the work provides a principled, scalable framework for accurate EU estimation through draft-based inference, combining theory with empirical validation and actionable guidance for implementation.
Abstract
Quantifying uncertainty in Large Language Models (LLMs) is essential for mitigating hallucinations and enabling risk-aware deployment in safety-critical tasks. However, estimating Epistemic Uncertainty(EU) via Deep Ensembles is computationally prohibitive at the scale of modern models. We propose a framework that leverages the small draft models to efficiently estimate token-level EU, bypassing the need for full-scale ensembling. Theoretically grounded in a Bias-Variance Decomposition, our approach approximates EU via Jensen-Shannon divergence among drafts (variance proxy) and KL divergence between the draft mixture and the target (bias proxy). To further ensure accuracy without significant overhead, we introduce Online Stochastic Distillation (OSD) to efficiently approximate target aggregation and the Data-Diverse Drafts (DDD) strategy to enhance draft diversity for better target approximation. Extensive experiments on GSM8K demonstrate that our method reduces the estimation error (RMSE) by up to 37% compared to baselines. Crucially, our approach achieves Hallucination Detection performance competitive with heavy perturbation-based methods like TokUR while incurring negligible inference costs, offering a practical solution for uncertainty-aware LLM deployment.
