Differentiable Model Predictive Control on the GPU
Emre Adabag (TRI), Marcus Greiff, John Subosits, Thomas Lew
International Conference on Learning Representations 2026 · Oral
Overview
In the realm of robotic control, particularly for high-performance and safety-critical applications like autonomous driving at the limits of handling, deploying robust policies remains a formidable challenge. Real-world environments are inherently uncertain, with unpredictable factors like changing tire friction, road conditions, or vehicle dynamics deviating from idealized models. This talk, presented by Emre Adabag from the Toyota Research Institute (TRI) alongside co-authors Marcus Greiff, John Subosits, and Thomas Lew, introduces a novel framework for Differentiable Model Predictive Control (DiffMPC) on the GPU, aiming to bridge the gap between the strong physical priors of model-based control and the robust generalization capabilities of data-driven learning.

Key moments
- 0:00 Challenge of deploying robust robot control policies
- 2:00 MPC for driving at limits: benefits and challenges
- 4:00 The core idea: combining model-based and learning-based control
- 7:30 Technical insight: Differentiable MPC on the GPU
- 9:00 Real-world demo: Toyota Supra drifting through puddles
- 10:30 Zero-shot generalization from figure-eight to donut drifting
- 13:20 Q&A: Challenges of bringing MPC to the GPU
Differentiable Model Predictive Control on the GPU
Speakers: Emre Adabag (TRI); Marcus Greiff; John Subosits; Thomas Lew
Conference: ICLR 2026
YouTube: https://slideslive.com/39062058
Overview
In the realm of robotic control, particularly for high-performance and safety-critical applications like autonomous driving at the limits of handling, deploying robust policies remains a formidable challenge. Real-world environments are inherently uncertain, with unpredictable factors like changing tire friction, road conditions, or vehicle dynamics deviating from idealized models. This talk, presented by Emre Adabag from the Toyota Research Institute (TRI) alongside co-authors Marcus Greiff, John Subosits, and Thomas Lew, introduces a novel framework for Differentiable Model Predictive Control (DiffMPC) on the GPU, aiming to bridge the gap between the strong physical priors of model-based control and the robust generalization capabilities of data-driven learning.
The core contribution of this work lies in transforming traditionally slow, CPU-bound optimization problems into highly parallelizable, GPU-native computations. By leveraging the implicit function theorem and carefully designed GPU acceleration techniques, the team has achieved significant speedups for both the forward and backward passes of MPC, making it a viable and efficient policy class for reinforcement learning and imitation learning. This breakthrough not only accelerates the training of complex control policies but also enables the deployment of highly robust controllers, exemplified by a Toyota Supra autonomously drifting through simulated and real-world puddles with zero-shot generalization. The work represents a substantial step towards building more reliable and adaptable autonomous systems in the face of real-world variability.
Background
▶ Watch: Challenge of deploying robust robot control policies (0:00)
The aspiration to deploy sophisticated robot policies, such as autonomously drifting two Supras in tandem, often belies the extensive hyperparameter tuning and numerous failures encountered during development. This difficulty stems from the inherent uncertainty and variability of the real world. Machine learning has offered a compelling solution to this challenge: learning in randomized simulation. By exposing agents, such as walking robots, to diverse simulated environments—ranging from slippery to grippy surfaces, stairs, ascents, and descents—they build up robustness that translates to effective real-world deployment. The central question driving this research is whether this paradigm can be effectively applied to the demanding domain of driving at the limits of handling.
Currently, tasks like racing and drifting predominantly rely on Model Predictive Control (MPC). MPC operates by utilizing a predictive model of the system's state evolution over time and, at each time step, solves an optimization problem to determine optimal control inputs (e.g., steering, throttle). Its widespread adoption in high-performance control is due to several advantages: it is data-efficient, reliable, interpretable, allows for the enforcement of explicit constraints, and incorporates strong physical priors. These attributes make it exceptionally well-suited for scenarios where precise, predictable behavior is critical.
However, MPC is not without its limitations. Its performance fundamentally depends on the accuracy of its underlying predictive model, which is always an approximation. Real-world conditions can cause model-plant mismatch; for instance, tire friction changes with weather, throttle response varies with engine temperature, or suspension stiffness shifts due to wear. Such discrepancies make deploying MPC policies robustly in dynamic, uncertain environments challenging. The overarching problem, therefore, is to combine the best aspects of model-based control (strong priors, interpretability) with the robustness and generalization capabilities offered by learning-based control, without inheriting the traditional computational bottlenecks.
Key Findings
▶ Watch: The core idea: combining model-based and learning-based control (4:00)
The research presents several pivotal contributions that collectively advance the state-of-the-art in robust control for autonomous systems:
- Introduction of a New Tool for Differentiable Model Predictive Control (DiffMPC): The team developed a novel framework that makes the entire MPC optimization process differentiable. This allows the parameters of the MPC controller—such as cost weights, dynamics constants, or even model parameters—to be optimized directly using gradient-based learning methods, integrating MPC seamlessly into machine learning pipelines.
- Significant Acceleration on the GPU: A primary bottleneck for learning with optimization-based policies has traditionally been their sequential, CPU-bound nature. This work successfully re-architects MPC and DiffMPC to run efficiently on GPUs, achieving substantial speedups. Specifically, the method demonstrated 4 to 20 times faster performance on the forward pass and 6 to 19 times faster performance on the backward pass compared to existing state-of-the-art differentiable MPC implementations, including those built on PyTorch and JAX. This acceleration is critical for enabling batch processing and scalability in reinforcement learning.
- Demonstrated Robustness and Zero-Shot Generalization via Reinforcement Learning: The utility of GPU-native DiffMPC was powerfully showcased through a real-world robotics experiment. The system reliably drifted a Toyota Supra through puddles by training the differentiable MPC policy with reinforcement learning in randomized simulation. Crucially, the policy exhibited zero-shot generalization, meaning it was trained solely on figure-eights in simulation but could then flawlessly execute both figure-eights and donuts through puddles in the real world without any additional real-world training. This highlights DiffMPC's ability to build data-efficient robustness to environmental uncertainties and leverage the strong priors of model-based control to generalize effectively to novel tasks.
Technical Deep Dive
▶ Watch: Technical insight: Differentiable MPC on the GPU (7:30)
The fundamental premise of this work is to merge the strengths of model-based control with learning-based paradigms by treating differentiable MPC as a structured policy class for data-driven learning. While both neural networks and MPC take in a state and output control, parameterized by weights or dynamics constants/cost weights respectively, the former excels at parallel computation and scalability, while the latter traditionally suffers from being slow, sequential, and CPU-bound. The core technical innovation is to overcome this bottleneck by porting the entire DiffMPC pipeline to the GPU.
Model Predictive Control, in its iterative form, typically involves three main steps:
- Forming a convex approximation: The initial non-linear optimization problem is linearized around a current trajectory, yielding a local convex approximation.
- Solving the convex approximation: This step, often the most computationally intensive, involves solving a sequence of quadratic programs (QPs) or linear systems.
- Applying a line search: After obtaining a candidate step direction from the QP solution, a line search determines the optimal step size to ensure sufficient progress towards the optimum while maintaining feasibility.
The key insight for GPU acceleration is recognizing that all three of these steps contain parallel components and independent subproblems. The second step, solving the linear systems derived from the convex approximation, is particularly amenable to parallelization. Prior research from this group has already demonstrated effective methods for mapping these trajectory optimization problems onto GPU architectures, enabling efficient parallel solves for the linear systems.
Making MPC differentiable is achieved through the Implicit Function Theorem. For an optimization problem defined by its Karush-Kuhn-Tucker (KKT) conditions, the implicit function theorem allows for the computation of gradients of the optimal solution with respect to the problem parameters. Crucially, this typically involves solving an additional linear system. The breakthrough here is that this "backward pass" linear system has an identical structure to the linear system solved during the "forward pass" (step 2 of MPC). This structural similarity is paramount, as it means the same GPU-native parallel solvers developed for the forward pass can be directly reused for the backward pass. This enables the entire DiffMPC process—from problem formulation to optimization and gradient computation—to reside and execute efficiently on the GPU, facilitating high batch sizes and rapid iteration cycles for learning.
The parameters being learned in this context are not neural network weights directly, but rather the underlying parameters that define the MPC problem itself. These can include cost weights (e.g., penalizing deviation from a reference trajectory, control effort), dynamics constants (e.g., tire friction coefficients, vehicle mass, suspension parameters), or even parameters of the system constraints. By learning these parameters, the MPC policy can adapt to new environments or tasks, effectively combining the model-based structure with data-driven adaptation.
Regarding constraint handling, the framework inherently supports equality constraints, which are typically used to encode system dynamics. For inequality constraints, which are common in real-world control (e.g., joint limits, maximum steering angle, collision avoidance), the problem becomes more complex due to potential discontinuities in the loss landscape. While not the primary focus of the presented work's core contribution, the speaker acknowledged several established methods to address this:
- Augmented Lagrangian methods: These wrap the optimization problem in an outer loop, iteratively updating Lagrange multipliers and penalty terms.
- Active set methods: These explicitly identify the set of active inequality constraints at each iteration.
- Barrier methods: These convert inequality constraints into smooth penalty terms added to the cost function, which become infinitely large as the constraint boundary is approached.
- Implementing inequalities directly in the cost: Penalizing violations.
The team's repository includes an example using an augmented Lagrangian approach for inequality constraints, demonstrating its practical applicability within their GPU-native framework. The overall "GPU-first" design philosophy, rather than a mere porting of CPU-bound algorithms, is highlighted as essential for achieving the observed performance gains and scalability.
Experimental Setup & Results
▶ Watch: Zero-shot generalization from figure-eight to donut drifting (10:30)
The primary experimental validation of the GPU-native Differentiable Model Predictive Control (DiffMPC) focused on demonstrating its ability to learn robust control policies for highly dynamic tasks and generalize them effectively to real-world scenarios.
The core experimental setup involved training a differentiable MPC policy using reinforcement learning (RL). The training was conducted entirely in a simulated environment where various forms of environmental uncertainty were introduced. A key example was the introduction of puddles on the simulated track. The RL agent was rewarded for reliably drifting through these puddles, requiring it to learn to adapt its control strategy to sudden changes in tire-to-surface grip.
A crucial aspect of the training methodology was the use of domain randomization within the simulation, which allowed the policy to encounter a wide range of conditions that mimic real-world variability. This approach, common in learning-based control, aims to build robustness directly into the policy.
The most compelling result was the zero-shot deployment of the trained policy to a real Toyota Supra vehicle. A policy trained exclusively in simulation to drift a figure-eight through puddles was deployed directly to the physical car without any further fine-tuning or real-world data collection. The policy successfully executed the learned figure-eight drift through actual puddles. Furthermore, it demonstrated remarkable zero-shot generalization to a novel task: the same policy, without retraining, was able to successfully drift a donut through puddles in the real world. This capability underscores the power of combining model-based priors with learning-based robustness, where the structured nature of MPC allows for more robust generalization than a black-box neural network might achieve.
Beyond the real-world demonstration, the paper also presented quantitative benchmarks comparing the performance of their GPU-native DiffMPC implementation against state-of-the-art differentiable MPC solvers. These baselines included methods implemented in popular machine learning frameworks like PyTorch and JAX, utilizing various underlying optimization techniques. The results showcased significant speedups:
- Forward Pass: The new DiffMPC method achieved a speedup of 4 to 20 times compared to these existing methods.
- Backward Pass: For gradient computation, the speedup was even more pronounced, ranging from 6 to 19 times faster.
These performance gains are critical for making differentiable MPC a practical and scalable policy class for data-driven learning, enabling faster training iterations and larger batch sizes that were previously inaccessible with traditional CPU-bound approaches. The ability to process batches of optimization problems in parallel on the GPU transforms the computational landscape for learning complex, model-aware control policies.
Practical Implications
▶ Watch: Q&A: Challenges of bringing MPC to the GPU (13:20)
The development of GPU-native Differentiable Model Predictive Control carries profound implications for practitioners, infrastructure teams, model builders, and deployers in robotics and autonomous systems.
For practitioners and model builders, this work unlocks a powerful new paradigm for designing robust control policies. It provides a structured, interpretable policy class that inherently benefits from strong physical priors while also being amenable to data-driven learning for adaptation and robustness. This means:
- Data-Efficient Robustness: The ability to learn in randomized simulation and generalize zero-shot to the real world, as demonstrated by the Supra drifting through puddles, means less reliance on costly and time-consuming real-world data collection.
- Enhanced Interpretability: Unlike opaque neural networks, the learned parameters in DiffMPC correspond to physical quantities or cost function weights, offering insights into why the controller makes certain decisions, which is crucial for safety-critical applications.
- Faster Iteration Cycles: The significant speedups on both forward and backward passes mean that training complex control policies with RL or imitation learning can be accomplished much faster, accelerating research and development.
- Bridging the Gap: It offers a concrete method to combine the best aspects of model-based control (safety, constraints, priors) and learning-based control (adaptability, robustness to uncertainty).
For infrastructure teams and deployers, the GPU-native nature of DiffMPC means that these advanced control policies can leverage existing high-performance computing hardware efficiently. The ability to batch and parallelize optimization problems on GPUs aligns with modern ML infrastructure, making deployment scalable and efficient. It paves the way for deploying more sophisticated and adaptive controllers in real-time on embedded systems with GPU capabilities.
However, the approach also comes with certain tradeoffs and limitations:
- Inequality Constraint Challenges: While equality constraints are naturally handled, differentiation through inequality-constrained optimization problems can introduce discontinuities in the loss landscape. While methods like Augmented Lagrangian or barrier functions can address this, their implementation and tuning can add complexity.
- Forward Pass Convergence Dependency: The computation of gradients relies on the successful convergence of the forward pass optimization. If the optimization problem is poorly initialized or ill-conditioned, and the forward pass fails to converge, alternative gradient computation methods (e.g., finite differences) might be necessary, potentially sacrificing speed or accuracy.
- Formulation Complexity: Developing a GPU-first, native implementation requires a deep understanding of both optimization theory and parallel computing architectures, which can be more complex than simply stacking neural network layers. This might raise the barrier to entry for some practitioners.
Despite these challenges, the ability to train and deploy highly robust, interpretable, and data-efficient control policies with unprecedented speed represents a significant leap forward for autonomous systems, particularly in domains demanding high performance and adaptability in uncertain environments.
Key Takeaways
- GPU-Native Differentiable MPC: The work introduces a novel framework for Model Predictive Control (MPC) that is fully differentiable and optimized for GPU execution, drastically accelerating both forward and backward passes.
- Hybrid Control Paradigm: It successfully combines the strong physical priors and interpretability of model-based control with the robust generalization capabilities and data efficiency of learning-based control.
- Significant Performance Gains: Achieves 4-20x speedup on the forward pass and 6-19x speedup on the backward pass compared to existing state-of-the-art differentiable MPC implementations.
- Zero-Shot Real-World Robustness: Demonstrated the ability to train policies in randomized simulation (e.g., drifting through puddles) and deploy them zero-shot to real vehicles, exhibiting superior robustness and generalization to novel tasks.
- Structured Learning Policy: DiffMPC serves as a powerful, structured policy class for reinforcement learning and imitation learning, offering a more interpretable and robust alternative to purely black-box neural networks for complex control tasks.
- Unlocks New Applications: By overcoming the traditional computational bottleneck of optimization-based learning, this work paves the way for a wide array of new applications at the intersection of machine learning and control, particularly in high-performance robotics and autonomous systems.
About the Speaker(s)
Emre Adabag is a researcher at the Toyota Research Institute (TRI), where this work was conducted. His research focuses on the intersection of learning and control, particularly in developing robust and adaptable policies for autonomous systems like high-performance vehicles. He, along with his co-authors Marcus Greiff, John Subosits, and Thomas Lew, contributed to this significant advancement in differentiable control, aiming to enhance the reliability and performance of robots in complex, uncertain real-world environments. Their collective expertise spans robotics, machine learning, and control theory, driving innovations that enable autonomous systems to operate at their physical limits.
Reviews
→ Top-rated talks at International Conference on Learning Representations 2026
All talks from International Conference on Learning Representations 2026