A Differential Dynamic Programming Framework for Inverse Reinforcement Learning
Kun Cao, Xinhang Xu, Wanxin Jin, Karl H. Johansson, Lihua Xie
TL;DR
We address the inverse reinforcement learning (IRL) problem under general nonlinear, constrained dynamics by developing a differential dynamic programming ($DDP$) framework that can recover cost, dynamics, and constraint parameters from demonstrations. The inner loop solves a constrained OC problem with an augmented interior-point Bellman equation, enabling an efficient one-step gradient of the outer objective with respect to $m{ heta}$; this gradient is shown to be equivalent to differentiating the PMP conditions ($PMP$). A closed-loop IRL loss is proposed to capture the feedback nature of real demonstrations, leading to improved recoverability under certain rank conditions. The framework is validated on four numerical systems and a real quadrotor, demonstrating the practical benefits of closed-loop IRL over open-loop IRL and confirming the theoretical recoverability results.
Abstract
A differential dynamic programming (DDP)-based framework for inverse reinforcement learning (IRL) is introduced to recover the parameters in the cost function, system dynamics, and constraints from demonstrations. Different from existing work, where DDP was used for the inner forward problem with inequality constraints, our proposed framework uses it for efficient computation of the gradient required in the outer inverse problem with equality and inequality constraints. The equivalence between the proposed method and existing methods based on Pontryagin's Maximum Principle (PMP) is established. More importantly, using this DDP-based IRL with an open-loop loss function, a closed-loop IRL framework is presented. In this framework, a loss function is proposed to capture the closed-loop nature of demonstrations. It is shown to be better than the commonly used open-loop loss function. We show that the closed-loop IRL framework reduces to a constrained inverse optimal control problem under certain assumptions. Under these assumptions and a rank condition, it is proven that the learning parameters can be recovered from the demonstration data. The proposed framework is extensively evaluated through four numerical robot examples and one real-world quadrotor system. The experiments validate the theoretical results and illustrate the practical relevance of the approach.
