TL;DR
This paper proposes using interpretable "reward trees" instead of black-box neural networks for learning reward functions from human preferences. These trees are shown to be competitive with neural networks on complex tasks, offering significant advantages in explainability, traceability, and verification, which are crucial for safe and trustworthy AI.
What Problem Does This Paper Address?
Reinforcement learning (RL) agents need reward functions to learn desired behaviors. Manually designing these functions is difficult and prone to errors. A popular alternative is to learn reward functions from human feedback, typically using preference labels (e.g., "trajectory A is better than trajectory B"). However, current methods predominantly use deep neural networks (NNs) for this, which are "black boxes." This lack of transparency makes it hard to understand why an agent behaves a certain way, verify its alignment with human intent, or debug its learning process. This opacity is a major roadblock for deploying RL in safety-critical applications.
Methods
The paper builds upon a recently proposed method for learning reward functions using tree-structured models, termed "reward trees." These trees partition the state-action space into hyperrectangular regions (leaves), with each leaf assigning a reward. The key novelty lies in:
- Tree Induction: A multi-stage process that includes:
- Trajectory-level Return Estimation: Estimating overall "goodness" scores for trajectories based on preference data, using a Bradley-Terry model.
- Leaf-level Reward Estimation: Assigning rewards to individual transitions within trajectories, weighted by how often those transitions appear in high-return trajectories.
- Tree Growth: Recursively splitting leaves by adding new rules (hyperplanes) based on feature values. The paper introduces and evaluates a new splitting criterion: greedily maximizing the immediate reduction in the $l_0-1$ loss (a measure of preference prediction accuracy), which is shown to be more effective than a variance-based criterion.
- Tree Pruning: Removing rules to simplify the tree and improve generalization, regularized by tree size.
- Online Learning Setup: The reward tree is updated iteratively as new trajectories are generated by an RL agent and new preference labels are collected from a human (or oracle). The agent uses a model-based RL approach (PETS) that plans using the learned reward tree.
- Integration with Model-Based RL: The reward learning framework is integrated with a model-based RL agent (PETS), which is more sample-efficient than model-free agents and offers richer insights into decision-making.
Datasets
The experiments were conducted in a simulated aircraft handling environment. Instead of real human preferences, the authors used synthetic "oracle preferences." These preferences were generated by known, ground-truth reward functions of varying complexity. This approach allows for systematic and quantitative evaluation of the reward learning methods by comparing learned rewards to the ground truth. The paper also discusses the generation of "coverage datasets" for policy-invariant evaluation, which aim to represent a broad spectrum of possible agent behaviors.
Key Insights and Ideas
- Interpretability is Achievable: The core insight is that interpretable tree models can be a viable and competitive alternative to black-box NNs for reward learning, especially when explainability is paramount.
- $l_0-1$ Loss is a Stronger Criterion: The proposed $l_0-1$ loss-based splitting criterion for tree growth consistently outperforms a variance-based criterion, leading to better performance and more conservative tree growth.
- Tree Structure Aids Analysis: The hierarchical structure of reward trees allows for detailed analysis of learned behaviors, enabling traceability of decisions and providing explanations for why certain rewards are assigned. This is a significant advantage over NNs.
- Performance Gap Narrows with Complexity: The performance gap between reward trees and NNs tends to decrease as the underlying ground-truth reward function becomes more complex and nonlinear.
- Robustness to Imperfect Data: Reward trees demonstrate good robustness to reduced or corrupted preference data, suggesting their potential for real-world applications where human feedback might be noisy or limited.
Key Results
- Competitive Performance: Reward trees achieved performance broadly competitive with NN-based reward learning on challenging, high-dimensional tasks, as measured by oracle regret ratio (ORR) and correlation metrics.
- $l_0-1$ Tree Improvement: The $l_0-1$ splitting criterion led to consistent improvements over the variance-based tree method.
- Interpretable Models: The learned reward trees were small enough (around 20 leaves) to be globally interpretable.
- Visualizations: The paper demonstrates how learned reward trees can be visualized and analyzed, showing how they capture key aspects of the ground-truth reward function, such as critical thresholds (e.g., altitude limits).
- Robustness: Both NN and tree models showed good robustness to variations in the number of preferences and trajectories, with trees sometimes exhibiting smoother performance trends.
Limitations and Future Work
- Greedy Splitting: The current tree growth is locally greedy, and the authors suggest that moving beyond this could lead to further algorithmic improvements.
- Human Preferences: The experiments used oracle preferences. Future work will involve evaluating reward learning and explanation with real human preferences.
- End-to-End Framework: The authors aim to develop a full end-to-end framework for explainable model-based agents with preference-based reward trees, potentially reframing planning through the tree's discrete leaves.
- Active Querying: The current preference collection is passive. Exploring active querying schemes could help discover subtle aspects of reward functions more efficiently.
- Hyperparameter Tuning: While the method shows some insensitivity to hyperparameters, further tuning, especially for the tree size regularizer, could improve performance.
Summary updated