Vol. XXVI · Training Agents Plate 9 of 10reward hacking, specification gaming, lazy grader, agent RL, shortcuts, true successLE

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.

What you will learn
Workshop
GRPO from the agent fine-tuned for 100 steps on 30 demonstrations: 40 steps of 8 sums × 8 episodes at temperature 1, learning rate 0.001. Lazy grader: reward 1 when the final answer equals the last calculator result. True success: the final answer equals the sum. Held-out success: 30 held-out sums, greedy.

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.

Penalising visible signs of hacking in a model’s reasoning can teach it to hide them rather than stop (Baker and colleagues, 2025) — so the remedy belongs in the environment, not only in the reward for the reasoning.

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.
RL optimises the grader, not the intention; a reward that climbs while true success does not is the signature of a hack.

Sources

  1. METR, “Recent Frontier Models Are Reward Hacking”, 5 June 2025.
  2. Krakovna et al., “Specification gaming: the flip side of AI ingenuity”, DeepMind blog, 2020.
  3. Baker et al., “Monitoring Reasoning Models for Misbehavior and the Risks of Promoting Obfuscation”, arXiv:2503.11926, 2025.