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

RLHF中的能量损失现象:缓解奖励黑客问题的新视角

The Energy Loss Phenomenon in RLHF: A New Perspective on Mitigating Reward Hacking

Wuhan University(武汉大学);ByteDance(字节跳动);Nanyang Technological University(南洋理工大学)

Yuchun Miao, Sen Zhang, Liang Ding, Yuqi Zhang, Lefei Zhang, Dacheng Tao

AI总结:

本文发现RLHF中LLM最后一层能量损失增大与奖励黑客相关,提出能量损失感知的EPPO算法以抑制该现象,并通过理论分析和多任务实验验证其有效性。

摘要:

本工作识别了基于人类反馈的强化学习(RLHF)中的能量损失现象及其与奖励黑客问题的关联。具体而言,在大语言模型(LLM)的最后一层中,能量损失在强化学习过程中逐渐增大,而能量损失的过度增大是奖励黑客问题的特征表现。除实证分析外,我们进一步提供了理论基础,证明在温和条件下,增大的能量损失会降低LLM中上下文相关性的上界,这是奖励黑客问题的一个关键方面,因为上下文相关性降低通常表明模型在强化学习中过度拟合了奖励模型偏好的模式。为解决该问题,我们提出了一种能量损失感知的PPO算法(EPPO),该算法在奖励计算过程中对LLM最后一层能量损失的增加施加惩罚,以防止能量损失过度增大,从而缓解奖励黑客问题。我们从理论上证明,EPPO在概念上可被解释为一种熵正则化的强化学习算法,这为其有效性提供了更深入的理解。在多种LLM和任务上的大量实验证明了能量损失现象的普遍性,以及EPPO在缓解奖励黑客问题和提升RLHF性能方面的有效性。

英文摘要:

This work identifies the Energy Loss Phenomenon in Reinforcement Learning from Human Feedback (RLHF) and its connection to reward hacking. Specifically, energy loss in the final layer of a Large Language Model (LLM) gradually increases during the RL process, with an excessive increase in energy loss characterizing reward hacking. Beyond empirical analysis, we further provide a theoretical foundation by proving that, under mild conditions, the increased energy loss reduces the upper bound of contextual relevance in LLMs, which is a critical aspect of reward hacking as the reduced contextual relevance typically indicates overfitting to reward model-favored patterns in RL. To address this issue, we propose an Energy loss-aware PPO algorithm (EPPO) which penalizes the increase in energy loss in the LLM's final layer during reward calculation to prevent excessive energy loss, thereby mitigating reward hacking. We theoretically show that EPPO can be conceptually interpreted as an entropy-regularized RL algorithm, which provides deeper insights into its effectiveness. Extensive experiments across various LLMs and tasks demonstrate the commonality of the energy loss phenomenon, as well as the effectiveness of EPPO in mitigating reward hacking and improving RLHF performance.

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

↑