TL;DR
This paper introduces a new framework for Inverse Reinforcement Learning (IRL) that leverages Differential Dynamic Programming (DDP) to efficiently learn cost functions and constraints from expert demonstrations. By shifting from a standard "open-loop" imitation loss to a novel "closed-loop" loss, the authors enable robots to recover the true underlying reward structures even when expert data is noisy or generated via feedback control.
What Problem Does This Paper Address?
Inverse Reinforcement Learning (IRL) is the art of figuring out what an expert is trying to optimize (the cost function) just by watching them perform a task. This is traditionally a "bi-level" optimization nightmare: the "outer loop" updates the cost function, while the "inner loop" has to solve a full Reinforcement Learning problem to see if the new cost matches the expert's behavior.
Existing methods face two major hurdles:
- Computational Inefficiency: Solving the inner RL problem repeatedly is slow, especially for high-dimensional robots.
- The "Open-Loop" Bias: Most IRL methods assume experts provide "open-loop" trajectories (a fixed sequence of actions). In reality, experts use closed-loop feedback—they adjust their actions based on current errors. If you use a standard imitation loss (like Mean Squared Error on positions) on feedback-driven data, the resulting cost function is often mathematically biased and fails to generalize.
Methods
The authors propose a unified DDP-based framework to tackle these issues:
- DDP-based Gradient Solver: Instead of treating the inner RL solver as a "black box" or unrolling its iterations (which is memory-intensive), they differentiate the Bellman optimality equations. They prove that the gradient needed for the outer loop can be computed by performing a single-step DDP recursion on an augmented system where the learning parameters are treated as additional states.
- Interior-Point DDP: To handle real-world constraints (like "don't hit the wall" or "stay within torque limits"), they integrate a primal-dual interior-point method directly into the DDP recursions.
- Closed-Loop Loss Function: This is the "secret sauce." Instead of just matching $(x, u)$ trajectories, they propose a loss function that matches the feedback policy. It accounts for how the expert reacts to perturbations, leading to an unbiased estimation of the cost function even with limited or noisy data.
Datasets
The framework was evaluated on several complex robotic simulations and one real-world setup:
- Numerical Simulations: Cartpole, a 13-dimensional Quadrotor, a Two-link robot arm, and a Rocket landing scenario.
- Real-World Experiment: A custom-built tethered quadrotor system in an indoor arena equipped with a motion capture system. The task involved navigating through gates with partially unknown geometry.
Key Insights and Ideas
- DDP is more than a solver: While DDP is a classic tool for solving control problems, the authors realized its intermediate matrices (the $Q$-terms) are exactly what's needed to compute analytical gradients for IRL.
- Vectorization Wins: For high-dimensional systems (like the 13D quadrotor), the DDP-based gradient approach is significantly faster than methods based on Pontryagin’s Maximum Principle (PMP) because it uses a more compact, vectorized derivation.
- Feedback is Information: In a closed-loop system, the "noise" or deviations an expert corrects for are actually clues about their control law. By matching the variation of the policy rather than just the trajectory, the algorithm learns a much more robust cost function.
Key Results
- Speedup: For high-dimensional systems (Quadrotor and Rocket), the DDP-based gradient computation was faster than state-of-the-art PMP-based methods (like PDP).
- Unbiased Learning: In noisy environments, the proposed closed-loop IRL successfully recovered the ground-truth parameters, while the standard open-loop IRL produced biased results that worsened as noise increased.
- Real-World Generalization: In the quadrotor gate-flying task, the cost function learned via the closed-loop method allowed the robot to successfully navigate even when gate positions were changed or the planning horizon was extended. The open-loop version, by contrast, failed to fly through the gates in these new scenarios.
Limitations and Future Work
- Known Dynamics: The current framework assumes the system dynamics are either known or can be identified beforehand. It does not yet handle "blind" IRL where the physics model is entirely unknown.
- Deterministic Focus: While it handles noise in demonstrations, the underlying DDP formulation is primarily deterministic.
- Future Directions: The authors suggest extending this framework to multi-agent systems (where multiple experts interact) and fully stochastic systems where the environment itself is unpredictable.
Summary updated