We present μMPC, a fast model predictive control (MPC) framework that reduces online computation using learned Koopman-linearized dynamics. By precomputing finite-horizon control-to-output maps, μMPC eliminates lifted-state trajectories, yielding an action-only Koopman-Compiled QP (KC-QP) with Hnu decision variables, independent of lifted dimension. A fixed, precomputed primal operator enables efficient primal-dual iterations using only matrix-vector products and projections, accommodating changing goals and constraints without refactorization. This efficiency also enables control-aware dynamics learning through differentiable KC-QPs in the training loop and batched DAgger-style data aggregation. μMPC achieves solve times as low as 23μs on a desktop CPU and 24 ms onboard a 168 MHz Crazyflie microcontroller. It scales to 4096D quadruped control in under 5 ms, visual planning with 2048D world models in 0.4 ms, and collision-aware planning for 200 quadrotors at over 30 Hz on the GPU. Across these benchmarks, μMPC achieves up to 108× faster constrained MPC and 1907× faster visuomotor planning than competing methods.
Figures & tables
Fig. 1: μ MPC enables real-time control from microcontrollers to massive learned models and multi-agent systems: (A) quadruped safety filtering with a 4096-dimensional ( ∼16 M-parameter) Koopman model; (B) onboard H=75 Crazyflie MPC; (C–D) hardware cube and rope manipulation; (E) collision-constrained planning for 150 quadrotors; and (F) seven-robot multi-agent planning on the Robotarium.
Fig. 2: μ MPC performance across model, hardware, and problem scale: low-latency quadruped and visual-world-model control, onboard microcontroller MPC, constrained 3D quadrotor control, and real-time multi-agent planning. μMPC (Woodbury) reports unconstrained Real-Time Iteration (RTI) times for comparisons against Tiny-MPC. Solve-time axes are logarithmic where indicated to accommodate the wide latency range across methods.
Method
H=35
H=45
H=55
Control constraints
μMPC (CPU)
0.023±0.027
0.033±0.032
0.040±0.065
μMPC (GPU)
0.129±0.051
2.076±0.845
2.082±0.874
Control + obstacle constraints
μMPC (CPU)
0.277±0.115
0.295±0.075
0.322±0.099
μMPC (GPU)
0.996±0.487
0.988±0.265
0.949±0.150
TABLE I: Median solve times (ms)
Method
H=50
H=75
H=100
Control constraints
μMPC (CPU)
0.058±0.070
0.102±0.092
0.128±0.102
μMPC (GPU)
0.213±0.496
0.210±0.161
0.189±0.149
acados/HPIPM
0.183±0.070
0.237±0.087
0.289±0.118
Koopman-BoxQP
3.218±0.830
5.568±1.416
8.229±1.706
OSQP Condensed (CPU)
0.476±0.078
0.975±0.069
2.488±0.243
TABLE II: Median solve times (ms)
Device
H=50
H=75
H=100
Control constraints
Raspberry Pi 5
0.576±0.203
1.506±0.258
3.102±0.529
Jetson (CPU)
0.448±0.297
0.820±0.431
1.314±0.756
Jetson (GPU)
1.760±1.032
1.823±0.800
1.860±0.770
Control + obstacle constraints
Raspberry Pi 5
7.255±2.021
25.488±3.049
42.590±4.679
TABLE III: Median solve times (ms) on edge devices
Model Predictive Control (MPC) delivers constraint-aware control, but its reliance on online optimization limits its use on systems with fast dynamics, high-dimensional models, or long horizons. Existing GPU implementations typically treat the device as a linear-algebra accelerator, leaving the optimization loop dependent on repeated kernel launches and high-latency memory transfers. This paper introduces CUDA MPC, a GPU-native MPC framework that co-designs the optimization algorithm, execution model, and memory architecture for CUDA hardware. CUDA MPC pairs a parallel-in-horizon alternating direction method of multipliers (ADMM) splitting with a fused CUDA kernel that runs the entire iterative solve on the device. Intermediate optimization variables stay in low-latency, on-chip shared memory, and a localized atomic-flag protocol synchronizes only adjacent horizon blocks, minimizing host intervention, kernel-dispatch overhead, and global-memory traffic. Across six nonlinear robotics benchmarks spanning increasing state dimension and constraint density, CUDA MPC sustains real-time rates at horizons one to two orders of magnitude longer than CPU solvers: it solves an optimization-based collision-avoidance parking problem with 100 s of lookahead within a 0.1 s sampling interval, and is the only solver evaluated that achieves both real-time execution and collision-free coordination for a centralized 10-agent swarm, where acados and CasADi return no feasible solution and require 3.5 s and 4.5 s per solve. Against tensor-framework implementations of the same ADMM splitting, the fused kernel is up to 965× faster.
Babak Akbari, Melissa Greeff
Robora Lab, Department of Electrical and Computer Engineering Queen's University, Kingston, ON, Canada
This paper presents an efficient model predictive path integral (MPPI) control framework for systems with complex nonlinear dynamics. To improve the computational efficiency of classic MPPI while preserving control performance, we replace the nonlinear dynamics used for trajectory propagation with a learned linear deep Koopman operator (DKO) model, enabling faster rollout and more efficient trajectory sampling. The DKO dynamics are learned directly from interaction data, eliminating the need for analytical system models. The resulting controller, termed MPPI-DK, is evaluated in simulation on pendulum balancing and surface vehicle navigation tasks, and validated on hardware through reference-tracking experiments on a quadruped robot. Experimental results demonstrate that MPPI-DK achieves control performance close to MPPI with true dynamics while substantially reducing computational cost, enabling efficient real-time control on robotic platforms.
In the literature, actor-critic model predictive control (AC-MPC) integrates MPC with reinforcement learning to enable high-performance control of complex dynamical systems. However, its differentiable MPC layer requires repeatedly solving an optimization problem in both the forward and backward passes, leading to substantial training and inference latency. This paper tackles this bottleneck introducing a CUDA-accelerated variant that significantly reduces end-to-end execution time while preserving the control performance of the baseline formulation. Simulation results on an agile drone racing task show that our approach achieves state-of-the-art lap times and near-limit dynamic behaviour with markedly reduced training and inference time.