HackFree-GRPO: Detecting and Mitigating Reward Hacking in RLVR- Trained Code Agents
Its authors withdrew this paper, so there is no full text to read or summarize.
Abstract
Reinforcement learning with verifiable rewards can reward code agents for passing tests without resolving the underlying issue. We study this failure mode in repository-level, multi-turn training and introduce HackFree-GRPO. Its frozen detector scores actions, patch diffs, and execution logs. Reward shaping discounts risky successes, and trajectory filtering removes high-risk samples before group-relative advantages are computed. Shaping alone can leave an exploit positively advantaged in a low-success group; after filtering, score differences can still distinguish risky survivors. On SWE-bench Verified, FULL reduces protocol-defined hacking from 41.7% to 5.8% and raises strict-audit pass@1 from 30.5% to 49.0%, while verifier acceptance is 52.0% versus 52.3%. Adversarial-test-only pass@1 increases from 31.2% to 49.9%, exceeding SHAPE by 2.5 percentage points. We derive the exact change in retained-group advantages and identify the conditions under which filtering removes residual positive reinforcement. The analysis specifies a group-level mechanism that can be tested alongside the observed task-level gains.
BibTeX
@misc{li2027hackfree,
author = {Yuanhao Li and Xuhong Chen and Xiaotang Shang and Yiming Cao and Wei Tan and Tianqi Zhu and Xunzhu Tang},
title = {{HackFree-GRPO: Detecting and Mitigating Reward Hacking in RLVR- Trained Code Agents}},
year = {2027},
url = {https://openreview.net/forum?id=IplYh5Agup},
howpublished = {OpenReview},
note = {Submitted to ICLR 2027},
}Ask Althea to put this paper to the test.
Loading related content...