Abstract
Reinforcement Learning (RL) agents are fundamentally limited by the quality of their reward functions. When these functions are learned from human demonstrations or preferences, they often capture "spurious correlations" rather than the intended task logic. This work introduces the application of interpretability tools—specifically saliency maps and counterfactual analysis—to reward models. Our findings reveal that reward models frequently rely on "shortcuts," such as tracking scoreboards or detecting the disappearance of goal objects, rather than understanding the underlying environment dynamics.
Introduction: The Safety Gap in Reward Learning
In complex real-world scenarios, defining a perfect mathematical reward function is often intractable. Instead, developers use Reward Learning, where an agent infers a reward function by observing human behavior. However, a significant "safety gap" exists: a learned reward function may appear performant during training but fail catastrophically in novel environments. For instance, a driving agent might associate "brake lights" with "safety," failing to recognize that lights are a consequence, not a cause, of braking. This paper argues for the necessity of auditing learned reward functions directly using interpretability techniques before deployment.
Methods
The authors adapt three interpretability techniques to analyze reward functions $R(s, a, s')$:
- Raw Gradient Saliency: This involves calculating the gradient of the reward with respect to input pixels, highlighting which features most influence the reward output.
- Occlusion Maps: By systematically blurring parts of the input image and measuring the resulting drop in predicted reward, researchers can identify critical high-level regions (e.g., goal blocks).
- Counterfactual Inputs: The model is tested against "impossible" states—such as environments with multiple goals or no goals—to evaluate the robustness of its internal logic.
Key Insights: Shortcuts and Causal Confusion
The application of these tools revealed several critical failure modes in learned reward models:
- The "Disappearing Goal" Shortcut: In Gridworld environments, saliency maps showed the model was not checking for agent-goal contact. Instead, it learned a simpler rule: "If the goal is visible, reward is 0; if the goal disappears, reward is 1."
- The Scoreboard Shortcut: In Seaquest, the reward model ignored the submarine and enemies entirely, focusing solely on the score display. It learned that changes in these specific pixels were the most reliable predictors of reward.
- Lag as a Regularizer: In Breakout, a one-frame delay in the score update prevented the model from using the scoreboard shortcut, forcing it to track the ball instead. This suggests that feedback latency can inadvertently improve feature robustness.
Results and Validation
The researchers validated these insights through counterfactual testing. By introducing a second goal into a Gridworld, they demonstrated that the model's logic was flawed: the reward often became negative because the model "saw" a goal still present on the screen after the agent reached the first one.
Quantitatively, the authors found that even "broken" reward functions can sometimes produce functional policies. In Seaquest, removing the score display made the reward function extremely noisy, yet a policy trained on it still achieved a moderate score, indicating that agents can sometimes find "lucky" paths through flawed reward landscapes.
Conclusion and Future Work
Current interpretability tools are often too conservative, highlighting every numerical change regardless of its impact on agent behavior. Future research should focus on developing methods that account for the unique mathematical properties of RL, such as policy invariance and potential shaping. Ultimately, removing "cheating" features like scoreboards from training data is essential to force models to learn the true mechanics of their tasks.
Summary updated