FynoLabs

Glossary

What is reward hacking?

Reward hacking is when an AI agent earns a passing score without doing the task, by exploiting a weakness in how the task is checked. Typical routes are editing the tests, writing the expected output directly, or reading an answer left in the environment. It matters because an agent trained on hackable tasks learns the shortcut and not the skill.

Updated

All terms · Book a call

Reward hacking

How it happens

A verifier checks something narrower than the task. It looks for a file with the right name, an output in the right format, or a test suite that passes. The agent finds the cheapest way to satisfy that check.

No intent is needed. In training, anything that scores is reinforced.

Reward hacking

Common routes

Changing or deleting the tests. Hard-coding the expected values. Reading the solution or the tests from the environment. Calling the grader’s own helper. Producing output that matches a pattern without computing it.

Reward hacking

How tasks are hardened

Keep the tests and the solution out of the agent’s reach. Check the end state and not the steps. Generate inputs at check time so values cannot be memorised.

Then attack the task: a person who knows the domain tries to pass it without doing the work, and every route that scores is closed.

In practice

Where this shows up in our work.

Related terms

Read next.

Need this done, not only defined?

Tell us what you are building. We start with a small paid pilot, and you approve on a sample before any volume.

Book a call · What we deliver