What Goes Wrong.
The reward rises. Check what it is rewarding.
Agents trained with RL find whatever earns reward, and agent environments offer many unintended routes: tests that can be edited, timers that can be patched, graders that check the form of an answer but not its truth. METR reported in June 2025 that a frontier model reward-hacked in 39 of 128 runs on one benchmark’s research tasks — for example by overwriting the grader’s timing function. These are not exotic failures; they are what optimisation does to an imperfect reward. Vol. XXVII is about building environments that resist them; this plate shows one happen.
The tool world of this part: the character model of Vol. XVII, pre-trained only on single-digit worksheets, is fine-tuned in the page to call a calculator — it writes “B23+45|”, the environment appends the result “68|”, and the model answers “68|”. Here the grader is lazy: it checks that the final answer repeats the last calculator result. A correct episode passes, but so does any episode whose calls are wrong and whose answer copies the wrong result. The workshop starts from an agent fine-tuned for 100 steps (often wrong in its calls) and runs GRPO with this grader or with the exact one.
Below: during training, the reward the grader gives and the true success of the same sampled episodes; readouts give both at the end and held-out success.
- Define reward hacking in agent RL.
- Watch a lazy grader be exploited.
- Separate reward from true success.
- Name common hacks in real environments.
Reward is not success
Under the lazy grader the sampled episodes earn 93% reward by the end of training while only 14% are truly correct; held-out success ends at 10%. The agent has learned to make its answer agree with its last calculator result, which is all the grader checks, and has no reason to get the calls right. Under the exact grader the same start reaches 31% reward — reward and success are the same number — and 27% held-out. Watching only the training reward, the lazy run looks like the better one.
Real agent environments fail the same way at larger scale: tests the agent can modify or skip, checks that a file exists rather than that it is right, graders that parse an answer leniently, evaluators that can be imported and patched. The defences are the subject of Vol. XXVII: grade the outcome that matters, keep the grader and its tests out of the agent’s reach, check with tests the agent cannot see, and monitor a sample of trajectories by reading them, because a rising reward is not evidence of a rising skill.
Terms
- Reward hacking
- Earning reward by a route the designer did not intend.
- Lazy grader
- A check of an answer’s form or consistency rather than its truth.
- True success
- Whether the task was actually done.
- Trajectory monitoring
- Reading samples of episodes to see what is being rewarded.
Sources
- METR, “Recent Frontier Models Are Reward Hacking”, 5 June 2025.
- Krakovna et al., “Specification gaming: the flip side of AI ingenuity”, DeepMind blog, 2020.
- Baker et al., “Monitoring Reasoning Models for Misbehavior and the Risks of Promoting Obfuscation”, arXiv:2503.11926, 2025.