Abstract
The performance of imitation learning is typically upper-bounded by the performance of the demonstrator. While recent empirical results demonstrate that ranked demonstrations allow for better-than-demonstrator performance, preferences over demonstrations may be difficult to obtain, and little is known theoretically about when such methods can be expected to successfully extrapolate beyond the performance of the demonstrator. To address these issues, we first contribute a sufficient condition for better-than-demonstrator imitation learning and provide theoretical results showing why preferences over demonstrations can better reduce reward function ambiguity when performing inverse reinforcement learning. Building on this theory, we introduce Disturbance-based Reward Extrapolation (D-REX), a ranking-based imitation learning method that injects noise into a policy learned through behavioral cloning to automatically generate ranked demonstrations. These ranked demonstrations are used to efficiently learn a reward function that can then be optimized using reinforcement learning. We empirically validate our approach on simulated robot and Atari imitation learning benchmarks and show that D-REX outperforms standard imitation learning approaches and can significantly surpass the performance of the demonstrator. D-REX is the first imitation learning approach to achieve significant extrapolation beyond the demonstrator's performance without additional side-information or supervision, such as rewards or human preferences. By generating rankings automatically, we show that preference-based inverse reinforcement learning can be applied in traditional imitation learning settings where only unlabeled demonstrations are available.
Introduction
In traditional imitation learning (IL), an agent attempts to mimic a demonstrator’s behavior. However, a fundamental limitation of this approach is the performance ceiling: the agent is typically "upper-bounded" by the quality of the teacher. If the demonstrator is suboptimal, the resulting agent will likely be as well.
To achieve better-than-demonstrator performance, previous methods relied on hand-crafted reward functions or human supervisors to rank trajectories. While ranking-based methods like T-REX showed promise, they required extensive human labeling. D-REX (Disturbance-based Reward Extrapolation) addresses this by automatically generating ranked demonstrations without human intervention, allowing agents to learn the underlying intent and surpass their teachers.
Methodology: The D-REX Pipeline
D-REX utilizes a three-stage pipeline to transform unlabeled, suboptimal demonstrations into a high-performing policy:
- Behavioral Cloning (BC): The process begins with standard imitation learning to create a "cloned" policy ($\pi_{BC}$) that approximates the demonstrator's performance.
- Automatic Ranking via Noise Injection: This is the core innovation. D-REX assumes that adding noise to a competent policy will generally degrade its performance. By injecting varying levels of noise (using an $\epsilon$-greedy approach) into the cloned policy, the system generates a set of trajectories. These are automatically ranked: trajectories with higher noise levels are assigned lower ranks.
- Reward Learning and Optimization: These automatically ranked trajectories are used to train a reward-learning algorithm (T-REX). The algorithm identifies a reward function that explains the preference for low-noise trajectories over high-noise ones. Finally, Reinforcement Learning (RL) is used to optimize a new policy based on this learned reward.
Theoretical Insights
The success of D-REX is grounded in the idea that "noise reveals intent." Features prevalent in noise-free trajectories but absent in noisy ones likely correlate with the true reward. Mathematically, rankings provide half-space constraints that narrow the "feasible region" of possible reward functions much more effectively than standard Inverse Reinforcement Learning (IRL). This reduction in ambiguity allows the agent to extrapolate the reward function beyond the states seen in the demonstrations.
Experimental Results
D-REX was evaluated on MuJoCo robotics tasks and Atari 2600 games using suboptimal demonstrations.
- Robotics: In the Half-Cheetah task, D-REX achieved a 418% performance increase over the best demonstration. In Hopper, it improved performance by 77%.
- Atari: D-REX surpassed the best demonstration in 6 out of 7 games. Notably, in Qbert*, it discovered a game mechanic loophole to achieve exceptionally high scores.
- Comparative Performance: D-REX consistently outperformed standard Behavioral Cloning and Generative Adversarial Imitation Learning (GAIL), demonstrating that extrapolation is more robust than simple mimicry.
Conclusion and Limitations
D-REX is the first imitation learning approach to achieve significant extrapolation without additional supervision. However, it relies on the "monotonicity assumption"—that noise always degrades performance—which may not hold in all edge cases. Additionally, sparse reward environments like Pong remain challenging. Future work may explore "imitation from observation," where agents learn from visual data alone without access to the demonstrator's specific actions.
Summary updated