梯度路由可定位并移除强化学习中的非预期行为
Gradient Routing Localizes and Removes Unintended Behaviors in RL
AI总结:
本研究针对强化学习中奖励黑客行为,提出GRAFT方法,通过将梯度更新约束到牺牲参数来避免模型隐藏不当行为,可移除非预期行为并保持目标任务性能,在多规模模型及大语言模型蒸馏中均有效。
摘要:
我们提出了一种缓解强化学习中奖励黑客行为的方法。我们的设置包含一个错误指定的奖励函数,该函数会引发非预期行为,以及一个用于检测非预期行为的监控器。与前沿AI系统一样,该监控器会产生系统性误差。因此,使用该监控器进行数据过滤或应用奖励惩罚无法阻止模型学习非预期行为(即“奖励黑客行为”)。为解决此问题,我们引入了GRAFT:梯度路由适配器微调(Gradient Routing Adapter Fine Tuning)。GRAFT不会在训练期间对标记样本进行惩罚或过滤,而是将这些样本的梯度更新约束到一组新的牺牲参数上。这有两个好处:第一,由于监控器不属于奖励函数的一部分,模型不会学会隐藏不当行为;第二,移除牺牲参数可减少或完全停止非预期行为,同时保持目标任务上的性能提升。我们在强化学习环境中展示了这些好处,在这些环境中,奖励惩罚会导致模型以未被检测到的方式学习奖励黑客行为,训练的模型规模从1.35亿到80亿参数不等。此外,我们通过将包含奖励黑客行为的前沿大语言模型(LLM)轨迹蒸馏到Qwen3-32B中,在更大规模上展示了类似效果,且未让该模型学会奖励黑客行为。总体而言,我们的工作表明,在难以评估真实性能的场景中,GRAFT可能是利用不完善监控器进行后训练的一种有前景的方法。
英文摘要:
We propose a mitigation to reward hacking in reinforcement learning. Our setup involves a misspecified reward function that gives rise to unintended behavior, and a monitor used to detect unintended behavior. As with frontier AI systems, the monitor makes systematic errors. Consequently, using the monitor for data filtering or to apply a reward penalty fails to prevent the model from learning unintended behavior ("reward hacking"). To address this problem, we introduce GRAFT: Gradient Routing Adapter Fine Tuning. Rather than penalizing or filtering flagged samples during training, GRAFT constrains gradient updates on those samples to a sacrificial set of new parameters. This has two benefits: First, because the monitor is not part of the reward function, the model does not learn to hide misbehavior. Second, ablating the sacrificial parameters reduces or entirely stops the unintended behavior while maintaining improved performance on target tasks. We demonstrate these benefits in RL environments where reward penalties cause models to learn to reward hack in undetected ways, training models ranging from 135M to 8B parameters. Additionally, we show a similar effect at a larger scale by distilling frontier LLM trajectories containing reward hacking into Qwen3-32B, without teaching that model to reward hack. Overall, our work suggests GRAFT may be a promising approach for leveraging imperfect monitors during post-training in settings where true performance is difficult to evaluate.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。