TL;DR
This paper introduces a novel Reinforcement Learning (RL) algorithm that learns reward functions from human preferences using an intrinsically interpretable tree structure. By partitioning the state-action space into human-readable rules, the method allows researchers to "debug" agent behavior and identify why an agent might be failing to align with human intentions.
What Problem Does This Paper Address?
Reinforcement Learning agents are only as good as their reward functions. However, "reward engineering"—manually writing a function to define success—is notoriously difficult and prone to errors. Preference-based RL (PbRL) offers a solution: instead of writing code, a human simply compares pairs of agent behaviors and says, "this one is better."
The catch? Most PbRL methods use deep neural networks to represent the learned reward. These are "black boxes"—we can see that the agent is learning, but we don't know what it thinks is rewarding. This lack of transparency makes it nearly impossible to ensure an agent is truly "aligned" with our goals or to understand why it might develop weird, unintended behaviors.
Methods
The authors propose a system that learns tree-structured reward functions. Instead of a neural network, the reward function is a decision tree that partitions the environment's state-action space into axis-aligned boxes (hyperrectangles), each assigned a specific reward value.
The algorithm follows a multi-stage optimization process:
- Fitness Estimation: It uses Thurstone’s Law of Comparative Judgement and a least-squares approach to estimate the "fitness" of entire trajectories based on the provided preference labels.
- Credit Assignment: It assumes a uniform temporal prior, meaning it initially distributes a trajectory's total fitness equally across all timesteps.
- Tree Growth & Pruning: It greedily grows a regression tree to fit these fitness estimates and then prunes it back using a complexity-regularized loss to find the simplest tree that explains the data.
- Active Learning: It uses an Upper Confidence Bound (UCB) strategy to select the most "informative" pairs of trajectories for the human to label, focusing on areas where the model is uncertain or where high rewards are expected.
Datasets
The algorithm was evaluated on four distinct environments:
- Pendulum-v0: A classic control task of balancing a pole.
- LunarLanderContinuous-v2: Navigating a craft to a gentle landing.
- FoodLava: A custom 2D navigation task where the agent must reach "food" while avoiding "lava."
- RoboCar: A custom 3D driving task requiring the agent to navigate around obstacles to reach a goal.
The researchers tested the system using both synthetic oracles (automated feedback based on ground-truth rewards) and real human feedback from 62 participants.
Key Insights and Ideas
- Interpretability as a Debugger: The "aha moment" of this paper is that you can look at the reward tree and see exactly where the agent is getting confused. For example, in the RoboCar task, the tree revealed that the agent was being rewarded for facing away from the goal.
- Causal Confusion: In offline settings (learning from a fixed dataset), the model often fell victim to causal confusion. It might reward a behavior that correlates with success (like driving in a specific narrow corridor) rather than the behavior that causes success (reaching the goal).
- Online Correction: The authors found that online learning—where the agent generates new trajectories and gets feedback in real-time—is much better at fixing these misalignments. Humans can see the agent doing something wrong and "reactively" penalize that specific behavior.
- State vs. Action: Interestingly, in all human experiments, the learned trees never split on an "action" dimension. Humans seem to naturally focus on where the agent is (states) rather than what it is doing (actions) when providing feedback.
Key Results
The quantitative results show that tree-structured rewards are surprisingly performant:
- Performance Parity: In tasks like Pendulum and RoboCar, agents trained on learned trees achieved performance indistinguishable from "pilot" agents trained on hand-engineered ground-truth rewards.
- Sample Efficiency: The method reached high fitness levels with only ~600 preference labels, which equates to about one hour of human effort.
Qualitatively, the "report cards" generated from the trees (shown in Figure 6) allowed the researchers to diagnose why an agent might stop short of a goal or develop a bias toward certain regions of the map.
Limitations and Future Work
- Offline Bias: The method is sensitive to the quality of the initial trajectory dataset. If the "pilot" trajectories don't explore the space well, the reward function will be biased.
- Premature Fixing: In online settings, if the reward structure is "fixed" too early, the agent may converge to a sub-optimal policy that it can no longer correct.
- Future Directions: The authors suggest using unsupervised agents to create more diverse initial datasets and exploring ways to integrate these trees with more complex agent architectures that learn "decomposed" value functions.
Summary updated