Can Differentiable Decision Trees Learn Interpretable Reward Functions?

Akansha Kalra, Daniel S. Brown

Abstract

Reinforcement Learning from Human Feedback (RLHF) typically relies on opaque deep neural networks to model human preferences as reward functions. This opacity can mask "silent misalignment," where an agent achieves high performance by exploiting unintended shortcuts. This paper introduces a method to replace these black-box models with Differentiable Decision Trees (DDTs). By utilizing a tree structure with soft routing, the authors demonstrate that reward functions can become inherently interpretable, allowing for the auditing of learned values before real-world deployment. The approach is validated across control tasks, visual gridworlds, and Atari games, showing competitive performance and superior diagnostic utility.

Introduction

Aligning AI behavior with human intent is a central challenge in modern machine learning. The standard paradigm, RLHF, involves training a reward model based on human preferences over trajectories. However, when this reward model is a deep neural network, it is difficult to verify if the model has truly captured the desired objective or merely a proxy that happens to correlate with success in the training environment.

The proposed RLHF framework using a Differentiable Decision Tree (DDT) as the reward model to ensure alignment with human user preferences.

This paper addresses the problem of "silent misalignment" by proposing the use of Differentiable Decision Trees (DDTs) for reward learning. Unlike traditional decision trees, DDTs are end-to-end differentiable, allowing them to be trained via gradient descent while maintaining a structure that humans can inspect to understand the logic behind a given reward.

Methods

The authors develop a framework for training reward trees using several key innovations:

  1. Differentiable Decision Trees (DDTs): These trees use "soft" routing. Instead of discrete if-else splits, each internal node applies a sigmoid function to determine the probability of a sample following the left or right branch. This enables the use of standard backpropagation.
  2. Node Specialization: To handle different data types, the authors use Simple Nodes (linear layers) for low-dimensional state spaces like CartPole and Sophisticated Nodes (convolutional layers) for high-dimensional pixel inputs like Atari.
  3. Leaf Node Variants: Two types of leaf nodes were tested: Multi-Class Reward Leaves (CRL), which treat reward as a classification task, and Min-Max Reward Interpolation Leaves (IL), which treat it as a regression problem. The IL variant was found to be significantly more effective for reinforcement learning.
  4. Interpretability Suite: The framework includes tools such as activation heatmaps and synthetic traces to visualize which features trigger specific branches of the tree.

Experimental Evaluation

The framework was tested across three domains:

  • CartPole: A classic control task used to evaluate basic alignment and interpretability.
  • MNIST Gridworlds: A custom environment where agents navigate a grid of handwritten digits, with rewards tied to the digit's identity, testing visual processing capabilities.
  • Atari 2600 (Breakout and Beam Rider): High-complexity environments used to benchmark the scalability of DDTs against neural network baselines like T-REX.

Key Insights and Results

Identifying Silent Misalignment

A primary contribution of this work is the demonstration of DDTs as a diagnostic tool. In the CartPole environment, the DDT revealed that the learned reward function was heavily biased toward the pole's angle while almost entirely ignoring the cart's position.

Decision boundaries in the CartPole DDT reveal that the reward model primarily splits based on Pole Angle, ignoring Cart Position and leading to potential misalignment.

While an agent trained on this reward performed well in standard conditions, it failed when the cart started near the track's edge—a failure that would have been unpredictable with a black-box neural network reward. The DDT made this structural flaw immediately visible through its decision boundaries.

Performance and Scalability

In the MNIST Gridworld, DDTs with Interpolated leaves achieved 97-98% of the optimal return, nearly matching the 97-99% achieved by deep neural networks. In Atari games, while DDTs showed some performance gap compared to state-of-the-art neural baselines in highly complex scenarios like Beam Rider, they successfully learned meaningful features. For instance, in Breakout, the tree learned to reward states where bricks were missing, though it also highlighted "causal confusion" where the model rewarded the resulting state rather than the specific action of hitting a brick.

The Interpretability-Performance Trade-off

The authors noted a tension between "soft" and "hard" outputs. Soft outputs (weighted averages of leaf values) provide smoother reward signals that facilitate RL training but are harder to trace. Conversely, "hard" outputs (following the single most likely path) are perfectly interpretable but can create sparse rewards that make learning difficult for the RL agent.

Conclusion

Differentiable Decision Trees offer a promising path toward more transparent RLHF. By making the reward function auditable, researchers can debug alignment issues before they manifest as failures in the real world. Future work may involve distilling complex neural network rewards into DDTs to combine the representational power of deep learning with the safety benefits of interpretable models.

Summary updated

BibTeX
@inproceedings{kalra2024can,
  author = {Akansha Kalra and Daniel S. Brown},
  title = {{Can Differentiable Decision Trees Learn Interpretable Reward Functions?}},
  booktitle = {RLC},
  year = {2024},
  url = {https://openreview.net/forum?id=jf40Qgc1QQ},
}
Figure