语言模型中的不确定性:通过秩校准(Rank-Calibration)进行评估
Uncertainty in Language Models: Assessment through Rank-Calibration
AI总结:
针对现有语言模型不确定性度量取值范围不一、难以比较的问题,提出秩校准(Rank-Calibration)框架,基于“不确定性越高生成质量越低”的原则量化度量偏差,无需特设二值化阈值,具备广泛适用性与可解释性。
摘要:
语言模型(LMs)在自然语言生成中已展现出可观的性能。然而,由于LM常生成错误或幻觉性回复,正确量化其对给定输入作出响应的不确定性至关重要。除了通过提示(prompting)引出的口头化置信度外,学界已提出多种不确定性度量(例如语义熵、基于亲和图的度量)。但这些度量差异极大,目前尚不清楚如何对其进行比较,部分原因在于它们的取值范围不同(例如[0,∞)或[0,1])。本研究针对这一问题,开发了一个新颖且实用的框架,名为Rank-Calibration(秩校准),用于评估LM的不确定性与置信度度量。我们的核心原则是:平均而言,更高的不确定性(或更低的置信度)应对应更低的生成质量。秩校准以有理论依据的方式量化了与这一理想关系的偏差,无需对正确性得分(例如ROUGE或METEOR)设置特设的二值化阈值。实验验证了该方法广泛的适用性与精细的可解释性。
英文摘要:
Language Models (LMs) have shown promising performance in natural language generation. However, as LMs often generate incorrect or hallucinated responses, it is crucial to correctly quantify their uncertainty in responding to given inputs. In addition to verbalized confidence elicited via prompting, many uncertainty measures ($e.g.$, semantic entropy and affinity-graph-based measures) have been proposed. However, these measures can differ greatly, and it is unclear how to compare them, partly because they take values over different ranges ($e.g.$, $[0,\infty)$ or $[0,1]$). In this work, we address this issue by developing a novel and practical framework, termed $Rank$-$Calibration$, to assess uncertainty and confidence measures for LMs. Our key tenet is that higher uncertainty (or lower confidence) should imply lower generation quality, on average. Rank-calibration quantifies deviations from this ideal relationship in a principled manner, without requiring ad hoc binary thresholding of the correctness score ($e.g.$, ROUGE or METEOR). The broad applicability and the granular interpretability of our methods are demonstrated empirically.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。