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

相关代理奖励:奖励黑客行为的新定义与改进缓解方法

Correlated Proxies: A New Definition and Improved Mitigation for Reward Hacking

University of California, Berkeley(加州大学伯克利分校)

Cassidy Laidlaw, Shivam Singhal, Anca Dragan

AI总结:

本文基于参考策略下代理与真实奖励相关性的失效定义奖励黑客,理论提出并实验验证对策略占用度量的 $χ^2$ 散度正则化比 KL 惩罚更能缓解 RLHF 等场景中的奖励黑客。

摘要:

由于难以精确指定复杂目标,强化学习策略通常使用仅近似真实目标的代理奖励函数进行优化。然而,优化代理奖励往往会导致奖励黑客行为:被优化的奖励函数不再是良好的代理,所得策略在未明确指定的真实奖励方面表现很差。由于缺乏对该问题的良好定义,奖励黑客行为的原则性解决方案一直受到阻碍。为弥补这一空白,我们基于“参考策略”所见到的状态和动作上代理奖励与真实奖励之间的相关性提出了一种奖励黑客定义,这种相关性会在优化过程中破裂。我们表明,该定义能够刻画包括基于人类反馈的强化学习(RLHF)在内的若干现实场景中的奖励黑客行为。利用我们的形式化表述,我们从理论上证明,对参考策略进行正则化可以有效防止奖励黑客行为。虽然 RLHF 中的当前实践为此目的在动作分布之间施加 KL 惩罚,但我们的理论表明,对策略占用度量之间的 $χ^2$ 散度进行正则化可能更有效。我们直观展示了这种正则化的优势,并证明其在包括 RLHF 在内的四个现实场景中实践上能更好地缓解奖励黑客行为。我们的代码可在 https://github.com/cassidylaidlaw/orpo 获取。

英文摘要:

Because it is difficult to precisely specify complex objectives, reinforcement learning policies are often optimized using proxy reward functions that only approximate the true goal. However, optimizing proxy rewards frequently leads to reward hacking: the optimized reward function ceases to be a good proxy and the resulting policy performs poorly with respect to the unspecified true reward. Principled solutions to reward hacking have been impeded by the lack of a good definition for the problem. To address this gap, we introduce a definition of reward hacking based on the correlation between proxy and true rewards for states and actions seen by a "reference policy" that breaks down under optimization. We show that this definition captures reward hacking behavior across several realistic settings, including in reinforcement learning from human feedback (RLHF). Using our formulation, we show theoretically that regularization to the reference policy can effectively prevent reward hacking. While the current practice in RLHF applies a KL penalty between action distributions for this purpose, our theory suggests regularizing the $χ^2$ divergence between the policies' occupancy measures can be more effective. We intuitively show the benefits of this type of regularization and demonstrate that it better mitigates reward hacking in practice across four realistic settings, including RLHF. Our code is available at https://github.com/cassidylaidlaw/orpo.

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

↑