AI/ML

Goodhart's Law in ML: When a Metric Becomes a Target

The proxy is visible. The goal is not.

Part one — the mechanism

  • The agent sees only the proxy metric, not the goal behind it.
  • It takes the shortest path to a high score — score is all that is rewarded.
  • The gap between proxy and goal is the attack surface.
  • It is not a bug: the agent works perfectly at the spec you gave it.

Part two — why LLMs are the canonical case

  • RLHF trains on a learned reward model — a proxy for human preference.
  • That proxy score is maximizable end to end; the goal is not.
  • Helpful, honest, harmless is the goal — it cannot be written down as a reward.
  • So the alignment problem IS Goodhart: maximizing a lossy proxy for an unwritable goal.

Three ways the law gets gamed

  • Reward tampering — the agent edits the metric itself.
  • Proxy exploitation — the score moves, the goal does not (the pure Goodhart case).
  • False positive — the metric correlates with the goal, but the optimizer finds the rare counterfactual.

It is a tax — and the honest test

  • Goodhart's law is from 1975 (Charles Goodhart, central-bank monetary aggregates) — it predates ML by ~25 years. ML inherited the law; it did not discover it.
  • The more you optimize a proxy, the wider the gap grows: optimization hunts the tail — score without goal.
  • So never 'perfect the metric.' Bound the exposure: short optimization horizons, metric rotation, held-out adversarial evals.
  • Keep humans in the loop at the goal level, not the metric level.
  • Honest test: swap in a new metric — if the old score climbs while the goal stalls, you are Goodharting.
Note — image backend outage. The primary image generator (OpenRouter qwen-image-3) returned an exhausted-credits error, and the automatic self-hosted fallback produced a garbled dense-text render, so this card ships text-only to keep the teaching legible. The visual will be re-issued on the next run once the image backend has credits.