arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2406.03441cs.CLcs.LG
收藏

思维循环:通过稳定的解释测量LLM的置信度

Cycles of Thought: Measuring LLM Confidence through Stable Explanations

UCLA(加利福尼亚大学洛杉矶分校)

Evan Becker, Stefano Soatto

AI总结:

针对LLM对错误回答过度自信的问题,提出通过生成解释的分布测量LLM不确定性的框架,利用解释蕴含作为分类器似然计算后验答案分布,在五个数据集上显著提升了置信度指标。

摘要:

在许多高风险的机器学习应用中,模型在不确定其预测结果时给出指示是至关重要的。尽管大型语言模型(LLMs)能够在各种基准测试上达到甚至超越人类水平的准确率,但它们对错误回答的过度自信仍是一个有充分记录的失败模式。由于实现所需的计算成本以及许多模型的闭源特性,传统的机器学习不确定性量化方法很难直接适应LLMs。近期已提出多种黑盒方法,但这些方法通常依赖于诸如自我言语化的置信度等启发式方法。相反,我们提出了一个框架,通过针对答案生成解释的分布来测量LLM的不确定性。尽管利用解释本身并非新想法,但通过将每个可能的模型+解释对解释为测试时分类器,我们可以在这些最可能的分类器上计算后验答案分布。我们展示了该框架的一个具体实例——使用解释蕴含作为分类器似然——在五个不同的数据集上改善了基线的置信度分数指标(特别是AURC和AUROC)。我们相信这些结果表明,我们的框架是量化LLM不确定性的一种既有充分原则又有效的方法。

英文摘要:

In many high-risk machine learning applications it is essential for a model to indicate when it is uncertain about a prediction. While large language models (LLMs) can reach and even surpass human-level accuracy on a variety of benchmarks, their overconfidence in incorrect responses is still a well-documented failure mode. Traditional methods for ML uncertainty quantification can be difficult to directly adapt to LLMs due to the computational cost of implementation and closed-source nature of many models. A variety of black-box methods have recently been proposed, but these often rely on heuristics such as self-verbalized confidence. We instead propose a framework for measuring an LLM's uncertainty with respect to the distribution of generated explanations for an answer. While utilizing explanations is not a new idea in and of itself, by interpreting each possible model+explanation pair as a test-time classifier we can calculate a posterior answer distribution over the most likely of these classifiers. We demonstrate how a specific instance of this framework using explanation entailment as our classifier likelihood improves confidence score metrics (in particular AURC and AUROC) over baselines across five different datasets. We believe these results indicate that our framework is both a well-principled and effective way of quantifying uncertainty in LLMs.

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

↑