随机性的起源:大型语言模型不确定性量化的综合研究
The Origins of Stochasticity: Comprehensive Investigations on Uncertainty Quantification for Large Language Models
AI总结:
提出细粒度不确定性分类法,将LLM不确定性归因于输入、参数、标记和解码过程,并评估21种UQ方法,发现基于共识的方法(Deg和EigV)表现最佳,且模型规模与不确定性负相关。
摘要:
近年来,大型语言模型(LLM)的进步实现了复杂的推理和内容生成,但其固有的随机性对确保预测可信度构成了重大挑战。虽然传统的不确定性分类范式(如偶然不确定性和认知不确定性的二分法)提供了概念基础,但它们往往无法捕捉LLM生成的多组件和多阶段特性,并且难以评估各种不确定性量化(UQ)方法的有效性。在本文中,我们提出了一种细粒度的不确定性分类法,将LLM不确定性系统地归因于输入级、参数级、标记级和解码过程来源。相应地,我们将现有的UQ方法分类为贝叶斯方法、集成方法、基于共识的方法和单次方法。此外,我们引入了一个涵盖不同生成设置和指标的综合评估框架。我们在三个主要LLM家族(包括Qwen3、Llama 3.2和DeepSeek-V3)上,对TriviaQA、GSM8K和HumanEval等基准测试中的21种典型UQ方法进行了实证评估。我们的实验结果表明:(i)UQ方法的有效性对任务类型和生成设置敏感;(ii)基于共识的方法(类型为Deg和EigV)始终优于其他UQ方法;(iii)更大的模型规模与更低的不确定性估计相关,这表明LLM不确定性存在经验标度律。这项工作弥合了理论起源与实际部署之间的差距,为系统量化LLM应用中的不确定性提供了一种多功能诊断工具。
英文摘要:
Recent advancements in Large Language Models (LLMs) have enabled sophisticated reasoning and content generation, yet their inherent stochasticity poses significant challenges for ensuring predictive credibility. While traditional uncertainty taxonomy paradigms, such as the dichotomy of aleatoric and epistemic uncertainties, provide conceptual foundations, they often fail to capture the multi-component and multi-stage nature of LLM generation and struggle to evaluate the effectiveness of various Uncertainty Quantification (UQ) methods. In this paper, we propose a granular uncertainty taxonomy that systematically attributes LLM uncertainty into input-level, parameter-level, token-level, and decoding-process sources. Correspondingly, we categorize existing UQ methods into Bayesian, ensemble, consensus-based, and single-pass approaches. Furthermore, we introduce a comprehensive evaluation framework covering diverse generation settings and metrics. We empirically evaluate 21 typical UQ methods across three prominent LLM families, including Qwen3, Llama 3.2, and DeepSeek-V3, on benchmarks such as TriviaQA, GSM8K, and HumanEval. Our experimental results demonstrate that (i) the effectiveness of UQ methods is sensitive to task types and generation settings; (ii) consensus-based methods, typed Deg and EigV, consistently outperform other UQ approaches; and (iii) larger model scales correlate with lower uncertainty estimates, suggesting an empirical scaling law for LLM uncertainty. This work bridges the gap between theoretical origins and practical deployment, providing a versatile diagnostic tool for systematically quantifying uncertainty in LLM applications.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。