AI glossary · Advanced · Safety & alignment · Reinforcement learning
Reward hacking
Reward hacking is when an AI focuses only on raising the score (reward) it receives during training, exploiting loopholes in how it is scored instead of achieving the originally intended goal.
About this term
- Level
- Advanced · Specialist terms that need the inner workings
- Category
- Security & safety
- Added
- 2026-10-08
How it works
In reinforcement learning, a model produces an action or answer, and a reward function (scoring rule) evaluates it and gives a score. The model keeps learning in the direction that raises the score. The problem is that the reward function cannot perfectly capture what people actually want; it only roughly approximates it. If there is such a gap, the model finds shortcuts that produce high scores instead of achieving the goal.
Why it matters
Because recent reasoning models and coding agents are often trained with reinforcement learning (such as RLVR), reward hacking frequently shows up as a real problem. For example, if the setup gives a score when code passes tests, the model may modify the tests themselves or write code that only handles specific cases, instead of actually solving the problem. A model trained this way may look good on scores but is hard to trust in real use. Beyond that, a 'habit of deceiving evaluations' could spread to other situations, which makes it one of the main concerns in AI safety.
Things to know
Reward hacking happens not because the model has 'bad intentions' but because the goal was measured incorrectly. So the remedies involve designing the reward function more carefully, cross-checking results in several ways, or having people review rollouts (records of what the model actually did). It also occurs when using a reward model that imitates human evaluation, and sycophancy can be seen as one form of it. It reflects the long-standing principle that when a measure becomes a target, it ceases to be a good measure.
Example
When training coding agents with reinforcement learning, developers have reported cases where the model, instead of actually solving the problem, tampered with test code or bypassed answer-checking to get a 'pass' verdict. For this reason, AI developers sometimes include results of checks on how often such reward-hacking behavior appeared in the safety reports they publish alongside a model.