arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2502.12601cs.CL
收藏

COPU:用于自然语言生成中不确定性量化的共形预测

COPU: Conformal Prediction for Uncertainty Quantification in Natural Language Generation

Sean Wang, Yicheng Jiang, Yuxin Tang, Lu Cheng, Hanjie Chen

AI总结:

本文提出COPU方法,通过将真实答案显式加入候选输出并利用logit分数衡量不符合度,解决了共形预测在自然语言生成中无法保证包含真实答案的问题,在多个LLMs和NLG任务上实现了更准确的不确定性量化。

摘要:

自然语言生成(NLG)的不确定性量化(UQ)对于评估大型语言模型(LLMs)的性能至关重要,因为它能揭示预测的置信度、识别失败模式并衡量输出的可靠性。共形预测(CP)是一种与模型无关的方法,能够以指定的错误率生成预测集,已被用于分类任务中的UQ,其中预测集的大小反映了模型的不确定性。然而,在将CP适配到NLG时,基于采样的候选输出生成方法无法保证包含真实答案,这限制了其在广泛错误率范围内的适用性。为了解决这一问题,我们提出了COPU方法,该方法显式地将真实答案加入候选输出中,并使用logit分数来衡量不符合度。我们在四个NLG任务上使用六个LLMs进行的实验表明,COPU在错误率校准和经验覆盖率方面优于基线方法,能够在用户指定的广泛错误率范围内提供准确的UQ。

英文摘要:

Uncertainty Quantification (UQ) for Natural Language Generation (NLG) is crucial for assessing the performance of Large Language Models (LLMs), as it reveals confidence in predictions, identifies failure modes, and gauges output reliability. Conformal Prediction (CP), a model-agnostic method that generates prediction sets with a specified error rate, has been adopted for UQ in classification tasks, where the size of the prediction set indicates the model's uncertainty. However, when adapting CP to NLG, the sampling-based method for generating candidate outputs cannot guarantee the inclusion of the ground truth, limiting its applicability across a wide range of error rates. To address this, we propose \ourmethod, a method that explicitly adds the ground truth to the candidate outputs and uses logit scores to measure nonconformity. Our experiments with six LLMs on four NLG tasks show that \ourmethod outperforms baseline methods in calibrating error rates and empirical cover rates, offering accurate UQ across a wide range of user-specified error rates.

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

↑