Skip to main content
QUICK REVIEW

[Paper Review] Defining and Characterizing Reward Hacking

Joar Skalse, Nikolaus H. R. Howe|arXiv (Cornell University)|Sep 27, 2022
Adversarial Robustness in Machine LearningComputer Science18 citations
TL;DR

This paper formally defines reward hacking as a situation where optimizing a proxy reward function leads to worse performance under the true reward function. It proves that unhackability—where improving proxy reward never harms true reward—is extremely rare in stochastic policies, but non-trivially achievable in finite policy sets or under deterministic policies, revealing a fundamental tension between task specification and value alignment in RL.

ABSTRACT

We provide the first formal definition of reward hacking, a phenomenon where optimizing an imperfect proxy reward function leads to poor performance according to the true reward function. We say that a proxy is unhackable if increasing the expected proxy return can never decrease the expected true return. Intuitively, it might be possible to create an unhackable proxy by leaving some terms out of the reward function (making it "narrower") or overlooking fine-grained distinctions between roughly equivalent outcomes, but we show this is usually not the case. A key insight is that the linearity of reward (in state-action visit counts) makes unhackability a very strong condition. In particular, for the set of all stochastic policies, two reward functions can only be unhackable if one of them is constant. We thus turn our attention to deterministic policies and finite sets of stochastic policies, where non-trivial unhackable pairs always exist, and establish necessary and sufficient conditions for the existence of simplifications, an important special case of unhackability. Our results reveal a tension between using reward functions to specify narrow tasks and aligning AI systems with human values.

Motivation & Objective

  • To formally define and characterize reward hacking in reinforcement learning.
  • To identify conditions under which a proxy reward function is unhackable—meaning optimizing it never degrades true reward performance.
  • To investigate the feasibility of creating simplifications of true reward functions that are safe to optimize.
  • To reveal the theoretical limitations of using proxy rewards in value alignment for AI systems.
  • To demonstrate that unhackability is extremely rare in general stochastic policy spaces, but possible under restricted conditions.

Proposed method

  • Introduces a formal definition of reward hacking based on policy comparisons: a proxy is hackable if a policy preferred by the proxy performs worse under the true reward.
  • Defines unhackability as the property that increasing expected proxy return never decreases expected true return.
  • Uses linearity of reward in state-action visit counts to prove that for all stochastic policies, unhackability only holds if one reward function is constant.
  • Analyzes finite sets of stochastic policies and deterministic policies to identify necessary and sufficient conditions for non-trivial unhackability.
  • Introduces the asymmetric notion of simplification, where a proxy is a coarsened version of the true reward, and derives conditions under which such simplifications are safe.
  • Employs graphical representations—unhackability and simplification diagrams—to visualize relationships between policy orderings and simplification structures.

Experimental results

Research questions

  • RQ1Under what conditions can a proxy reward function be unhackable, such that optimizing it never leads to worse true reward performance?
  • RQ2Why is unhackability so rare in the space of all stochastic policies, and when can it be achieved?
  • RQ3Can simplifications of the true reward function be constructed such that they are provably safe to optimize?
  • RQ4What structural constraints must a proxy reward function satisfy to avoid enabling reward hacking?
  • RQ5How do intuitive simplification strategies—like omitting features or ignoring fine distinctions—fail to ensure unhackability?

Key findings

  • For the set of all stochastic policies, two reward functions can only be unhackable if one of them is constant, making non-trivial unhackability impossible in general.
  • In contrast, for any finite set of stochastic policies, non-trivial unhackability pairs always exist, providing a theoretical basis for safe proxy design in practical settings.
  • The paper demonstrates that seemingly natural simplification strategies—such as omitting reward terms or ignoring fine-grained distinctions—often fail to produce unhackable proxies.
  • Simplification in the cleaning robot example forces structural constraints: equating two policies along one dimension (e.g., attic cleaning) implies all policies differing only in that dimension must also be equated, leading to a collapse of the reward structure.
  • The simplification diagram is a subgraph of the unhackability diagram, confirming that simplification is a safe, special case of unhackability.
  • The results suggest that reward models and inverse RL outputs should be treated as auxiliary tools rather than direct optimization targets in safety-critical RL.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.