解析偏好优化的内在机制,揭示DPO与PPO的本质差异。
What Is Preference Optimization Doing, and Why?
- 通过梯度方向分析,发现DPO目标稳定,PPO兼顾探索与利用。
- 揭示正负学习与损失重加权在不同方法中的角色差异。
- 为构建更对齐的大型语言模型提供理论支持与设计启示。
偏好优化(PO)对大语言模型至关重要,如直接偏好优化(DPO)和近端策略优化(PPO)已取得显著成功。尽管普遍认为DPO属于监督学习、PPO属于强化学习,但其深层机制仍缺乏深入分析。本文从优化动态角度出发,揭示两类方法的算法行为差异。首先,梯度更新的目标方向显示:DPO遵循稳定目标,而PPO在探索与利用间权衡。其次,正向学习、负向学习与损失重加权三者在PO中作用各异:在DPO中,正负学习共同塑造目标,损失重加权主要起正则化作用以缓解过拟合;在PPO中,负向学习主要用于支持探索而非决定目标,损失重加权则与绝对优势相关,体现不同词元组在目标更新中的差异化贡献。通过精心设计的消融实验,验证了这些动态对优化效率与实际性能的影响。研究深化了对偏好优化方法的理解,并为开发更优对齐的大语言模型提供了新思路。
原文摘要 · Abstract (English)
Preference optimization (PO) is indispensable for large language models (LLMs), with methods such as direct preference optimization (DPO) and proximal policy optimization (PPO) achieving great success. A common belief is that DPO is supervised learning while PPO is reinforcement learning, yet deeper analyses for the reasons underlying these differences remain lacking. To fill this gap, we analyze their optimization dynamics, revealing distinct algorithmic behaviors and comprehending their underlying causes. First, we examine the target directions of gradient-based updates and find that DPO follows stable targets, whereas PPO balances exploration and exploitation, validating the common belief yet from this new perspective. Second, we examine the roles of positive learning, negative learning, and loss reweighting, which are three key yet seldom discussed components within PO methods. Our analyses reveal that these components play fairly different roles. In DPO, positive and negative learning jointly shape the targets. However, loss reweighting in DPO acts less as a reward signal but more as a regularizer to mitigate overfitting. In PPO, negative learning primarily supports exploration rather than determining the targets. Meanwhile, loss reweighting, related to the absolute advantages, indicates the distinct roles of token groups in updating targets. Given these findings, we conduct carefully designed ablation studies to further examine how controlling these dynamics impacts optimization efficiency and practical performance. The insights gained from our analyses not only deepen the understanding of PO methods but also inspire the development of more preference-aligned LLMs.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。