Rust in Everything
← Papers

FAME-QP: A GPU-Accelerated Quadratic-Programming Solver for Real-Time Model Predictive Control

Santosh Mohan Rajkumar, Debdipta Goswami, Stephanie Stockar

2026-11-12▲ 4arXiv 2611.13766v1Hugging FaceCode

AI-generated from the full paper (deepseek-flash). It may contain mistakes; check the original.

TL;DR

FAME-QP is a GPU-native ADMM solver for dense linear-MPC quadratic programs that uses constraint-dependent operators, fused CUDA-graph-replayed iterations, penalty probing, and lazy matrix updates to reduce solve latency while matching accuracy.

Problem

Linear MPC requires solving a convex QP each sampling period, making computational latency critical for real-time operation. CPU-native QP solvers can add CPU-GPU transfer latency, while existing GPU QP solvers may use dense operators, repeated dispatch, or limited online matrix updates. The paper targets dense convex QPs from linear MPC, including general constraint matrices and changing problem data.

Method

FAME-QP solves the dense QP with an ADMM iteration using a pre-inverted matrix M = K⁻¹ with K = P + σI + GᵀρG and a diagonal penalty ρ diag(b). At setup it applies modified Ruiz equilibration, detects box, split, or general constraint structure, and stores either a stacked operator W or a factored operator F with C so diagonal rows are not stored densely. It precomputes a bank of five penalties, adapts ρ by residual balancing, and probes the bank to choose the starting penalty, with an optional γ probe for split constraints. The ADMM iteration is fused into one kernel for the stacked form or two kernels for the factored form, and j_chk iterations plus the termination test are replayed through a CUDA graph. Execution mode, tile configuration, and precision are selected using device calibration and measured timings; between solves it supports warm starts and either full or lazy operator refresh when P or G changes.

Results

  • On dense random QPs in float64, FAME-QP outperformed all GPU baselines at every tested size and all CPU baselines for n at least 220, with speedups of 1.2 to 25.9 over DAQP and 1.5 to 4.3 over ReLU-QP over n 220 to 1400. §IV-A
  • At n 1400 on dense random QPs, FAME-QP mean solve time was 1.95 ms in float32 and 5.01 ms in float64, versus 326 ms for cuOSQP. §IV-A
  • On random LMPC, FAME-QP had the lowest mean step time at every size from 0.658 to 4.23 ms and was 3.2 to 7.3 times faster than ReLU-QP and 3.2 to 13.8 times faster than π MPC; closed-loop costs agreed within 0.06%. §IV-A
  • In Unitree G1 push recovery, FAME-QP reduced mean QP time by 2.3 to 3.1 times and stayed below the 2 ms control period at every tested horizon, while ReLU-QP exceeded it for N at least 15; FAME-QP increased the largest tested horizon within budget from N 10 to N 20. §IV-B
  • In quadrotor KQ-LMPC with changing matrices, FAME-QP achieved mean QP time 12.5 ± 3.2 ms versus 59.2 ± 4.8 ms for CuPIQP, a 4.7 times speedup, and 99th-percentile latency 17.6 ms versus 72.1 ms. §IV-B
  • In the fusion and graph-replay ablation at n 128, CUDA graph replay reduced unfused iteration time from 140 to 24.6 microseconds and fusion further to 4.37 microseconds, replacing 14 kernels per iteration with one. §IV-C

Limitations

  • The paper restricts attention to NVIDIA GPUs and the CUDA programming model, so other GPU or accelerator platforms are not evaluated.
  • Sparse and horizon-structured formulations are left to future work to improve scalability.
  • Setup and penalty probing add setup cost; the ablation reports this cost is recovered after about 36 to 122 solves, so short solve sequences may not amortize it.
  • The robotic control evaluations are MuJoCo simulations rather than physical hardware experiments.

Key points

  • The condensed LMPC QP used in this work has n = N n_u decision variables and m = N(n_x + n_u) constraint rows. §II-B
  • FAME-QP classifies G as box, split, or general depending on whether it has a complete diagonal block or additional dense rows. §III-A
  • The stacked operator W computes both z and s updates in one matrix-vector product; the factored form F with C saves m_c² entries per iteration but needs two sequential kernels. §III-B
  • The penalty bank stores five penalties spaced by factors of 10, initially centered at 0.1, and snaps residual-balancing proposals that differ by more than a factor of 5 to the nearest bank entry. §III-C
  • Initial penalty probing runs trials of at most 400 iterations from zero and chooses the fastest bank entry at the tightest tolerance reached, with ties favoring the first tested entry. §III-C
  • Both execution modes run the complete ADMM iteration on the GPU; j_chk iterations plus the termination test are captured as a CUDA graph and replayed with one host call. §III-D
  • Automatic mode selection uses device-calibrated kernel and streaming costs, excludes a form if its bank storage exceeds 60% of free GPU memory, and times candidates inside CUDA graphs. §III-E
  • Lazy matrix updates re-invert only the active penalty-bank entry after P or G changes, while stale entries are recomputed when selected by a penalty switch. §III-F

Mind map

FAME-QP
Problem
Dense LMPC QPs
Real-time latency
CPU-GPU transfer
ADMM core
Pre-inverted K
Ruiz scaling
Constraint structures
Operators
Stacked W
Factored F and C
Penalty bank
Execution
Single kernel
Two kernel
CUDA graph replay
Automatic selection
Updates
Warm starts
Lazy refresh
Precision selection
Evaluation
Random QPs
Random LMPC
Unitree G1
Skydio X2
Ablations