# Efficient Learning of Differentiable MPC Policies on the GPU via Smoothed ADMM and First-Order Reinforcement Learning

Robotics.world

> Learning an MPC policy end-to-end is attractive because the policy keeps model knowledge and explicit constraints, but it hits two bottlenecks: the sensitivities (gradients) of the optimization…

**arXiv**: 2611.09937 · Preprint · not peer-reviewed

**Published**: 2026-10-13

**Authors**: Jianghan Zhang, Roland Schwan, Gabriel Bravo-Palacios, John Zhang, Thomas Lew, Brian Plancher

## In plain words

Learning an MPC policy end-to-end is attractive because the policy keeps model knowledge and explicit constraints, but it hits two bottlenecks: the sensitivities (gradients) of the optimization solution become nonsmooth or noisy when constraints switch between active and inactive, and every policy evaluation costs a full optimization solve, which makes data-reuse-heavy RL algorithms expensive.

## AI summary

## Overview

**Research area:** Robotics and learning-based control — differentiable model predictive control (MPC), GPU-accelerated optimization, and reinforcement learning for policy training.

**Technical level:** Advanced. The paper builds on sequential quadratic programming (SQP), the alternating direction method of multipliers (ADMM), log-barrier interior-point smoothing, implicit differentiation of KKT systems, and first-order actor–critic RL.

**Scope:** The paper co-designs a GPU-parallel, log-barrier-smoothed differentiable MPC solver (SmoothedTurboMPC) with a first-order RL training pipeline (SHAC), benchmarks solver speed and training throughput, and validates a learned MPC racing policy on a full-scale Lexus LC500.

## What This Paper Is About

Learning an MPC policy end-to-end is attractive because the policy keeps model knowledge and explicit constraints, but it hits two bottlenecks: the sensitivities (gradients) of the optimization solution become nonsmooth or noisy when constraints switch between active and inactive, and every policy evaluation costs a full optimization solve, which makes data-reuse-heavy RL algorithms expensive. The paper's goal is to make both the solver and the learning algorithm efficient enough that MPC policies can be trained at scale on GPUs and then deployed reliably on real hardware.

## Key Contributions

1. **SmoothedTurboMPC solver.** A GPU-parallel differentiable MPC solver that extends TurboMPC by replacing the projection-based inequality update with a log-barrier proximal update. The authors state this is, to their knowledge, the first integration of log-barrier smoothing with ADMM for differentiable nonlinear MPC, giving smooth gradients, exact sensitivities at convergence via implicit differentiation, and efficient GPU execution.
2. **SAQP inner QP solver.** A smoothed ADMM QP solver in which the log-barrier term is kept exactly in the SQP subproblem (rather than replaced by a quadratic approximation), and the barrier proximal step has a closed-form solution — the positive root of a scalar quadratic — so smoothed complementarity holds after every ADMM iteration.
3. **A computation-efficient RL pipeline.** SmoothedTurboMPC is paired with first-order RL using Short-Horizon Actor-Critic (SHAC), which retains rollout MPC solutions and their backward-pass data for a single policy update instead of repeatedly re-evaluating the MPC policy on collected states.
4. **Open-source release and hardware validation.** The advances are integrated into the open-source TurboMPC solver, and the framework is used to train an MPC racing policy with domain randomization that is validated on a full-scale race car.

## Main Findings

- **Smoothing fixes stalled gradient-based learning.** On a double-integrator parameter-learning example (horizon H = 6, control bound −1 ≤ u ≤ 1, gradient descent step η = 0.1, initializations θ₀ ∈ {0.1, 10}), the hard problem shows kinks in the outer loss and jumps in its gradient at active-set changes. The hard and weakly smoothed problems stall, while sufficient smoothing reaches θ* = 1.10 from both initializations and converges faster.
- **Batched GPU scaling beats CPU and GPU baselines.** On the constrained linear-system benchmark, at batch size B = 1 acados is 2.0× faster than SmoothedTurboMPC. At B = 1024, SmoothedTurboMPC is 13.9× faster than acados and 7.1× faster than mpc.pytorch. At horizon H = 320 it is 9.3× faster than acados and 57.8× faster than mpc.pytorch. At state–control dimension n_x + n_u = 96 it is 8.1× faster than acados, while mpc.pytorch runs out of GPU memory. SmoothedTurboMPC also matches TurboMPC's computational performance.
- **Higher end-to-end training throughput.** Sweeping solver batch size M ∈ {16, 32, 64, 128, 256, 512, 1024} at fixed problem batch B = 1024, throughput rises with M, peaking at M = 1024. Using each method's best tested batch size (M = 16 for acados, M = 1024 for mpc.pytorch), the pipeline achieves 3.5× the throughput of acados and 4.4× that of mpc.pytorch.
- **Data reuse is not free for MPC policies.** A profiled comparison per learning iteration shows MPC + PPO takes roughly 10× and MPC + TD3 roughly 27× the wall-clock time of MPC + FORL, because each re-evaluation of an MPC policy requires new optimization solves.
- **Faster, better racing in simulation.** On the closed-oval racing task, MPC-SHAC achieves higher returns than MPC PPO with a 46× wall-clock speedup, training on 3.3 million transitions in 7.0 minutes.
- **Real-vehicle robustness.** On a full-scale Lexus LC500 on a closed course with a puddle at a corner's entry or exit, both controllers approach the puddle at comparable speeds, but the learned policy completes all four trials, including 12 puddle passes, while the nominal MPC spins out in all four trials.

## Methodology in Plain English

The starting point is the observation that the gradient of an MPC solution is obtained by differentiating the optimality conditions of the optimization problem (implicit differentiation), and that these gradients break down when a constraint sits exactly on its boundary — the linear system being solved becomes singular. The fix is to soften each inequality with a logarithmic barrier, which keeps the constraint multipliers and slack variables strictly positive and makes the solution map smooth.

The solver keeps that barrier term inside each SQP iteration rather than approximating it away, so the subproblem is still convex even though it is no longer a pure quadratic. The subproblem is then split and solved with ADMM, but with a bespoke slack update: instead of projecting onto the feasible set, the slack is set by the closed-form solution of a one-dimensional barrier-plus-quadratic problem, which is the positive root of a small quadratic equation. Because that update is a smooth function, smoothed complementarity holds after every iteration, and as the barrier parameter goes to zero both the standard projection and the original hard problem are recovered. Two-sided constraints are handled with a separate barrier per bound, solved by a fixed number of safeguarded Newton steps, which avoids doubling the number of inequality rows. Constraints are also relaxed with a penalized slack during training so the MPC does not become infeasible as the policy changes.

The forward pass exploits the stagewise sparsity of the problem and reuses the factorization of the constant stage-sparse matrix across ADMM iterations; independent problems are solved in parallel across a batch on the GPU. The backward pass uses the exact Lagrangian Hessian, so the QP and NLP linearizations coincide at convergence, and solves a reduced adjoint system with continuously varying inequality weights.

For learning, the neural network maps observations to MPC cost parameters, and actions are sampled from a Gaussian around the MPC's first control. Instead of PPO-style multi-epoch reuse or off-policy replay, the pipeline uses SHAC: it collects a short differentiable rollout, backpropagates once through the environment and the MPC solution map, and reuses the stored MPC solves rather than re-solving. The critic is fit to TD(λ) targets with a slowly updated target network, requiring no additional MPC solves.

## Why This Matters

**Impact on research.** The work reframes the cost of learning with MPC policies: for direct neural policies environment interaction usually dominates, but for MPC policies the repeated optimization solves can dominate instead, which changes which RL algorithms are actually cheap. It also supplies a smoothing scheme that is compatible with ADMM rather than only interior-point solvers, giving the community a differentiable MPC solver that is both gradient-friendly and GPU-batch-friendly, released inside the existing TurboMPC codebase.

**Real-world applications.**

- Autonomous racing and high-performance vehicle control at the limits of tire friction and actuator bounds.
- Safety-critical motion planning for ground robots and autonomous vehicles where constraints must be respected by construction.
- Low-level control of legged and mobile robots, where cost weights are easier to learn than full control policies.
- Any setting needing fast batched, differentiable optimization in the loop — for example trajectory optimization inside learned perception-to-control stacks.

**Industry relevance.** Training time and hardware efficiency translate directly into development cost. The reported 46× wall-clock speedup and 7-minute training runs on 3.3 million transitions make policy iteration practical on a single GPU workstation, and the demonstration on a full-scale vehicle with a puddle disturbance shows the approach survives contact with real-world uncertainty.

## Future Directions

- **Sim-to-real gap beyond a single maneuver.** The hardware validation covers one closed course with puddle disturbances; broader validation across tracks, surfaces, and vehicle platforms is a natural next step.
- **Barrier parameter and solver tuning.** The barrier parameter trades approximation accuracy against smoothness, and its schedule interacts with the adaptive penalty updates; principled selection or annealing strategies remain open.
- **Beyond first-order RL.** The analysis argues against data-reuse-heavy methods because of solve cost; whether second-order or model-based RL variants become attractive once solves are cheaper is an open question.
- **Learned dynamics as surrogate gradients.** The paper notes that learned dynamics could provide surrogate gradients, which would extend the framework beyond settings with a differentiable simulator.

## Target Audience

Robotics and control researchers working on differentiable optimization, MPC, and learning-based control; graduate students and engineers implementing differentiable MPC solvers or RL training pipelines on GPUs; and practitioners in autonomous driving, motorsport, and robot manipulation who need constraint-aware policies that can be trained end-to-end and deployed on real hardware. Readers should be comfortable with constrained optimization and policy-gradient RL to get full value from the derivations.

## Authors’ abstract

Differentiable model predictive control (MPC) enables structured, constraint-aware policies to be optimized end-to-end. However, learning MPC policies faces two bottlenecks: (1) nonsmooth sensitivities at active-set transitions and (2) expensive policy evaluation, since each requires an optimization solve. We first introduce SmoothedTurboMPC, a GPU-parallel differentiable MPC solver combining sequential quadratic programming (SQP) with a log-barrier-smoothed alternating…

[The full abstract on arXiv](https://arxiv.org/abs/2611.09937)

[Read the original paper](https://arxiv.org/abs/2611.09937)

## Related papers

- [MR. POP: Multi-Robot Parallel Optimizing Planner for Almost-Surely Asymptotically Optimal Planning](https://robotics.world/paper/mr-pop-multi-robot-parallel-optimizing-planner-for-almost-surely-2609.30644) 2026-09-25 · cs.RO · Also by Brian Plancher
- [GLASS: Architecture-Tuned, Composable, Device-Side Linear Algebra for Edge Robotics and Beyond](https://robotics.world/paper/glass-architecture-tuned-composable-device-side-linear-algebra-for-edge-2609.28179) 2026-09-23 · cs.RO · Also by Brian Plancher
- [RAYA: Learning Where and When to Intervene for Robot Recovery](https://robotics.world/paper/raya-learning-where-and-when-to-intervene-for-robot-recovery-2609.21690) 2026-09-18 · cs.RO · Also by Brian Plancher
- [AccelMPC: High-Rate, Low-Power FPGA-Accelerated Model Predictive Control for Tiny Drones](https://robotics.world/paper/accelmpc-high-rate-low-power-fpga-accelerated-model-predictive-control-2609.09380) 2026-09-08 · cs.RO · Also by Brian Plancher
- [Full-Order Safety for Nonlinear Reduced-Order MPC](https://robotics.world/paper/full-order-safety-for-nonlinear-reduced-order-mpc-2610.19250) 2026-10-13 · cs.RO · Key terms of the title in common

---

Canonical: https://robotics.world/paper/efficient-learning-of-differentiable-mpc-policies-on-the-gpu-via-2611.09937
