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

改写一下即可!通过多次改写查询估计闭源语言模型的不确定性

Just rephrase it! Uncertainty estimation in closed-source language models via multiple rephrased queries

University of Bristol(布里斯托尔大学);Nanyang University(南洋大学);INRIA Grenoble Rhône-Alpes(法国国家信息与自动化研究所格勒诺布尔罗讷-阿尔卑斯分部)

Adam Yang, Chen Chen, Konstantinos Pitas

AI总结:

本文提出通过多次改写原始查询并比较回答相似性来估计闭源大语言模型的不确定性,给出实用改写规则和理论框架,显著提升了不确定性校准效果。

摘要:

最先进的大语言模型有时以开源软件形式发布,但也越来越多地以闭源服务形式提供。这些闭源大语言模型通常被公众最广泛使用,然而它们在响应查询时往往不提供对自身不确定性的估计。由于即使是最好的模型也容易在高置信度下“幻觉”出虚假信息,缺乏可靠的不确定性估计限制了这些模型在关键场景中的适用性。我们探索通过多次改写原始基础查询来估计闭源大语言模型的不确定性。具体来说,我们向模型提出多个改写后的问题,并使用回答之间的相似性作为不确定性估计。我们与先前工作的不同之处在于:i) 提供了易于记忆并在实践中使用的改写规则;ii) 提出了一个理论框架,解释为什么多次改写查询能够获得校准良好的不确定性估计。我们的方法相比基线在不确定性估计的校准方面表现出显著改进,并为如何设计查询策略以实现最优测试校准提供了直觉。

英文摘要:

State-of-the-art large language models are sometimes distributed as open-source software but are also increasingly provided as a closed-source service. These closed-source large-language models typically see the widest usage by the public, however, they often do not provide an estimate of their uncertainty when responding to queries. As even the best models are prone to ``hallucinating" false information with high confidence, a lack of a reliable estimate of uncertainty limits the applicability of these models in critical settings. We explore estimating the uncertainty of closed-source LLMs via multiple rephrasings of an original base query. Specifically, we ask the model, multiple rephrased questions, and use the similarity of the answers as an estimate of uncertainty. We diverge from previous work in i) providing rules for rephrasing that are simple to memorize and use in practice ii) proposing a theoretical framework for why multiple rephrased queries obtain calibrated uncertainty estimates. Our method demonstrates significant improvements in the calibration of uncertainty estimates compared to the baseline and provides intuition as to how query strategies should be designed for optimal test calibration.

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

↑