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

审计代码强化学习训练环境中的奖励可破解性

Auditing Reward Hackability in Code RL Training Environments

Shreshth Rajan

AI总结:

测量代码RL环境接受错误解决方案的比率,发现SWE-bench Verified中28.5%的任务测试套件薄弱,并提出通过LLM判断器和Docker金标准门控来加固漏洞任务的方法。

摘要:

我们测量了代码强化学习环境将错误解决方案视为正确的比率。在SWE-bench Verified的49个任务样本中,28.5%的任务测试套件足够薄弱,以至于Docker验证的错误补丁能通过它们。在6个代码库的20个R2E-Gym任务上,相同的单次利用生成管道产生25.0%的成功率。对SWE-bench Verified上134个前沿模型提交的随机效应荟萃分析发现,在相同人工评定的难度层级内,模型Pass@1在标记为可破解的任务上比稳健任务高14.14个百分点(95%置信区间[+11.80, +16.48];单侧p < 10^-6;I^2 = 0%;134个模型中有123个为正)。然后我们描述了一个加固被破坏任务的流程。一个内联LLM判断器配合Docker金标准门控,在咨询判断器之前对每个生成的测试针对金标准解决方案运行。在审计中的11个被破坏任务上,门控标记出105个决定性的LLM生成测试中的65个在金标准补丁上失败,这是LLM判断器单独遗漏的61.9%的每次增强缺陷率。通过多样性偏置重试,该循环将11个任务中的9个收敛到门控升级。

英文摘要:

Code RL rewards a policy for passing a task's tests, so a test suite that accepts a wrong patch trains the wrong behavior. We measure how often open code RL environments accept wrong patches and how reliably hackable tasks can be detected and repaired, checking each claim by execution against the task's gold patch. First, 22.4% of 49 SWE-bench Verified tasks accept a Docker-verified patch that behaves differently from the gold patch, and 57.8% against a stronger attacker. The gold-patch check is necessary: an attacker not shown the gold patch returns it for 31% of its passing "exploits". Second, across 134 public SWE-bench submissions, models pass hackable tasks 28.6 pp more often than tasks of the same difficulty, mostly because those tasks are passable at all; pooled over three attacker runs, hackable tasks still exceed matched passable ones (p=0.014). Third, repair is harder to verify than detection: 61.9% of LLM-written repair tests fail on the gold patch, and even behind a gate an LLM judge is wrong on 38% of the verdicts execution can check. Finally, of 873 training trajectories behind an open coding agent run beside the gold fix, 19.4% answer differently on a case the issue describes; an LLM review that can only demote these executed differences judges 6.9% to be wrong fixes the tests rewarded (6.4-10.5% across three model reviews), and 5.4% in a second public training set (R2E-Gym). End to end, the gated repair yields verified tests for 290 of 324 wrong fixes in that agent's data and all 9 in 384 rewarded Open-SWE-Traces rollouts (2.3%). One-shot attacks hack 23 of 100 SWE-bench Pro V2 and 9 of 112 DeepSWE tasks; 12 of 1,344 passing DeepSWE leaderboard patches are model-judged wrong. Science graders mostly hold: an agentic red team passes 0 of 61 Terminal-Bench-Science tasks. Audits and repairs of code RL environments should be decided by execution wherever execution can decide.

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

↑