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