arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2610.28707cs.LG
收藏

SimHack:在强化学习训练前预测可检测奖励黑客行为的发生

SimHack: Predicting the onset of detectable reward hacking before RL training

University of Illinois Urbana-Champaign(伊利诺伊大学厄巴纳-香槟分校);Google Research(谷歌研究院)

Junwei Deng, Alex Bie, Natalia Ponomareva

AI总结:

SimHack是一种模拟器,可在强化学习训练前预测奖励黑客行为的发生,通过参考小规模运行学习动态,无需重训练即可预测,能筛选低风险课程,使训练无黑客时长延长96.6%。

摘要:

在用强化学习训练大型语言模型(LLM)进行代码生成时,奖励黑客行为通常可被检测但难以预防,原因在于:(a)随着训练环境日益复杂,环境加固难度不断增大;(b)训练时的干预措施会激励模型混淆黑客行为以规避检测。本文转而研究能否在执行强化学习(RL)运行前预测可检测奖励黑客行为何时占据主导,从而提前选择低风险的训练方案。研究发现,仅初始黑客率无法决定发生时间,该时间在不同训练方案及重复运行中差异显著。因此,本文将此问题转化为预测目标训练方案下奖励黑客行为发生步骤的分布。本文提出SimHack,这是一种模拟器,可从少量小规模参考强化学习运行中学习奖励黑客训练动态,并生成未见目标方案的反事实模拟运行,无需昂贵的重新训练。在未见目标方案中,SimHack预测中位发生时间的相对误差为11.3%,跨方案秩相关系数达0.85,且能泛化到参考与目标方案间模型规模、课程、rollout次数及学习率的差异。作为应用,本文展示SimHack可通过筛选候选强化学习课程指导训练决策,发现相同场景集下的课程在无黑客的情况下训练时长可延长96.6%。

英文摘要:

When training LLMs to code with reinforcement learning, reward hacking is often detectable but difficult to prevent, since (a) environment hardening is increasingly difficult as training environments grow more complex; and (b) training-time interventions incentivize models to obfuscate hacking behavior to bypass detection. We instead study whether we can predict when detectable reward hacking becomes dominant before executing an RL run, enabling us to select lower-risk recipes in advance. We find that the initial hacking rate alone does not determine onset, which varies substantially across training recipes and repeated runs. We thus formulate this problem as predicting the distribution of the reward hacking onset step under a target training recipe. We introduce SimHack, a simulator that learns reward hacking training dynamics from a handful of smaller-scale reference RL runs and generates counterfactual simulation runs of unseen target recipes without costly retraining. Across unseen target recipes, SimHack predicts the median onset to a relative error of 11.3% and achieves across-recipe rank correlation of 0.85, while generalizing to differences in model scale, curriculum, number of rollouts, and learning rate between reference and target recipes. As an application, we show that SimHack can guide training decisions by screening candidate RL curricula, discovering curricula over the same set of scenarios that train for 96.6% longer without hacking.

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

↑