Skip to main content
QUICK REVIEW

[Paper Review] Pontryagin Differentiable Programming: An End-to-End Learning and Control Framework

Wanxin Jin, Zhaoran Wang|arXiv (Cornell University)|Dec 30, 2019
Advanced Control Systems OptimizationEngineering29 citations
TL;DR

This paper introduces Pontryagin Differentiable Programming (PDP), a unified end-to-end framework that differentiates through Pontryagin’s Maximum Principle to enable joint learning of dynamics, policies, and control objectives in optimal control systems. By introducing an auxiliary backward control system, PDP computes analytical gradients of trajectories w.r.t. parameters, enabling efficient training across inverse reinforcement learning, system identification, and control planning tasks on high-dimensional systems like quadrotors and rocket landings.

ABSTRACT

This paper develops a Pontryagin Differentiable Programming (PDP) methodology, which establishes a unified framework to solve a broad class of learning and control tasks. The PDP distinguishes from existing methods by two novel techniques: first, we differentiate through Pontryagin's Maximum Principle, and this allows to obtain the analytical derivative of a trajectory with respect to tunable parameters within an optimal control system, enabling end-to-end learning of dynamics, policies, or/and control objective functions; and second, we propose an auxiliary control system in the backward pass of the PDP framework, and the output of this auxiliary control system is the analytical derivative of the original system's trajectory with respect to the parameters, which can be iteratively solved using standard control tools. We investigate three learning modes of the PDP: inverse reinforcement learning, system identification, and control/planning. We demonstrate the capability of the PDP in each learning mode on different high-dimensional systems, including multi-link robot arm, 6-DoF maneuvering quadrotor, and 6-DoF rocket powered landing.

Motivation & Objective

  • Address the challenge of jointly learning dynamics, policies, and control objectives in high-dimensional systems using a unified framework.
  • Overcome limitations of existing methods in data efficiency and long-term prediction accuracy for system identification and inverse learning.
  • Integrate optimal control theory with differentiable learning to enable end-to-end training with certified, explainable models.
  • Enable joint optimization of unknown system components—dynamics, policy, and cost function—using a single differentiable framework.
  • Provide a scalable, differentiable architecture that supports both model-based reinforcement learning and inverse optimal control.

Proposed method

  • Differentiate through Pontryagin’s Maximum Principle (PMP) to analytically compute gradients of optimal trajectories w.r.t. system parameters.
  • Introduce an auxiliary control system in the backward pass that computes the analytical derivative of the trajectory with respect to parameters.
  • Use standard control tools (e.g., iLQR, DDP) to iteratively solve the auxiliary system, enabling backpropagation through optimal control solutions.
  • Formulate the learning problem as minimizing a loss function $ L(\boldsymbol{\xi}_\theta, \boldsymbol{\theta}) $ subject to the optimal trajectory constraint defined by PMP.
  • Parameterize the system using dynamics $ \boldsymbol{f}_\theta $, policy $ \boldsymbol{\pi}_\theta $, and cost function $ c_\theta $, all differentiable via PMP.
  • Support three learning modes: inverse reinforcement learning (IRL), system identification (SysID), and control/planning, by redefining the loss and constraint functions accordingly.

Experimental results

Research questions

  • RQ1Can we differentiate through optimal control solutions using Pontryagin’s Maximum Principle to enable end-to-end learning of system components?
  • RQ2How can we compute analytical gradients of trajectories w.r.t. parameters in optimal control systems without relying on finite differences?
  • RQ3Can the proposed framework jointly learn dynamics, policies, and cost functions from demonstrations or data with high accuracy and efficiency?
  • RQ4How does the auxiliary control system in the backward pass enable scalable and differentiable optimization in high-dimensional control tasks?
  • RQ5What are the performance gains of PDP over existing methods in system identification, inverse RL, and control planning on complex systems like quadrotors and rockets?

Key findings

  • PDP enables end-to-end training of dynamics, policies, and control objectives by differentiating through the solution of optimal control problems via Pontryagin’s Maximum Principle.
  • The auxiliary control system in the backward pass computes exact analytical gradients of trajectories w.r.t. parameters, avoiding approximation errors from finite differences.
  • In inverse reinforcement learning mode, PDP successfully recovers expert dynamics and cost functions from demonstrations, even when the demonstrations are suboptimal.
  • In system identification mode, PDP achieves accurate dynamics recovery on high-dimensional systems such as a 6-DoF quadrotor and a 6-DoF rocket, using only observed state-input trajectories.
  • In control/planning mode, PDP enables efficient trajectory optimization with differentiable cost functions, demonstrating scalability and convergence on complex systems.
  • The framework demonstrates robust performance across multiple learning modes without architectural or algorithmic reconfiguration, highlighting its generality and end-to-end differentiability.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.