Reward hacking
Reward hacking is behaviour of an agent that makes a check pass formally without doing the work: it edits or disables tests, returns a test’s expected values instead of a general solution, or replaces the scoring function. Against it, a gate and its settings are closed to the agent for writing, and only the check program sets the “passed” mark.
Frequently asked questions
What is reward hacking in an AI agent?
The agent passes a check formally without doing the work: it edits tests, fits the result to them or replaces the score.How do you defend against reward hacking?
Make the tests and the gate read-only, set the “passed” mark by a program and add a check by meaning.Source: METR: Recent frontier models are reward hacking
Read more: What are quality gates for AI agents