Abstract
We propose a new framework for imitation learning—treating imitation as a two-player ranking-based game between a policy and a reward. In this game, the reward agent learns to satisfy pairwise performance rankings between behaviors, while the policy agent learns to maximize this reward. In imitation learning, near-optimal expert data can be difficult to obtain, and even in the limit of infinite data cannot imply a total ordering over trajectories as preferences can. On the other hand, learning from preferences alone is challenging as a large number of preferences are required to infer a high-dimensional reward function, though preference data is typically much easier to collect than expert demonstrations. The classical inverse reinforcement learning (IRL) formulation learns from expert demonstrations but provides no mechanism to incorporate learning from offline preferences and vice versa. We instantiate the proposed ranking-game framework with a novel ranking loss giving an algorithm that can simultaneously learn from expert demonstrations and preferences, gaining the advantages of both modalities. Our experiments show that the proposed method achieves state-of-the-art sample efficiency and can solve previously unsolvable tasks in the Learning from Observation (LfO) setting.
Introduction
Imitation Learning (IL) is traditionally divided into two categories: Learning from Demonstrations (LfD), which utilizes both states and actions, and Learning from Observation (LfO), which relies solely on expert states. Current approaches face significant hurdles: the inherent instability of min-max adversarial optimization, the inability to flexibly combine expert demonstrations with offline preferences, and the heavy exploration burden in LfO settings where expert actions are unknown.
As shown in the comparison above, rank-game addresses these gaps by providing a unified framework that utilizes both expert data and offline preferences through a novel ranking loss, distinguishing it from prior methods that typically focus on only one data modality.
The Ranking Game Framework
The core of this method is redefining imitation as a ranking game. Instead of a binary discriminator, a reward agent learns to satisfy pairwise performance rankings, while the policy agent optimizes to maximize that reward signal.
Key Components
- Ranking Loss ($L_k$): A regression-based loss that enforces a specific performance gap ($k$) between ranked behaviors. This replaces the standard "supremum loss," resulting in a smoother and more predictable optimization landscape.
- Data Augmentation ("auto"): The framework employs a "mixup" strategy in trajectory space to create synthetic intermediate trajectories. This provides a dense, shaped reward signal that guides the policy agent more effectively toward expert behavior.
- Stackelberg Game Formulation: The authors explore two variants: Policy as Leader (PAL), which is better for adapting to expert intent, and Reward as Leader (RAL), which offers greater robustness to changes in environment dynamics.
Key Insights
Moving from discrimination to regression simplifies the optimization problem significantly. By treating preferences as regularizers, the framework prevents the reward agent from overfitting to specific expert trajectories, providing smoother gradients for the policy. Furthermore, by using state-only rewards in LfO, the learned reward function becomes "dynamics-disentangled," potentially allowing for transfer between agents with different physical morphologies.
Experimental Results
The researchers evaluated rank-game on high-dimensional benchmarks including MuJoCo locomotion and complex Adroit manipulation tasks (Door-v0, Pen-v0).
- State-of-the-Art Efficiency: In MuJoCo tasks, the RANK-RAL variant outperformed top-tier baselines like OPOLO and DACfO in sample efficiency, often reaching near-expert performance with just a single expert trajectory.
- Solving Complex Tasks: Previous LfO baselines failed on the sparse-reward Adroit tasks. By incorporating 10-50 offline preferences, rank-game successfully solved these complex manipulation problems.
- Robustness: The method maintained high performance even when 60% of the provided offline preferences were intentionally corrupted, demonstrating remarkable resilience to noise.
Limitations and Future Work
While powerful, the framework currently requires manual tuning of the ranking gap ($k$) and reward shaping parameters. Future work aims to automate these hyperparameters and develop more principled methods for handling highly noisy real-world human preferences. Additionally, while the policies are highly effective, the learned reward functions are not yet fully robust for reuse across entirely different tasks.
Summary updated