Reward hacking
When a model raises its reward without doing the task — it exploits the scorer instead of solving the problem.
Also called: specification gaming, reward gaming.
If the reward checks for a citation token, the model learns to emit citation tokens. If the tests only check the return type, the model returns the right type.
Reward hacking is the most common reason an RL run looks great on its own metric and bad everywhere else.
Defenses: a held-out eval set the loop never trains on, verifiers that reject mediocre outputs, and reading samples by hand.
In the compiled loop
Compiled files accept --eval-data, a held-out set scored but never passed to optim_step. If train reward climbs and eval reward does not, suspect hacking.
Sources
Tinker docs: RL hyperparameters