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

通过样本一致性校准大型语言模型

Calibrating Large Language Models with Sample Consistency

University of Pennsylvania(宾夕法尼亚大学);ETH Zurich(苏黎世联邦理工学院);University of Washington(华盛顿大学);Allen Institute for AI(人工智能研究院)

Qing Lyu, Kumar Shridhar, Chaitanya Malaviya, Li Zhang, Yanai Elazar, Niket Tandon, Marianna Apidianaki, Mrinmaya Sachan, Chris Callison-Burch

AI总结:

通过样本一致性方法提升大型语言模型的校准效果,改进其预测置信度评估和性能表现。

摘要:

准确评估大型语言模型(LLMs)预测的置信度水平对于其可靠应用至关重要。然而,LLMs本质上往往不校准,并且由于其专有性质和大规模,难以用传统校准技术进行校准。在本工作中,我们探索了通过多个随机采样模型生成的分布来推导置信度的潜力,通过三种一致性度量方法。我们在九个推理数据集上对各种开源和闭源模型进行了广泛评估。结果表明,基于一致性的校准方法优于现有事后方法。同时,我们发现中间解释、模型规模和更大样本量等因素增强了校准,而指令微调使校准更加困难。此外,通过一致性获得的置信度分数有潜力提升模型性能。最后,我们提供了选择适合校准的一致性度量的标准实践建议,以适应各种语言模型的特点。

英文摘要:

Accurately gauging the confidence level of Large Language Models' (LLMs) predictions is pivotal for their reliable application. However, LLMs are often uncalibrated inherently and elude conventional calibration techniques due to their proprietary nature and massive scale. In this work, we explore the potential of deriving confidence from the distribution of multiple randomly sampled model generations, via three measures of consistency. We perform an extensive evaluation across various open and closed-source models on nine reasoning datasets. Results show that consistency-based calibration methods outperform existing post-hoc approaches. Meanwhile, we find that factors such as intermediate explanations, model scaling, and larger sample sizes enhance calibration, while instruction-tuning makes calibration more difficult. Moreover, confidence scores obtained from consistency have the potential to enhance model performance. Finally, we offer practical guidance on choosing suitable consistency metrics for calibration, tailored to the characteristics of various LMs.

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

↑