Can Differentiable Decision Trees Enable Interpretable Reward Learning from Human Feedback?

Akansha Kalra, Daniel S. Brown

TL;DR

This paper introduces Differentiable Decision Trees (DDTs) as a novel approach to learning interpretable reward functions from human feedback (RLHF). By leveraging the tree structure, their method not only achieves competitive RL performance comparable to black-box neural networks but also provides a powerful tool for diagnosing reward misalignment, a critical challenge in AI safety.

What Problem Does This Paper Address?

Reinforcement Learning from Human Feedback (RLHF) is a promising paradigm for aligning AI behavior with human intent by learning reward functions from human preferences. However, a major hurdle is that most current RLHF methods learn "black box" reward functions, typically deep neural networks. While expressive, these models are difficult to interpret, making it challenging to verify if the learned reward truly reflects human preferences or if the AI is aligned with our goals. This lack of interpretability can hide "silent misalignment" issues, where an AI performs well in training but for the wrong reasons, potentially leading to undesirable behavior in new situations. The paper aims to bridge this gap by developing a reward learning framework that is both expressive and inherently interpretable.

Methods

The core contribution is the proposal of Differentiable Decision Trees (DDTs) for reward learning. Unlike traditional decision trees, these DDTs are designed to be end-to-end differentiable, allowing them to be trained using backpropagation on trajectory preference labels.

Key methodological aspects include:

  • Differentiable Internal Nodes: These nodes use soft routing functions (e.g., sigmoid activation on a linear layer or a convolutional layer) to determine the probability of traversing left or right branches, enabling gradient-based learning.
  • Leaf Node Formulations: Two types of leaf nodes are proposed:
  • Multi-Class Reward Leaf (CRL): Assigns discrete reward values to specific classes.
  • Min-Max Reward Interpolation Leaf (IL): Models reward as a continuous value within a specified range, offering more flexibility and potentially better interpretability.
  • Soft Reward Prediction: The overall reward for a state is a weighted sum of leaf node rewards, where weights are determined by path probabilities through the tree.
  • Interpretable Reward Prediction: For diagnosis, a "hard" (argmax) reward is derived by selecting the leaf node with the highest routing probability, allowing for tracing the decision path.
  • Hybrid Explanations: For high-dimensional visual inputs, the paper proposes visualizing activation heatmaps and synthetic traces at internal nodes to understand how the tree makes routing decisions based on input features.
  • Penalty Regularization: A regularization term is introduced to encourage more balanced routing at internal nodes, improving interpretability and preventing certain branches from becoming unreachable.

Datasets

The paper evaluates its approach on several standard and custom environments:

  • CartPole: A classic control task used for initial assessment and demonstrating silent misalignment.
  • Visual Gridworld Environments: Novel environments based on MNIST digits (0-3 and 0-9) were created to test the framework on image-based observations and varying complexity.
  • Atari Games: Specifically, Breakout and Beam Rider were used to evaluate the framework on high-dimensional, complex visual inputs, leveraging existing offline preference datasets.

Key Insights and Ideas

  • Interpretability as a Diagnostic Tool: The tree structure of DDTs provides a direct way to visualize and understand how reward functions are learned. This is crucial for identifying "silent misalignment," where an AI performs well but for the wrong reasons, which is hard to detect with black-box models.
  • Trade-off Between Performance and Interpretability: The paper highlights a tension: using "soft" reward outputs from all leaf nodes generally leads to better RL performance, while "hard" (argmax) outputs are more interpretable but can sometimes hurt performance, especially in complex domains.
  • Min-Max Interpolation Leaves Excel: The Min-Max Reward Interpolation (IL) leaf node formulation generally outperforms the Multi-Class Reward Leaf (CRL) formulation, particularly in terms of interpretability and achieving competitive RL performance, especially when dealing with continuous or nuanced reward signals.
  • DDTs as Alignment Debuggers: The framework can act as an "alignment debugger," revealing misalignments before costly RL training, which is a significant step towards safer AI.

Key Results

  • Competitive RL Performance: Reward DDTs, particularly those using IL leaf nodes, achieve RL performance comparable to or even exceeding that of deep neural network reward functions on tasks like CartPole and MNIST Gridworlds. For instance, in CartPole, DDTs with soft and argmax outputs performed on par with a neural network baseline.
  • Detection of Silent Misalignment: The interpretability of DDTs allowed the researchers to identify silent misalignment in CartPole (rewarding not tipping the pole rather than keeping the cart within bounds) and Atari games (e.g., misinterpreting visual cues in Beam Rider). This was often detectable before running RL, unlike with black-box models.
  • Scalability to Visual Domains: The framework successfully handles high-dimensional visual inputs from MNIST Gridworlds and Atari games, demonstrating its practical applicability.
  • Accuracy on Preference Prediction: DDTs with IL leaf nodes achieved high accuracy in predicting pairwise preferences, sometimes outperforming convolutional neural networks on held-out validation sets. For example, in MNIST 0-9 Gridworld, IL soft reward performance was very similar to a ConvNet baseline.

Limitations and Future Work

  • Complexity vs. Interpretability: The paper notes that as DDTs become deeper to handle more complex environments, their interpretability can decrease.
  • Soft vs. Hard Rewards: The trade-off between performance (soft rewards) and interpretability (hard rewards) remains an open challenge, especially for complex domains where sparse rewards might hinder learning.
  • Future Work:
    • Investigating methods to fix misaligned reward DDTs, potentially through human-in-the-loop feedback.
  • Extending the framework to transformer-based reward functions used in LLMs.
  • Exploring the impact of increasing tree depth on interpretability.
  • Developing techniques to distill existing pre-trained neural network reward models into interpretable DDTs.
  • Further research into identifying causal features for reward learning.

Summary updated

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