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

量化任意大语言模型答案的不确定性并提升其可信度

Quantifying Uncertainty in Answers from any Language Model and Enhancing their Trustworthiness

Cleanlab;University of Maryland(马里兰大学)

Jiuhai Chen, Jonas Mueller

AI总结:

本研究提出BSDetector方法,为黑盒LLM的输出估计置信度以检测错误答案,在问答基准上表现优于现有方法,还能通过选高置信度响应提升答案准确性,并增强LLM自动评估的可靠性。

摘要:

我们提出了BSDetector方法,通过为预训练大语言模型生成的任意输出估计数值置信度分数,来检测劣质且推测性的答案。我们的不确定性量化技术适用于任何仅能通过黑盒API访问、训练数据未知的大语言模型(LLM)。只需额外付出少量计算,任何LLM API的用户现在都能获得与通常情况相同的响应,同时得到一个置信度估计值,在不可信该响应时发出警示。在封闭式和开放式问答基准上的实验表明,对于GPT-3和ChatGPT,BSDetector比其他不确定性估计方法更准确地识别LLM的错误响应。通过从LLM采样多个响应并选取置信度最高的那个,我们无需额外训练步骤,就能让同一个LLM给出更准确的响应。在涉及用LLM进行自动评估的应用中,在人工参与和全自动两种场景下(涵盖GPT 3.5和4),纳入我们的置信度分数都能让评估更可靠。

英文摘要:

We introduce BSDetector, a method for detecting bad and speculative answers from a pretrained Large Language Model by estimating a numeric confidence score for any output it generated. Our uncertainty quantification technique works for any LLM accessible only via a black-box API, whose training data remains unknown. By expending a bit of extra computation, users of any LLM API can now get the same response as they would ordinarily, as well as a confidence estimate that cautions when not to trust this response. Experiments on both closed and open-form Question-Answer benchmarks reveal that BSDetector more accurately identifies incorrect LLM responses than alternative uncertainty estimation procedures (for both GPT-3 and ChatGPT). By sampling multiple responses from the LLM and considering the one with the highest confidence score, we can additionally obtain more accurate responses from the same LLM, without any extra training steps. In applications involving automated evaluation with LLMs, accounting for our confidence scores leads to more reliable evaluation in both human-in-the-loop and fully-automated settings (across both GPT 3.5 and 4).

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

↑