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

使用自适应温度缩放校准语言模型

Calibrating Language Models with Adaptive Temperature Scaling

Stanford University(斯坦福大学)

Johnathan Xie, Annie S. Chen, Yoonho Lee, Eric Mitchell, Chelsea Finn

AI总结:

本文提出自适应温度缩放(ATS)方法,通过为每个token预测温度参数来修复RLHF微调后LLMs的校准退化问题,在三个自然语言基准上提升校准性能10-50%且不影响RLHF性能收益。

摘要:

大型语言模型(LLMs)的有效性不仅通过其生成准确输出的能力来衡量,还通过其校准程度来衡量——即其置信度分数在多大程度上反映其输出正确的概率。尽管已有研究表明无监督预训练能够产生具有良好校准条件概率的LLMs,但近期研究发现,在使用基于人类反馈的强化学习(RLHF)进行微调后,这些模型的校准性能显著下降。在本工作中,我们提出了自适应温度缩放(ATS),这是一种事后校准方法,为每个token预测预测一个温度缩放参数。预测的温度值根据token级特征进行自适应调整,并在标准的监督微调(SFT)数据集上进行拟合。ATS的自适应特性解决了RLHF微调后可能出现的不同程度的校准偏移问题。与先前的校准方法相比,ATS在三个下游自然语言评估基准上将校准性能提升了10-50%以上,并且不会妨碍RLHF带来的性能改进。

英文摘要:

The effectiveness of large language models (LLMs) is not only measured by their ability to generate accurate outputs but also by their calibration-how well their confidence scores reflect the probability of their outputs being correct. While unsupervised pre-training has been shown to yield LLMs with well-calibrated conditional probabilities, recent studies have shown that after fine-tuning with reinforcement learning from human feedback (RLHF), the calibration of these models degrades significantly. In this work, we introduce Adaptive Temperature Scaling (ATS), a post-hoc calibration method that predicts a temperature scaling parameter for each token prediction. The predicted temperature values adapt based on token-level features and are fit over a standard supervised fine-tuning (SFT) dataset. The adaptive nature of ATS addresses the varying degrees of calibration shift that can occur after RLHF fine-tuning. ATS improves calibration by over 10-50% across three downstream natural language evaluation benchmarks compared to prior calibration methods and does not impede performance improvements from RLHF.

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

↑