arXiv:2410.06293cs.LGcs.AI2024-10被引 6

用加速梯度法让大模型对齐更快更稳

Accelerated Preference Optimization for Large Language Model Alignment

  • 将偏好优化视为近点算法,引入奈斯特动量加速收敛
  • 在AlpacaEval 2.0上比DPO快30%以上,收敛更快
  • 适合追求高效对齐的大模型训练者使用

基于人类反馈的强化学习(RLHF)是使大语言模型对齐人类偏好的关键方法。直接偏好优化(DPO)将RLHF建模为无需显式估计奖励函数的策略优化问题,克服了两阶段方法中奖励估计与策略优化分离带来的稳定性与效率问题。由于RLHF本质上是一个优化问题,而动量技术在理论上和实践中均能加速优化过程,因此一个自然的问题是:能否通过动量加速RLHF?本文给出了肯定回答。我们首先表明,迭代偏好优化可被视作一种近点方法,据此提出通用的加速偏好优化(APO)框架,统一了多种现有算法,并采用奈斯特动量技术加速大模型对齐。理论上,证明了APO相比标准迭代偏好优化方法(包括DPO和自对弈偏好优化SPPO)具有更快的收敛速率。实验上,APO在AlpacaEval 2.0基准上显著优于DPO、迭代DPO及其他强基线。

原文摘要 · Abstract (English)

Reinforcement Learning from Human Feedback (RLHF) has emerged as a pivotal tool for aligning large language models (LLMs) with human preferences. Direct Preference Optimization (DPO), one of the most popular approaches, formulates RLHF as a policy optimization problem without explicitly estimating the reward function. It overcomes the stability and efficiency issues of two-step approaches, which typically involve first estimating the reward function and then optimizing the policy via proximal policy optimization (PPO). Since RLHF is essentially an optimization problem, and it is well-known that momentum techniques can accelerate optimization both theoretically and empirically, a natural question arises: Can RLHF be accelerated by momentum? This paper answers this question in the affirmative. In detail, we first show that the iterative preference optimization method can be viewed as a proximal point method. Based on this observation, we propose a general Accelerated Preference Optimization (APO) framework, which unifies many existing preference optimization algorithms and employs Nesterov's momentum technique to speed up the alignment of LLMs. Theoretically, we demonstrate that APO can achieve a faster convergence rate than the standard iterative preference optimization methods, including DPO and Self-Play Preference Optimization (SPPO). Empirically, we show the superiority of APO over DPO, iterative DPO, and other strong baselines for RLHF on the AlpacaEval 2.0 benchmark.

大模型对齐偏好优化加速优化动量方法

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。