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

大语言模型的言语化概率校准

Calibrating Verbalized Probabilities for Large Language Models

Amazon(亚马逊)

Cheng Wang, Gyuri Szarvas, Georges Balazs, Pavel Danchenko, Patrick Ernst

AI总结:

该研究针对大语言模型言语化概率校准问题,识别出重softmax问题并提出逆softmax技巧估计logit,经三个数据集验证,证实了LLM生成类别分布的稳健性与该技巧的有效性,助力黑盒LLM输出的可靠评估与利用。

摘要:

言语化概率校准为可靠评估和利用黑盒大语言模型(LLM)的输出提供了一种新方法。近期研究通过对LLM生成的置信度分数应用Platt缩放、温度缩放等技术,已证明可改善校准效果。本文针对判别式任务探索言语化概率分布的校准方法。首先,我们研究了LLM生成类别标签概率分布的能力,从理论和实证层面识别出言语化概率缩放过程中出现的重softmax问题,并提出使用逆softmax技巧,通过反转言语化概率来近似“logit(对数几率)”。通过在三个公开数据集上的广泛评估,我们证明:(1)LLM在生成类别分布方面具备稳健能力;(2)逆softmax技巧在估计logit方面效果显著,进而可助力后续校准调整。

英文摘要:

Calibrating verbalized probabilities presents a novel approach for reliably assessing and leveraging outputs from black-box Large Language Models (LLMs). Recent methods have demonstrated improved calibration by applying techniques like Platt scaling or temperature scaling to the confidence scores generated by LLMs. In this paper, we explore the calibration of verbalized probability distributions for discriminative tasks. First, we investigate the capability of LLMs to generate probability distributions over categorical labels. We theoretically and empirically identify the issue of re-softmax arising from the scaling of verbalized probabilities, and propose using the invert softmax trick to approximate the "logit" by inverting verbalized probabilities. Through extensive evaluation on three public datasets, we demonstrate: (1) the robust capability of LLMs in generating class distributions, and (2) the effectiveness of the invert softmax trick in estimating logits, which, in turn, facilitates post-calibration adjustments.

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

↑