arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2406.07455cs.LGstat.ML
收藏

从人类反馈中进行强化学习而不进行奖励推断:无模型算法与实例相关分析

Reinforcement Learning from Human Feedback without Reward Inference: Model-Free Algorithm and Instance-Dependent Analysis

University of Michigan(密歇根大学);Washington State University(华盛顿州立大学)

Qining Zhang, Honghao Wei, Lei Ying

AI总结:

本文提出无模型RLHF算法BSAD,直接基于人类偏好识别最优策略,无需奖励推断,实现实例相关的样本复杂度,并证明RLHF不比经典RL更难,且端到端方法可避免奖励推断的陷阱。

摘要:

在本文中,我们研究了在 episodic 马尔可夫决策过程下,针对一般轨迹级奖励模型的从人类反馈中进行强化学习(RLHF)。我们开发了一种无模型的 RLHF 最优策略识别算法,称为 $\mathsf{BSAD}$,无需显式的奖励模型推断,而奖励模型推断是当前训练大型语言模型(LLM)的 RLHF 范式中的关键中间步骤。该算法以反向方式直接从人类偏好信息中识别最优策略,采用一种决斗式 bandit 子程序,该子程序不断对决动作以识别更优者。$\mathsf{BSAD}$ 采用无奖励探索和类似最优臂识别的自适应停止准则,以均衡同一决策步骤中所有状态的访问次数,同时一旦最优动作可识别,就立即移动到前一步骤,从而产生可证明的、实例相关的样本复杂度 $\tilde{\mathcal{O}}(c_{\mathcal{M}}SA^3H^3M\log\frac{1}{\delta})$,这类似于经典 RL 中的结果,其中 $c_{\mathcal{M}}$ 是实例相关常数,$M$ 是批量大小。此外,$\mathsf{BSAD}$ 可以转换为具有对数遗憾的探索后提交算法,并使用基于框架的方法推广到折扣 MDP。我们的结果表明:(i)在样本复杂度方面,RLHF 并不比经典 RL 困难得多;(ii)端到端 RLHF 可以通过避免奖励推断中的陷阱(如过拟合和分布偏移)来提供改进的性能。

英文摘要:

In this paper, we study reinforcement learning from human feedback (RLHF) under an episodic Markov decision process with a general trajectory-wise reward model. We developed a model-free RLHF best policy identification algorithm, called $\mathsf{BSAD}$, without explicit reward model inference, which is a critical intermediate step in the contemporary RLHF paradigms for training large language models (LLM). The algorithm identifies the optimal policy directly from human preference information in a backward manner, employing a dueling bandit sub-routine that constantly duels actions to identify the superior one. $\mathsf{BSAD}$ adopts a reward-free exploration and best-arm-identification-like adaptive stopping criteria to equalize the visitation among all states in the same decision step while moving to the previous step as soon as the optimal action is identifiable, leading to a provable, instance-dependent sample complexity $\tilde{\mathcal{O}}(c_{\mathcal{M}}SA^3H^3M\log\frac{1}δ)$ which resembles the result in classic RL, where $c_{\mathcal{M}}$ is the instance-dependent constant and $M$ is the batch size. Moreover, $\mathsf{BSAD}$ can be transformed into an explore-then-commit algorithm with logarithmic regret and generalized to discounted MDPs using a frame-based approach. Our results show: (i) sample-complexity-wise, RLHF is not significantly harder than classic RL and (ii) end-to-end RLHF may deliver improved performance by avoiding pitfalls in reward inferring such as overfit and distribution shift.

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

↑