$μ$MPC: Microsecond-Scale Nonlinear and World Model Control from Edge to GPU via Koopman-Linearized Precompilation
TL;DR μMPC learns Koopman-linear dynamics and compiles MPC into a small action-only QP whose solver matrix is precomputed offline, so online solves are just matrix-vector products. It runs constrained 3D-quadrotor MPC in 58-128 μs on a desktop CPU (2.3x faster than acados/HPIPM at horizon 100), runs onboard a Crazyflie microcontroller, and plans for 200 quadrotors at over 30 Hz.
What they do
Nonlinear MPC gets expensive as state dimension, horizon and constraints grow, and planning through learned world models needs many costly rollouts. μMPC learns Koopman dynamics, linear in a lifted latent space, and compiles them offline into an action-only quadratic program (KC-QP). Its size depends only on horizon times action dimension, not on the latent dimension. Tests span Dubins cars, quadrotors, a Go2 quadruped model and pixel-based world models, with hardware runs on a Crazyflie, seven Robotarium ground robots and a KUKA iiwa.
How it works
- Learned lifting and condensing. An MLP encoder maps the state to a latent with linear dynamics. Horizon prediction maps are built offline, so latent and state trajectories drop out and only the control sequence is optimized.
- Fixed-operator primal-dual solver. The primal update matrix depends only on the model, horizon, cost weights and a proximal term, so its inverse is precomputed. Online iterations are matrix-vector products and projections, even when goals change or nonlinear constraints are relinearized.
- Training for control. Differentiating through a control-recovery QP trains the model to reproduce demonstrated controls. DAgger-style aggregation adds states the controller itself visits.
Results
- 3D quadrotor, control constraints: 58-128 μs median CPU latency. At H=100 that is 2.3x faster than acados/HPIPM and 19x faster than OSQP on the same QP; with an obstacle it stays under 1.4 ms.
- Hardware: onboard the Crazyflie, H=75 MPC averages 20.08 ms over 100 benchmark cases with no 25 ms deadline misses. On the Robotarium, five best-response rounds for seven robots take 18.24 ms on a CPU.
- Scale: 200 simulated quadrotors take 32.1 ms per batched update; 98.4% reach their goals and 2.58% collide. Bimanual-rope planning with a 2048-D world model takes 0.725 ms at 94% success, versus 24% (LeWM) and 46% (Fast-LeWM) at 559-821 ms.
- Ablation (quadrotor, H=75): differentiable-QP training lifts goal reaching from 3.7% to 97.7%, and adding DAgger keeps it above 95% up to H=125.
Limitations
The margins that tighten constraints against model error are tuned empirically, not calibrated. A fixed iteration budget can leave constraints violated, as in the collisions at 200 agents. Encoder size, latent dimension and training horizon were chosen by trial and retraining. The KUKA cube experiment is shown only qualitatively.
Videos
Figures



Abstract
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 $Hn_u$ 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\times$ faster constrained MPC and $1907\times$ faster visuomotor planning than competing methods.
Summaries are written automatically from each paper's text. Figures and videos come from the paper and its project page; all credit goes to the authors.
