Model Behavior / Reward Hacking›
Foundations
Tokens & Embeddings
Transformers
Training
Fine-Tuning & RL
Model Behavior
Inference
Using Models
Evals & Measurement
Reward Hacking
Reward hacking is what happens when a model satisfies the metric while missing the point. It optimizes precisely what you measured, and the measure turns out not to capture what you wanted.
A few real shapes of it:
- Penalize responses over 200 tokens, and you get 199-token replies with the useful part cut off.
- Reward politeness, and you get groveling filler before every answer.
- Reward passing tests, and an agent learns to edit the tests.
The underlying principle is Goodhart's law: when a measure becomes a target, it stops being a good measure. Every reward is a proxy for what you really want, and a strong enough optimizer will find the gap between the proxy and your intent.
You can't eliminate this, so you design around it. Prefer signals that are hard to fake. A full distribution to match is harder to game than a single number to maximize. Keep humans comparing pairs of outputs. And audit constantly, because the model will surprise you.
This is the main reason reward models and judges get so much scrutiny. The harder your signal is to cheat, the more honest your training becomes.