Smaug:利用DPO-Positive修复偏好优化的失效模式
Smaug: Fixing Failure Modes of Preference Optimisation with DPO-Positive
AI总结:
本文针对标准DPO在偏好优化中可能降低偏好示例似然的失效模式,提出DPOP损失函数与训练流程,并据此开源Smaug-34B和Smaug-72B模型,后者成为首个在HuggingFace Open LLM Leaderboard上平均准确率超过80%的开源LLM。
摘要:
直接偏好优化(DPO)在显著提升大语言模型(LLM)在推理、摘要和对齐等下游任务上的性能方面非常有效。利用成对的偏好与非偏好数据,DPO对选择一种回答而非另一种回答的相对概率进行建模。在本工作中,我们首先从理论上证明,只要偏好类别与非偏好类别之间的相对概率增大,标准DPO损失就可能导致模型对偏好示例的似然降低。随后,我们通过实验证明,在常见数据集上微调LLM时会出现这一现象,尤其是在补全对之间编辑距离较低的数据集上。基于这些见解,我们设计了DPO-Positive(DPOP),这是一种新的损失函数和训练流程,可避免该失效模式。令人惊讶的是,我们发现DPOP在广泛的数据集和下游任务上均优于DPO及其他微调流程,包括补全之间编辑距离较高的数据集。此外,我们发现经DPOP微调的模型在与微调数据无关的基准(如MT-Bench)上优于经DPO微调的模型(其他条件相同)。最后,利用DPOP,我们创建并开源了Smaug-34B和Smaug-72B,其中后者成为首个在HuggingFace Open LLM Leaderboard上平均准确率超过80%的开源LLM。
英文摘要:
Direct Preference Optimisation (DPO) is effective at significantly improving the performance of large language models (LLMs) on downstream tasks such as reasoning, summarisation, and alignment. Using pairs of preferred and dispreferred data, DPO models the relative probability of picking one response over another. In this work, first we show theoretically that the standard DPO loss can lead to a reduction of the model's likelihood of the preferred examples, as long as the relative probability between the preferred and dispreferred classes increases. We then show empirically that this phenomenon occurs when fine-tuning LLMs on common datasets, especially datasets in which the edit distance between pairs of completions is low. Using these insights, we design DPO-Positive (DPOP), a new loss function and training procedure which avoids this failure mode. Surprisingly, we find that DPOP outperforms DPO and other fine-tuning procedures across a wide variety of datasets and downstream tasks, including datasets with high edit distances between completions. Furthermore, we find that the DPOP-tuned model outperforms the DPO-tuned model (all else equal) on benchmarks independent of the fine-tuning data, such as MT-Bench. Finally, using DPOP, we create and open-source Smaug-34B and Smaug-72B, with the latter becoming the first open-source LLM to surpass an average accuracy of 80% on the HuggingFace Open LLM Leaderboard.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。