[Paper Review] Quantifying Differences in Reward Functions
This paper introduces EPIC (Equivalent-Policy Invariant Comparison), a method to directly quantify differences between reward functions without training policies, by canonicalizing rewards and computing their correlation over a coverage distribution. EPIC is invariant to potential shaping and positive rescaling, robust to coverage distribution choice, and bounds the regret of optimal policies even under changed dynamics, outperforming policy-based evaluation methods.
For many tasks, the reward function is inaccessible to introspection or too complex to be specified procedurally, and must instead be learned from user data. Prior work has evaluated learned reward functions by evaluating policies optimized for the learned reward. However, this method cannot distinguish between the learned reward function failing to reflect user preferences and the policy optimization process failing to optimize the learned reward. Moreover, this method can only tell us about behavior in the evaluation environment, but the reward may incentivize very different behavior in even a slightly different deployment environment. To address these problems, we introduce the Equivalent-Policy Invariant Comparison (EPIC) distance to quantify the difference between two reward functions directly, without a policy optimization step. We prove EPIC is invariant on an equivalence class of reward functions that always induce the same optimal policy. Furthermore, we find EPIC can be efficiently approximated and is more robust than baselines to the choice of coverage distribution. Finally, we show that EPIC distance bounds the regret of optimal policies even under different transition dynamics, and we confirm empirically that it predicts policy training success. Our source code is available at https://github.com/HumanCompatibleAI/evaluating-rewards.
Motivation & Objective
- To address the limitations of policy rollout-based evaluation, which confounds reward misalignment with optimization failure and lacks generalization to new environments.
- To develop a reward distance metric that is invariant to potential shaping and positive rescaling, ensuring consistent comparison across equivalent reward functions.
- To create a computationally efficient, robust, and predictive method for evaluating learned reward functions using only the rewards themselves, without policy optimization.
- To establish theoretical bounds showing that low EPIC distance implies low regret in optimal policies, even under changed transition dynamics.
Proposed method
- EPIC computes the correlation between canonicalized reward functions over a coverage distribution 𝒟, which removes potential-based shaping and normalizes for positive scaling.
- Canonicalization involves subtracting the average reward over the transition distribution and removing state-dependent biases to ensure invariance.
- The method uses a coverage distribution 𝒟 derived from uninformative priors, such as random rollouts, to ensure broad support over realistic transitions.
- EPIC is approximated efficiently using Monte Carlo sampling over transitions from the coverage distribution, enabling scalable computation.
- Theoretical analysis proves EPIC is a pseudometric and invariant under potential shaping and positive rescaling, satisfying key desiderata for reward distance metrics.
- EPIC's theoretical regret bound (Theorem 4.3) shows that as EPIC distance approaches zero, the performance gap between optimal policies under two rewards vanishes, even under different dynamics.
Experimental results
Research questions
- RQ1Can we evaluate learned reward functions without training policies, thereby isolating reward quality from optimization failure?
- RQ2Does a reward distance metric exist that is invariant to potential shaping and positive rescaling, ensuring consistent comparison of equivalent reward functions?
- RQ3Can a reward distance metric be both computationally efficient and robust to the choice of coverage distribution?
- RQ4Does a small EPIC distance between a learned reward and the true reward predict low regret in optimal policies, even when dynamics change?
Key findings
- EPIC is the first method to quantify reward function differences directly, without requiring policy optimization, enabling isolation of reward quality from optimization failure.
- EPIC is invariant under potential shaping and positive rescaling, ensuring consistent comparison of reward functions that induce the same optimal policy.
- EPIC is robust to the choice of coverage distribution, producing stable results across diverse distributions, unlike baselines such as NPEC and ERC.
- Empirical results confirm that low EPIC distance predicts low regret in optimal policies, even when transition dynamics change, validating its theoretical regret bound.
- EPIC achieves efficient approximation via Monte Carlo sampling, making it scalable for practical evaluation of learned reward functions.
- Theoretical analysis shows that as EPIC distance approaches zero, the performance gap between optimal policies under two rewards vanishes, even under different dynamics, proving its predictive power.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.