通过下采样KL散度消除直接偏好优化的有偏长度依赖
Eliminating Biased Length Reliance of Direct Preference Optimization via Down-Sampled KL Divergence
AI总结:
本研究针对直接偏好优化(DPO)因序列级KL散度差异产生的固有长度依赖及冗长性问题,提出下采样方法SamPO,在多规模模型和多基准上实现了较DPO 5%-12%的性能提升。
摘要:
直接偏好优化(Direct Preference Optimization, DPO)已成为实现大语言模型(Large Language Models, LLMs)与人类偏好直接且稳健对齐的主流算法,为复杂的人类反馈强化学习(Reinforcement Learning from Human Feedback, RLHF)提供了更简洁的替代方案。尽管DPO效果可观,但它存在一个显著缺陷:“冗长性”,这也是RLHF中常见的过优化现象。既往研究主要将冗长性归因于数据中的有偏标签,而我们提出该问题还源于DPO固有的算法层面长度依赖。具体而言,我们认为DPO中使用的选中序列与拒绝序列之间的序列级库尔贝克-莱布勒(Kullback-Leibler, KL)散度的差异,会因token长度不同导致奖励被高估或低估。在实证方面,我们利用标签长度不同的数据集证明了有偏奖励的存在。随后我们提出了一种名为SamPO的有效下采样方法,以消除潜在的长度依赖。我们在3个不同规模的LLM以及各类条件式和开放式基准上开展了实验评估,结果凸显了SamPO缓解冗长性的效果,通过去偏奖励,其性能较DPO提升了5%至12%。我们的代码可通过以下链接获取:https://github.com/LuJunru/SamPO/。
英文摘要:
Direct Preference Optimization (DPO) has emerged as a prominent algorithm for the direct and robust alignment of Large Language Models (LLMs) with human preferences, offering a more straightforward alternative to the complex Reinforcement Learning from Human Feedback (RLHF). Despite its promising efficacy, DPO faces a notable drawback: "verbosity", a common over-optimization phenomenon also observed in RLHF. While previous studies mainly attributed verbosity to biased labels within the data, we propose that the issue also stems from an inherent algorithmic length reliance in DPO. Specifically, we suggest that the discrepancy between sequence-level Kullback-Leibler (KL) divergences between chosen and rejected sequences, used in DPO, results in overestimated or underestimated rewards due to varying token lengths. Empirically, we utilize datasets with different label lengths to demonstrate the presence of biased rewards. We then introduce an effective downsampling approach, named SamPO, to eliminate potential length reliance. Our experimental evaluations, conducted across three LLMs of varying scales and a diverse array of conditional and open-ended benchmarks, highlight the efficacy of SamPO in mitigating verbosity, achieving improvements of 5% to 12% over DPO through debaised rewards. Our codes can be accessed at: https://github.com/LuJunru/SamPO/.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。