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

采样器在在线直接偏好优化中的关键作用

The Crucial Role of Samplers in Online Direct Preference Optimization

IIIS, Tsinghua University(清华大学交叉信息研究院);University of Washington(华盛顿大学)

Ruizhe Shi, Runlong Zhou, Simon S. Du

AI总结:

本文严格分析了不同采样策略对DPO收敛速度的影响,提出在线采样器实现二次收敛,并通过结合后验分布和logit混合在实际设置中改进性能,在Safe-RLHF数据集上比原始DPO高出7.4%以上。

摘要:

直接偏好优化(DPO)已成为一种用于语言模型对齐的稳定、可扩展且高效的解决方案。尽管其取得了实证成功,但关于其优化特性,尤其是采样器对收敛速度的影响,仍未得到充分探索。本文在精确梯度设置下,对不同采样策略下DPO的收敛速度进行了严格分析,揭示了一个令人惊讶的差异:均匀采样实现线性收敛,而我们提出的在线采样器实现二次收敛。我们进一步通过结合后验分布和logit混合,使采样器适应实际设置,展示了对先前方法的改进。例如,在Safe-RLHF数据集上,它比原始DPO高出超过7.4%。我们的结果不仅为DPO的理论理解提供了见解,也为进一步的算法设计铺平了道路。

英文摘要:

Direct Preference Optimization (DPO) has emerged as a stable, scalable, and efficient solution for language model alignment. Despite its empirical success, the optimization properties, particularly the impact of samplers on its convergence rates, remain under-explored. In this paper, we provide a rigorous analysis of DPO's convergence rates with different sampling strategies under the exact gradient setting, revealing a surprising separation: uniform sampling achieves $\textbf{linear}$ convergence, while our proposed online sampler achieves $\textbf{quadratic}$ convergence. We further adapt the sampler to practical settings by incorporating posterior distributions and logit mixing, demonstrating improvements over previous methods. For example, it outperforms vanilla DPO by over $7.4$% on Safe-RLHF dataset. Our results not only offer insights into the theoretical understanding of DPO but also pave the way for further algorithm designs.

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

↑