TL;DR
Distributionally Robust Imitation Learning (DRoIL) provides a framework for learning from experts who might be noisy or suboptimal. By framing imitation as a minimax game and optimizing over state-action marginals, DRoIL is both more robust than traditional Inverse Reinforcement Learning (IRL) and significantly faster to train, avoiding the need to repeatedly solve a reinforcement learning problem in an inner loop.
The Challenge of Suboptimal Experts
Imitation learning typically relies on a strong assumption: the expert demonstrations are optimal. In the real world, however, experts make mistakes, and data is often noisy. Standard approaches like Behavioral Cloning (BC) suffer from "covariate shift"—compounding errors when the agent drifts from the expert's path. Conversely, Inverse Reinforcement Learning (IRL) tries to find a reward function that makes the expert look perfect, which can lead to fragile policies if the expert was actually flawed.
Furthermore, existing "robust" imitation learning methods often involve solving a game between a learner and an adversary. Previous versions of these games were computationally brutal, sometimes requiring exponential time relative to the state-space size and decision horizon. The authors set out to make robust imitation learning both theoretically grounded and computationally practical.
Introducing DRoIL
The authors introduce DRoIL, which treats imitation learning as a two-player zero-sum game:
- The Adversary: Tries to find a distribution over policies that maximizes the loss (the "worst-case" scenario) while still matching the feature statistics of the expert's demonstrations.
- The Learner: Tries to find a policy that minimizes this worst-case loss.
Key Innovations
- Generalized Entropy: The authors prove that MaxEnt IRL (a gold standard in the field) is actually a special case of DRoIL using a specific logarithmic loss. This allows DRoIL to use a variety of loss functions tailored to specific tasks.
- State-Action Marginals: Instead of optimizing over the massive space of all possible policies (which is exponential), they transform the objective into a convex optimization problem over state-action marginals. This reduces the number of variables to a polynomial number, making it much faster.
- No Inner RL Loop: Unlike many IRL methods that require running a full reinforcement learning algorithm every time the reward estimate changes, DRoIL’s formulation allows for direct optimization of the policy.
Key Insights and Ideas
- MaxEnt IRL is a subset of DRoIL: The realization that Maximum Entropy IRL is just DRoIL with a log-loss function reframes IRL not just as reward-finding, but as a specific type of robust optimization.
- Loss Function Flexibility: Because DRoIL isn't tied to log-loss, practitioners can plug in task-specific losses. For example, in navigation, using Euclidean distance as a loss function performs better than a simple 0-1 "right or wrong" loss because it understands that being near the target is better than being far away.
- Efficiency through Duality: By using the dual form of the optimization problem and focusing on marginal probabilities (how often we visit a state-action pair), they bypass the "Double Oracle" method's exponential complexity.
Experimental Results
The paper evaluates the algorithm on two main environments: a synthetic 2D GridWorld navigation task and a complex Highway Driving Simulator where an agent must navigate a three-lane highway.
- Speedup: In GridWorld tests, as the state space grew, DRoIL remained efficient while the previous state-of-the-art (Double Oracle, or DO) slowed down significantly. For a state space of size 5500, DRoIL converged in 881 seconds compared to 4970 seconds for the baseline.
- Robustness to Noise: In the highway driving task, the "expert" data was intentionally sampled from a stochastic policy to simulate noisy, real-world behavior. As the number of noisy expert demonstrations increased, traditional methods actually saw their performance degrade because they overfit to the noise. DRoIL’s robust formulation allowed it to maintain a low misprediction rate and high expected value.
- Transferability: DRoIL outperformed competitors not just in the environment it was trained in, but also when transferred to new, randomized highway environments.
Limitations and Future Work
The current optimization method is primarily designed for discrete or low-dimensional decision processes. While the theory is sound, the specific marginal-based optimization doesn't immediately scale to the continuous, high-dimensional spaces typical of deep reinforcement learning. The authors note that a logical next step is connecting DRoIL to the "Generalized Exponential Family" to allow the use of deep neural networks as function approximators, which would enable its use in robotics and complex computer vision tasks.
Summary updated