Differentiable Model Predictive Control on the GPU

Emre Adabag, Marcus Greiff, John Subosits, Thomas Lew
10/7/2025
19 citations
math.OCcs.LGeess.SY
rl

No official code found. Best implementation: ToyotaResearchInstitute/diffmpc (179 stars, Jupyter Notebook, last commit 2025-10-24). 1 more below.

Abstract

Differentiable model predictive control (MPC) offers a powerful framework for combining learning and control. However, its adoption has been limited by the inherently sequential nature of traditional optimization algorithms, which are challenging to parallelize on modern computing hardware like GPUs.

Show full abstract

In this work, we tackle this bottleneck by introducing a GPU-accelerated differentiable optimization tool for MPC. This solver leverages sequential quadratic programming and a custom preconditioned conjugate gradient (PCG) routine with tridiagonal preconditioning to exploit the problem's structure and enable efficient parallelization. We demonstrate substantial speedups over CPU- and GPU-based baselines, significantly improving upon state-of-the-art training times on benchmark reinforcement learning and imitation learning tasks. Finally, we showcase the method on the challenging task of reinforcement learning for driving at the limits of handling, where it enables robust drifting of a Toyota Supra through water puddles.

View on arXivView PDF

Code Implementations(2)

Code implementations of this paper
RepositoryTypeStarsLanguageLicenseLast commit
ToyotaResearchInstitute/diffmpcCommunity179Jupyter Notebook–2025-10-24
andrewrosemberg/DiffMPCGPU.jlCommunity0JuliaMIT2025-11-24
MIT

Differentiable Model Predictive Control on the GPU

00JuliaNov 23, 20251 years agoMIT

Differentiable Model Predictive Control on the GPU

17911Jupyter Notebook, PythonOct 7, 20251 years agoNOASSERTION

Similar Papers

Cite this paper

@article{adabag2025differentiable,
  title  = {Differentiable Model Predictive Control on the GPU},
  author = {Emre Adabag and Marcus Greiff and John Subosits and Thomas Lew},
  year   = {2025},
  eprint = {2510.06179},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2510.06179v1}
}

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/2510.06179.svg)](https://codeofpaper.com/paper/2510.06179)

Discussion