Lune

NeurIPS2023Top-tier venue

Revisiting Implicit Differentiation for Learning Problems in Optimal Control

Ming Xu, Timothy L. Molloy, Stephen Gould

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. 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.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

6 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • DiLQR: Differentiable Iterative Linear Quadratic Regulator via Implicit Differentiation cites Safe Pontryagin Differentiable Programming
  • DiLQR: Differentiable Iterative Linear Quadratic Regulator via Implicit Differentiation cites Theseus: A Library for Differentiable Nonlinear Optimization
  • DiLQR: Differentiable Iterative Linear Quadratic Regulator via Implicit Differentiation cites Pontryagin Differentiable Programming: An End-to-End Learning and Control Framework
  • DiffTORI: Differentiable Trajectory Optimization for Deep Reinforcement and Imitation Learning cites Safe Pontryagin Differentiable Programming
  • DiffTORI: Differentiable Trajectory Optimization for Deep Reinforcement and Imitation Learning cites Theseus: A Library for Differentiable Nonlinear Optimization
  • DiffTORI: Differentiable Trajectory Optimization for Deep Reinforcement and Imitation Learning cites Pontryagin Differentiable Programming: An End-to-End Learning and Control Framework
  • DiffOP: Reinforcement Learning of Optimization-Based Control Policies via Implicit Policy Gradients cites Pontryagin Differentiable Programming: An End-to-End Learning and Control Framework
  • Safe Pontryagin Differentiable Programming cites Pontryagin Differentiable Programming: An End-to-End Learning and Control Framework
  • Theseus: A Library for Differentiable Nonlinear Optimization cites Differentiation of Blackbox Combinatorial Solvers
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers6

  1. Accelerating Optimization via Differentiable Stopping TimeZhonglin Xie, Yiman Fong, Haoran Yuan, Zaiwen WenNeurIPS 2025 · 1 citation
  2. DiffOP: Reinforcement Learning of Optimization-Based Control Policies via Implicit Policy GradientsYuexin Bian, Jie Feng, Yuanyuan ShiAAAI 2026 · 1 citation
  3. DiLQR: Differentiable Iterative Linear Quadratic Regulator via Implicit DifferentiationShuyuan Wang, Philip D. Loewen, Michael G. Forbes, R. Bhushan Gopaluni et al.ICML 2025
  4. DiffTORI: Differentiable Trajectory Optimization for Deep Reinforcement and Imitation LearningWeikang Wan, Ziyu Wang, Yufei Wang, Zackory Erickson et al.NeurIPS 2024
  5. BADControl: Backdoor Attacks Against Control SystemsLuis Burbano, Hampei Sasahara, Ruoyu Song, Z. Berkay Celik et al.USENIX Security 2026

Builds on7

  1. Differentiation of Blackbox Combinatorial SolversMarin Vlastelica Pogancic, Anselm Paulus, Vít Musil, Georg Martius et al.ICLR 2020 · 341 citations
  2. Fast Differentiable Sorting and RankingMathieu Blondel, Olivier Teboul, Quentin Berthet, Josip DjolongaICML 2020 · 285 citations
  3. Pontryagin Differentiable Programming: An End-to-End Learning and Control FrameworkWanxin Jin, Zhaoran Wang, Zhuoran Yang, Shaoshuai MouNeurIPS 2020 · 133 citations
  4. Theseus: A Library for Differentiable Nonlinear OptimizationLuis Pineda, Taosha Fan, Maurizio Monge, Shobha Venkataraman et al.NeurIPS 2022 · 124 citations
  5. Safe Pontryagin Differentiable ProgrammingWanxin Jin, Shaoshuai Mou, George J. PappasNeurIPS 2021 · 65 citations

Related papers

  1. Alternating Differentiation for Optimization LayersHaixiang Sun, Ye Shi, Jingya Wang, Hoang Duong Tuan et al.ICLR 2023 · 3 citations
  2. Infinite-Horizon Differentiable Model Predictive ControlSebastian East, Marco Gallieri, Jonathan Masci, Jan Koutník et al.ICLR 2020 · 39 citations
  3. A Penalty Approach For Differentiation Through Black-box Quadratic Programming SolversYuxuan Linghu, Zhiyuan Liu, Qi DengICML 2026 · 1 citation
  4. Zeroth-Order Optimization with Trajectory-Informed Derivative EstimationYao Shu, Zhongxiang Dai, Weicong Sng, Arun Verma et al.ICLR 2023
  5. Efficient Differentiable Simulation of Articulated BodiesYi-Ling Qiao, Junbang Liang, Vladlen Koltun, Ming C. LinICML 2021 · 68 citations
Dusk over the sea between two cliffs drawn in fine vertical lines