NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

STARC: A General Framework For Quantifying Differences Between Reward Functions

Joar Max Viktor Skalse, Lucy Farnik, Sumeet Ramesh Motwani, Erik Jenner, Adam Gleave, Alessandro Abate

Introduction

In Reinforcement Learning (RL), tasks are defined using reward functions. However, manually designing these functions is notoriously difficult and often leads to "reward hacking," where an agent exploits loopholes to maximize rewards without completing the intended task. To mitigate this, researchers increasingly rely on reward learning algorithms to infer goals from human preferences or expert demonstrations.

A major challenge in reward learning is evaluation: how do we know if a learned reward function is "close enough" to the true goal? Standard distance metrics (like $L_2$ distance) fail because two numerically different reward functions can induce the exact same optimal behavior—a concept known as reward equivalence. Previous metrics, such as EPIC and DARD, attempted to address this but lacked "tight" theoretical guarantees. They could not perfectly predict the actual performance loss (regret) an agent would suffer if it optimized the learned reward instead of the true one.

To solve this, the authors introduce STARC (STAndardised Reward Comparison), a new mathematical framework for measuring how much two reward functions actually differ in terms of the behavior they produce. STARC provides tight theoretical bounds on worst-case regret, ensuring that if two rewards are close in STARC distance, an agent trained on one is guaranteed to perform well on the other.

The STARC Framework

The STARC framework introduces a family of pseudometrics designed to quantify reward differences in a principled way. The process involves three main steps:

  1. Canonicalization: This step standardizes the reward function by removing components that do not affect policy ordering. It filters out "potential shaping" (rewards for moving toward a goal) and "$S'$-redistribution" (changes that average out over the environment's transitions).
  2. Normalization: The reward is scaled so that simple multipliers (e.g., doubling all rewards) do not alter the distance.
  3. Distance Measurement: Finally, a standard metric (such as an $L_p$ norm) is applied to these standardized, normalized rewards.

A key contribution is VAL (Value-Adjusted Levelling), a specific canonicalization function that is computationally efficient even in complex environments because it only requires sampling transitions rather than full knowledge of the environment's dynamics.

Key Theoretical Insights

The theoretical core of the paper is the proof that STARC metrics are both sound (small distance implies low regret) and complete (low regret implies small distance). This establishes them as "tight" bounds. The authors demonstrate that any metric satisfying these two properties must be mathematically equivalent (specifically, bilipschitz equivalent) to STARC, suggesting STARC is essentially the optimal way to measure reward distance.

Furthermore, unlike the popular EPIC metric—which ignores environment dynamics—STARC incorporates transition dynamics. This allows STARC to recognize that some reward differences are irrelevant if they apply to impossible or unreachable transitions. The authors show that EPIC can fail to bound regret because it does not account for the scale of the reward relative to the total possible return.

Evaluation and Results

The authors validated STARC using small random MDPs (generating 49,152 reward function pairs across 223 pseudometrics) and the MuJoCo Reacher continuous control task.

Correlation of various metrics with regret

In the large-scale MDP experiments, STARC metrics (specifically STARC-VAL) demonstrated a correlation with regret of 0.873, significantly outperforming previous state-of-the-art metrics like EPIC (0.778) and DARD (0.782). The paper provides the first metric that induces both an upper and a lower bound on worst-case regret for arbitrary policies, not just optimal ones.

In the continuous Reacher experiment, STARC correctly ranked reward functions (e.g., identifying that a shaped reward is closer to the truth than a random or negative one) and proved that the metric can be estimated effectively via sampling.

Limitations and Future Work

While STARC is highly effective, some core theoretical proofs currently assume finite state and action spaces. Generalizing these proofs to fully continuous settings is a logical next step. Additionally, the paper uses a strong definition of regret; exploring weaker criteria might allow for more flexible reward metrics. Finally, extending STARC from single-agent MDPs to multi-agent systems, where rewards interact in much more complex ways, remains an open challenge.

Summary updated

BibTeX
@inproceedings{skalse2024starc,
  author = {Joar Max Viktor Skalse and Lucy Farnik and Sumeet Ramesh Motwani and Erik Jenner and Adam Gleave and Alessandro Abate},
  title = {{STARC: A General Framework For Quantifying Differences Between Reward Functions}},
  booktitle = {International Conference on Learning Representations},
  year = {2024},
  url = {https://openreview.net/forum?id=wPhbtwlCDa},
}
Figure