解决大模型对齐中选中回复质量下降的问题
BPO: Revisiting Preference Modeling in Direct Preference Optimization
- 通过动态平衡选中与拒绝回复优化,改进偏好建模
- 在数学推理任务上准确率提升超10%,最高达46.7%
- 仅需一行代码修改,兼容现有DPO框架
直接偏好优化(DPO)已成为对齐大语言模型与人类偏好的流行方法。尽管DPO通过成对排序损失有效保持了选中与拒绝回复的相对顺序,但常忽略绝对奖励大小,导致选中回复概率下降及分布外生成风险上升,造成性能下降。我们称此为选中回复质量退化(DCR)。为此,提出平衡偏好优化(BPO),通过平衡奖励间距与间隙自适应两个核心组件,动态调节选中与拒绝回复的优化。BPO从根本上解决DPO的DCR问题,且无需额外损失约束。在多个数学推理任务上的实验表明,使用Llama-3.1-8B-Instruct时,准确率从18.8%提升至28.9%(+10.1%),Qwen2.5-Math-7B从35.0%提升至46.7%(+11.7%)。相较IPO、SLiC、Cal-DPO等变体,分别提升+3.6%、+5.0%、+3.1%。算法仅需单行代码修改,实现简单且完全兼容现有DPO框架。
原文摘要 · Abstract (English)
Direct Preference Optimization (DPO) have emerged as a popular method for aligning Large Language Models (LLMs) with human preferences. While DPO effectively preserves the relative ordering between chosen and rejected responses through pairwise ranking losses, it often neglects absolute reward magnitudes. This oversight can decrease the likelihood of chosen responses and increase the risk of generating out-of-distribution responses, leading to poor performance. We term this issue Degraded Chosen Responses (DCR).To address this issue, we propose Balanced Preference Optimization (BPO), a novel framework that dynamically balances the optimization of chosen and rejected responses through two key components: balanced reward margin and gap adaptor. Unlike previous methods, BPO can fundamentally resolve DPO's DCR issue, without introducing additional constraints to the loss function. Experimental results on multiple mathematical reasoning tasks show that BPO significantly outperforms DPO, improving accuracy by +10.1% with Llama-3.1-8B-Instruct (18.8% to 28.9%) and +11.7% with Qwen2.5-Math-7B (35.0% to 46.7%). It also surpasses DPO variants by +3.6% over IPO (43.1%), +5.0% over SLiC (41.7%), and +3.1% over Cal-DPO (43.6%) on the same model. Remarkably, our algorithm requires only a single line of code modification, making it simple to implement and fully compatible with existing DPO-based frameworks.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。