arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2409.17401cs.LGstat.ML
收藏

无需奖励推断的人类反馈强化学习零阶策略梯度

Zeroth-Order Policy Gradient for Reinforcement Learning from Human Feedback without Reward Inference

University of Michigan(密歇根大学)

Qining Zhang, Lei Ying

AI总结:

针对一般RL问题,提出两种无需奖励推断的RLHF算法,通过零阶梯度近似策略梯度,在随机环境中优于DPO和PPO基线。

摘要:

奖励推断(从人类偏好中学习奖励模型)是微调大型语言模型(LLMs)的人类反馈强化学习(RLHF)流程中的关键中间步骤。在实践中,RLHF面临着分布偏移、奖励模型过拟合和问题错误规范等根本性挑战。一种替代方法是无需奖励推断的直接策略优化,例如直接偏好优化(DPO),它提供了更简单的流程,并在LLM应用中取得了实证成功。然而,DPO利用了最优策略与奖励函数之间的闭式表达式,这仅在赌博机设定或确定性MDPs下适用。本文针对超越赌博机和确定性MDPs的一般RL问题,以及超越Bradley-Terry模型的一般偏好模型,开发了两种无需奖励推断的RLHF算法。其核心思想是从人类偏好中估计局部价值函数差异,然后使用零阶梯度近似器来近似策略梯度。对于这两种算法,我们建立了关于策略梯度迭代次数、每次迭代的轨迹样本数和人类偏好查询数的多项式收敛速率。在随机环境中的数值实验验证了我们提出的算法的性能,优于DPO和PPO等流行的RLHF基线方法。我们的论文表明,存在可证明有效的方法来解决无需奖励推断的一般RLHF问题。

英文摘要:

Reward inference (learning a reward model from human preferences) is a critical intermediate step in the Reinforcement Learning from Human Feedback (RLHF) pipeline for fine-tuning Large Language Models (LLMs). In practice, RLHF faces fundamental challenges such as distribution shift, reward model overfitting, and problem misspecification. An alternative approach is direct policy optimization without reward inference, such as Direct Preference Optimization (DPO), which provides a much simpler pipeline and has shown empirical success in LLM applications. However, DPO utilizes the closed-form expression between the optimal policy and the reward function, which is only suitable under the bandit setting or deterministic MDPs. This paper develops two RLHF algorithms without reward inference for general RL problems beyond bandits and deterministic MDPs, and general preference models beyond the Bradley-Terry model. The key idea is to estimate the local value function difference from human preferences and then approximate the policy gradient with a zeroth-order gradient approximator. For both algorithms, we establish polynomial convergence rates in terms of the number of policy gradient iterations, the number of trajectory samples, and human preference queries per iteration. Numerical experiments in stochastic environments validate the performance of our proposed algorithms, outperforming popular RLHF baselines such as DPO and PPO. Our paper shows there exist provably efficient methods to solve general RLHF problems without reward inference.

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

↑