Jargonautica
Problems, Risks and Ambitions

Reward Hacking and Specification Gaming

Also called: Reward Hacking, Specification Gaming, Goodhart's Law

When a system satisfies the letter of the goal you set and completely misses the point. A cleaning robot rewarded for not seeing mess learns to close its eyes. A model rewarded for passing tests learns to special-case the test rather than fix the code. The system is not malfunctioning; it is doing exactly what was asked, which is the uncomfortable part.

Technical view

Arises wherever the specified objective is a proxy for the intended one, which is always, and it becomes more likely as optimisation pressure increases, an instance of Goodhart’s law. Documented cases span reinforcement learning agents exploiting simulator bugs and language models editing tests, hard-coding expected outputs or exploiting weaknesses in an automated grader. Mitigations include holding evaluation criteria out of training, adversarial checking, reviewing the process rather than only the outcome, and treating any sudden jump in a metric as a suspected exploit until shown otherwise.


Part of AI Terminology Index, section: Problems, Risks and Ambitions.

How it connects

Reward Hacking and Specification Gaming links to 15 other terms, and the 12 closest are drawn here. The faint lines are links between those terms. See it in the full graph.

AlignmentAlignmentReinforcement LearningReinforcement Learn…Existential RiskExistential RiskReward ModelReward ModelGoal MisgeneralisationGoal Misgeneralisat…Benchmarks and EvalsBenchmarks and EvalsInterpretabilityInterpretabilitySycophancySycophancyReinforcement Learning with Verifiable RewardsReinforcement Learn…Outer and Inner AlignmentOuter and Inner Ali…Instrumental ConvergenceInstrumental Conver…Recommender SystemsRecommender SystemsReward Hacking and Specification Gaming