arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2510.02671cs.CLcs.LG
收藏

不确定性作为特征差距:上下文问答中LLMs的认知不确定性量化

Uncertainty as Feature Gaps: Epistemic Uncertainty Quantification of LLMs in Contextual Question-Answering

University of Southern California(南加州大学);Capital One;University of California, Irvine(加州大学伊文斯顿分校)

Yavuz Bakman, Sungmin Kang, Zhiqi Huang, Duygu Nur Yaldiz, Catarina G. Belém, Chenyang Zhu, Anoop Kumar, Alfy Samuel, Salman Avestimehr, Daben Liu, Sai Praneeth Karimireddy

AI总结:

本文提出一种基于理论的方法,通过将认知不确定性量化为模型隐藏表示中的特征差距,用于上下文问答,并利用上下文依赖、理解和诚实性三个特征集成,显著提升不确定性量化性能。

摘要:

不确定性量化(UQ)研究主要集中于闭卷事实问答(QA),而上下文问答尽管在实际应用中非常重要,却仍未得到探索。在本工作中,我们聚焦于上下文问答任务的不确定性量化,并提出一种具有理论依据的方法来量化认知不确定性。我们首先引入一种任务无关的、词元级别的不确定性度量,定义为给定模型的预测分布与未知真实分布之间的交叉熵。通过分解该度量,我们分离出认知成分,并通过一个完美提示的理想化模型来近似真实分布。随后,我们推导出认知不确定性的上界,并表明该上界可解释为给定模型隐藏表示相对于理想模型的语义特征差距。我们进一步将该通用框架应用于上下文问答任务,并假设三个特征近似此差距:上下文依赖(使用提供的上下文而非参数化知识)、上下文理解(从上下文中提取相关信息)以及诚实性(避免故意撒谎)。采用自上而下的可解释性方法,我们仅使用少量标注样本提取这些特征,并将其集成以形成稳健的不确定性分数。在多个问答基准上的分布内和分布外设置实验中,我们的方法显著优于最先进的无监督(无采样和基于采样)及监督UQ方法,实现了高达13个百分点的PRR提升,同时仅产生可忽略的推理开销。

英文摘要:

Uncertainty Quantification (UQ) research has primarily focused on closed-book factual question answering (QA), while contextual QA remains unexplored, despite its importance in real-world applications. In this work, we focus on UQ for the contextual QA task and propose a theoretically grounded approach to quantify epistemic uncertainty. We begin by introducing a task-agnostic, token-level uncertainty measure defined as the cross-entropy between the predictive distribution of the given model and the unknown true distribution. By decomposing this measure, we isolate the epistemic component and approximate the true distribution by a perfectly prompted, idealized model. We then derive an upper bound for epistemic uncertainty and show that it can be interpreted as semantic feature gaps in the given model's hidden representations relative to the ideal model. We further apply this generic framework to the contextual QA task and hypothesize that three features approximate this gap: context-reliance (using the provided context rather than parametric knowledge), context comprehension (extracting relevant information from context), and honesty (avoiding intentional lies). Using a top-down interpretability approach, we extract these features by using only a small number of labeled samples and ensemble them to form a robust uncertainty score. Experiments on multiple QA benchmarks in both in-distribution and out-of-distribution settings show that our method substantially outperforms state-of-the-art unsupervised (sampling-free and sampling-based) and supervised UQ methods, achieving up to a 13-point PRR improvement while incurring a negligible inference overhead.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑