| name | reward-hacking-audit |
| description | Audit an eval, reward function, or agent for reward hacking / Goodhart's law / spec gaming. Karpathy "outcome supervision" lens. Triggers on "reward hacking", "goodhart check", "is this metric gameable", "spec gaming". |
reward-hacking-audit
Failure modes to detect
- Proxy metric: target measurable thing ≠ thing you want.
- Lexical match: judge keyword-matches without semantic check.
- Length bias: longer = higher score regardless of correctness.
- Style bias: judge prefers tone over correctness.
- Self-preference: model judges itself favorably.
- Refusal exploit: high score by refusing everything.
- Format hack: scoring rewards format compliance, model ignores task.
- Adversarial gradient: optimizer drives model into weird basin.
Workflow
- Read eval rubric / reward function.
- For each failure mode: can the agent achieve high score WITHOUT solving the task?
- Suggest counter-eval cases that detect the hack.
- Recommend fixes (multi-judge, holdout adversarial, human-spot-check).
Output
Reward audit: <eval name>
Risk Mode Evidence Fix
HIGH Length bias rubric: "thorough" cap length, score per-claim
MED Self-preference judge=same model use different model as judge
LOW Refusal exploit refusal score = 0 ✓ handled
Reference
Karpathy on RLHF limitations; "outcome supervision" discussions.