arXiv 论文审计代码 RL 训练环境的奖励漏洞率,SWE-bench Verified 22.4% 任务可接受错误补丁
Auditing Reward Hackability in Code RL Training Environments
AI 导读
arXiv 论文测量开放代码 RL 环境接受错误补丁的频率,发现 49 个 SWE-bench Verified 任务中 22.4% 接受与 gold patch 行为不同的 Docker 验证补丁,对更强攻击者该比例为 57.8%。
正文 · 原文
Abstract: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). Audits and repairs of code RL environments should be decided by execution wherever execution can decide.
| Comments: | 15 pages, 2 figures, 8 tables. v2: every claim re-checked by execution against the gold patch; SWE-bench Verified hackability corrected from 28.6% to 22.4%; adds audits of two public SWE training sets (SWE-smith, R2E-Gym) |
| Subjects: | Artificial Intelligence (cs.AI); Machine Learning (cs.LG) |
| Cite as: | arXiv:2606.16062 [cs.AI] |
| (or arXiv:2606.16062v2 [cs.AI] for this version) | |
| https://doi.org/10.48550/arXiv.2606.16062 arXiv-issued DOI via DataCite |
Submission history
From: Shreshth Rajan [view email]
[v1]
Sun, 14 Jun 2026 23:31:42 UTC (79 KB)
[v2]
Thu, 19 Nov 2026 19:48:55 UTC (67 KB)
来源:arXiv cs.AI · arxiv.org