Revisiting Implicit Differentiation for Learning Problems in Optimal Control

Ming Xu, Timothy Molloy, Stephen Gould
10/1/2023
17 citations

No official code found. Best implementation: mingu6/Implicit-Diff-Optimal-Control (15 stars, Python, MIT, last commit 2025-10-30).

Abstract

This paper proposes a new method for differentiating through optimal trajectories arising from non-convex, constrained discrete-time optimal control (COC) problems using the implicit function theorem (IFT). Previous works solve a differential Karush-Kuhn-Tucker (KKT) system for the trajectory derivative, and achieve this efficiently by solving an auxiliary Linear Quadratic Regulator (LQR) problem.

Show full abstract

In contrast, we directly evaluate the matrix equations which arise from applying variable elimination on the Lagrange multiplier terms in the (differential) KKT system. By appropriately accounting for the structure of the terms within the resulting equations, we show that the trajectory derivatives scale linearly with the number of timesteps. Furthermore, our approach allows for easy parallelization, significantly improved scalability with model size, direct computation of vector-Jacobian products and improved numerical stability compared to prior works. As an additional contribution, we unify prior works, addressing claims that computing trajectory derivatives using IFT scales quadratically with the number of timesteps. We evaluate our method on a both synthetic benchmark and four challenging, learning from demonstration benchmarks including a 6-DoF maneuvering quadrotor and 6-DoF rocket powered landing.

View on arXivView PDF

Code Implementations(1)

MIT

Reference implementation for the paper "Revisiting Implicit Differentiation for Learning Problems in Optimal Control" (NeurIPS 2023).

151PythonOct 23, 20231 years agoMIT

Similar Papers

Cite this paper

@article{xu2023revisiting,
  title  = {Revisiting Implicit Differentiation for Learning Problems in Optimal Control},
  author = {Ming Xu and Timothy Molloy and Stephen Gould},
  year   = {2023},
  eprint = {2310.14468},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2310.14468},
  journal = {NEURIPS 2023 2023}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2310.14468.svg)](https://codeofpaper.com/paper/2310.14468)

Discussion