WorksComputer Science
FAME-QP: A GPU-Accelerated Quadratic-Programming Solver for Real-Time Model Predictive Control
Abstract
We present FAME-QP, a GPU-accelerated solver for dense quadratic programs arising in linear model predictive control. FAME-QP combines constraint-dependent operator representations with fused single- and two-kernel iterations replayed through CUDA graphs, automatically selecting the execution configuration through device calibration and problem-specific timing. It probes a cached operator bank to select the initial penalty and updates operators lazily when problem matrices change. Numerical benchmarks and simulated humanoid and quadrotor control experiments demonstrate reduced latency relative to competing GPU solvers while maintaining solution accuracy and control performance.
Introduction
Quadratic programming (QP) problems arise in a wide range of applications, including statistics, machine learning, finance, and model predictive control (MPC) for robotic and control systems [1, 2, 3]. They also appear as subproblems in nonlinear optimization algorithms, such as sequential quadratic programming (SQP). Many of these applications lead to convex QP problems. Among these applications, MPC requires solving an optimization problem within each control sampling period, making computational efficiency critical for real-time operation [4]. With linear prediction models, convex quadratic costs, and linear constraints, each MPC update requires solving a convex QP problem, yielding a formulation commonly referred to as linear MPC (LMPC).
Common solution approaches for QP problems include interior-point (IP), active-set (AS), operator-splitting (OS), and proximal methods. Representative IP methods include HPIPM [5], qpSWIFT [6], PIQP [7], and Clarabel [8] (with QP as a special case). Although IP methods often converge in relatively few iterations, each iteration requires solving a potentially expensive linear system. They are also generally more difficult to warm start, limiting their ability to exploit similarities between successive QP problems in MPC [9].
AS methods, such as qpOASES [10] and DAQP [11], readily support warm starting and can be highly efficient when initialized with the correct active set. However, their combinatorial worst-case complexity in the number of constraints can limit their scalability to large-scale QPs [9]. OS methods based on the alternating direction method of multipliers (ADMM), such as OSQP [2], and related proximal methods, such as ProxQP [12], are increasingly used in robotic MPC owing to their ease of warm starting and suitability for applications requiring moderate solution accuracy [13], [14]. Moreover, their computational structure offers opportunities for parallelization. Nevertheless, their convergence rates can be slower than those of other methods, particularly when high-accuracy solutions are required [7].
Although most established QP solvers are CPU-based, GPUs offer opportunities to accelerate large-scale QP solving through massive parallelism and higher memory bandwidth, enabling concurrent execution of independent computations and faster data movement [13]. Growing interest in MPC for robotics and control using world models [15], [16], locally linear latent dynamics [17], and Koopman-based linear, bilinear, or semi-linear representations [18]–[20] further motivates GPU acceleration to meet the real-time computational demands of large-scale MPCs. Moreover, modern robotics increasingly relies on GPUs for parallel simulation, inference, and learning [21]–[23]. Integrating CPU-native QP solvers into such pipelines can introduce additional latency through frequent CPU–GPU data transfers [24]. Together, these considerations motivate GPU-native QP solvers that keep optimization data and computations on the device.
This work presents FAME-QP, Fused ADMM with Multimode Execution for QP solution, a GPU solver for the dense QPs of linear MPC. Its contributions are: (i) constraint-dependent operator representations that reduce operator storage by up to and iteration time by up to , relative to treating all constraint rows as dense; (ii) fused single- and two-kernel iterations with CUDA graph replay and automatic selection using device calibration and problem-specific timing;
Authors are with the Department of Mechanical & Aerospace Engineering, The Ohio State University, Columbus, OH, USA. E-mail: rajkumar.36, goswami.78, stockar.1}@osu.edu
Open Source Code: https://github.com/santoshrajkumar/fame-qp (iii) initial penalty selection through cached-operator probing and lazy operator updates for changing QP matrices; (iv) numerical and simulated robotic MPC evaluations demonstrating lower latency than the competing GPU methods evaluated in each benchmark, with matched solution accuracy on random QPs and comparable closed-loop control performance; and (v) an open-source implementation.
Related Work
GPU QP solvers. cuOSQP [13] parallelizes OSQP through indirect linear solves, while qpax [25] and CuPIQP [26] implement IP methods on GPUs, with CuPIQP exploiting kernel fusion and CUDA graph replay. The closest approach is ReLU-QP [9], which reformulates ADMM as a weight-tied neural network and caches pre-inverted operators for penalty adaptation. Its dense operator and repeated dispatch introduce computational and execution overhead, while its offline precomputation limits online matrix updates. FAME-QP retains the pre-inversion and penalty-bank approach but uses smaller, constraint-dependent operators, fused graph-replayed iterations, and lazy operator updates.
GPU MPC solvers. MPCGPU [27] and TurboMPC [28] accelerate nonlinear MPC through GPU implementations of SQP and structured linear algebra. πMPC [29] exploits parallelism across the prediction horizon through consensus ADMM, while CUDA MPC [30] reduces execution overhead using a persistent cooperative kernel and CUDA graphs. These methods exploit structure at the optimal-control level, whereas FAME-QP accepts dense convex QPs directly, including general constraint matrices and online matrix changes.
Positioning. Our contribution lies in combining constraint-dependent operator representations with automatic selection between fused single- and two-kernel iterations, initial penalty probing, and lazy matrix updates. The execution configuration is selected through device calibration and problem-specific timing, targeting the latency of individual MPC solves.
Preliminaries
Notations. Define . Let be the set of symmetric positive semi-definite matrices of dimension . For with , define . Let and denote the zero vector or matrix and the identity matrix, respectively, of appropriate dimensions. For a matrix or vector, a space or comma separates columns, and a semicolon separates rows, where applicable.
Convex QP problem. A convex QP problem takes the following form [31]
where is the decision variable, , , , , and .
LMPC. Consider the discrete-time linear system , where and denote the state and input, respectively. At each sampling instant, LMPC measures the current state and solves the following optimal control problem (OCP) over a prediction horizon of steps [31]:
with and . Here, , and are the state, terminal, and input weighting matrices, respectively. The controller applies the first optimal input , shifts the horizon forward by one step, and repeats the procedure at the next sampling instant.
GPU computation. We restrict attention to NVIDIA GPUs and the CUDA programming model [32]. GPU computations execute as kernels: functions typically launched by the host and executed in parallel by threads grouped into blocks [33]. Threads within a block share fast on-chip memory and synchronize efficiently, while communication between blocks typically uses global memory. Successive kernels in the same stream execute in order, making kernel boundaries a standard way to synchronize all blocks between computational stages [32]. A CUDA graph represents a workflow of GPU operations, such as kernel launches and data transfers, and the dependencies between them. The workflow is prepared once and can then be executed repeatedly with a single host call, reducing host-side launch overhead [32].
When a kernel is launched, its thread blocks are scheduled onto the GPU’s streaming multiprocessors (SMs), where threads execute in groups of 32 called warps, using values held in registers. Global memory accesses may be served by GPU caches, while threads within a block can exchange data through on-chip shared memory. Registers and shared memory have thread and block lifetimes, respectively, so intermediate results passed between kernels are typically stored in global memory [32]. The runtime of a computation expressed as a sequence of kernels therefore depends on arithmetic, data movement through the memory hierarchy, and launch and scheduling overhead. Kernel fusion combines operations that would otherwise execute in separate kernels into a single kernel, allowing some intermediate results to remain in registers or shared memory. This can reduce both the number of kernel launches and global memory accesses [34].
Solving the QP with ADMM
To solve (1), we employ the ADMM formulation proposed in [2]. Introducing an auxiliary variable yields the equivalent problem
where and . With auxiliary variables and , (3) can be rewritten as
s.t. , (4b)
where and . Let and be the Lagrange multipliers associated with and , respectively. The augmented Lagrangian, omitting terms constant in the primal variables, is
where is the proximal regularization parameter, is the diagonal penalty matrix, and .
Given the iterate at iteration and a relaxation parameter , ADMM involves the following steps
where . The -update implies ; hence, initializing eliminates from all iterations.
Closed form. Substituting into (6a) and setting the gradient with respect to to zero yields
where . Moreover, since is positive diagonal and is a box, (6c) separates into scalar minimizations solved by componentwise clipping. With and , one ADMM iteration reduces to
where acts componentwise and . Here, is the unconstrained minimizer of the quadratic in (6c), and is the projection residual. Consequently, implies , implies , and implies .
Optimality and termination. At a fixed point of (8), and , yielding and . These are the KKT conditions of (1); and affect convergence but not these conditions. The iteration terminates when
where , , and are the absolute and relative tolerances, respectively.
LMPC as a QP Problem
With the predicted states and inputs stacked into the decision vector , the OCP (2) admits a sparse QP formulation of the general form (1) [31 Sec. 14.2.2]. The sparse QP formulation of LMPC has decision variables and constraint rows. Eliminating the predicted states through the dynamics yields a condensed QP formulation of (2) with only input variables [35], whose dense matrix structure is well suited to GPU-accelerated operations in standard machine-learning libraries. Let and . The linear dynamics give , where
with and . With and , the condensed QP takes the form (1) with and
where and stack the state and input bounds over the horizon, so has rows. The constant terms independent of are omitted from the objective. We use the condensed QP formulation of LMPC in this work and recommend LQR pre-stabilization [35 Sec. IV] where needed to mitigate ill-conditioning for open-loop unstable systems.
FAME-QP Method
FAME-QP implements the ADMM iteration (8) with the pre-inverted matrix , and concentrates on how that iteration is executed on the GPU. At setup, the problem is scaled once by a modified Ruiz equilibration [2, 36]: , , , , with positive diagonal and equilibrating the columns and rows of in ten passes and normalizing the cost. The iteration runs on the scaled problem, whose solution maps back as , , ; the test (9) is evaluated on the unscaled residuals, and later problem data are scaled with the same . The penalty matrix is parameterized by a single scalar as . For each , let , , and denote the th entries of , , and , respectively. We set if (an equality constraint) and otherwise. Algorithm 1 summarizes the setup and solve phases.
Constraint Structures
FAME-QP exploits constraint rows that act on individual decision variables and distinguishes three structures of : box, with , for all , so ; split, after a row permutation, with nonsingular diagonal and the remaining rows, , so ; and general, with no complete diagonal block, where all rows are handled as dense, and . Under standard condensing, LMPC with input bounds alone has the box structure and adding state bounds yields the split structure. LQR pre-stabilization [35] couples the input constraints and produces the general structure. In split form, for each (corresponding to the rows of only), we set if (equality constraints) and otherwise, with .
Two Operator Forms
The first two updates in (8) couple different entries through matrix–vector products; the remaining updates are elementwise because is diagonal and is a box. Omitting the iteration index , we describe the operators for each constraint structure.
General structure. With and , define . Then (15) and (16) admit the stacked form
which computes both updates in one matrix–vector product. The factored form stores and , and computes followed by .
Split structure. For , partition , , and conformally. Since , its contribution can be absorbed elementwise into , where denotes elementwise multiplication. The stacked form (25) then applies with replaced by and by ; the factored form uses followed by . Both recover , so need not be stored in either operator.
Box structure. With and , define . Both forms reduce to and , using one fused kernel per iteration. Only the dense matrix and the diagonal vector are stored, requiring entries in total. Compared with treating as dense, this reduces storage from entries for the stacked form or for the factored form. After exploiting the diagonal structure, the two forms are identical.
For the split and general structures, the stacked operator contains entries, whereas and together contain . Thus, the factored form reads
fewer operator entries per iteration, at the cost of two sequential kernels instead of one fused kernel.
The Penalty Bank: Adaptation and Probing
FAME-QP precomputes the operators for a bank of five penalties, spaced by factors of 10 and initially centered at . Adapting during a solve therefore selects a stored operator rather than recomputing an inverse. After each convergence check, OSQP’s residual-balancing rule proposes , using the residual norms and scales in (9). If the proposal differs from the current by more than a factor of 5, it is snapped to the nearest bank entry. The multiplier is retained across switches, since its optimal value is independent of . The penalty grid remains fixed during each solve.
The same bank is also used to select the starting penalty. At setup, each entry initializes a trial of at most 400 iterations from zero, with adaptation enabled. Each trial records the time and iteration count needed to satisfy 1/100, 1/10, and 1 times the requested tolerances. Trials are compared at the tightest tolerance reached by any trial; the fastest determines the starting , and its iteration count provides the estimate used in § 3-E. Ties favor the first tested entry. If an endpoint wins, the bank is re-centered there and probed again, with at most two rebuilds. This search adds setup cost but no per-solve probing.
For split constraints, input bounds are often active while state bounds are mostly inactive, so a common penalty can overweight the dense rows. We therefore probe at the selected , then re-probe with the selected . The resulting is fixed in every bank entry; in-solve adaptation changes only the scalar .
Execution Modes
Both modes perform the complete ADMM iteration (8) on the GPU, fusing the elementwise updates with the operator products.
Single-kernel iteration. With the stacked operator, one fused kernel computes and completes the iteration. Each thread block evaluates its assigned output rows, then immediately applies the corresponding updates: primal rows relax to update ; constraint rows form , project it onto to update , and update . For split constraints, the primal rows also compute and complete the diagonal constraint updates. Each block then constructs its portion of the next . Two buffers alternate as input and output, preventing writes from overwriting entries that other blocks are still reading. For box constraints, the same kernel uses and handles all constraint updates elementwise.
Two-kernel iteration. With the factored operator, the first kernel computes , updates , and completes any diagonal constraint updates. It stores for the second kernel, which computes and immediately performs the dense constraint projection and dual update. Each kernel constructs the corresponding portion of the next . The kernel boundary ensures that all entries of are available before evaluating . Box constraints require no second kernel.
CUDA-graph replay. At setup, complete iterations followed by the termination test (9) are captured as a CUDA graph. Each replay executes this sequence with one host (CPU) call, preserving the dependencies between kernels and iterations. The test computes , , and on the device, followed by two reduction kernels that produce the residual norms, their scales , and a stop flag. The host reads these five values once per replay to terminate, declare a stall (no 10% residual decrease in 12 checks), or adapt using the penalty bank. After a penalty switch, is rebuilt before replay resumes. Thus, fusion reduces kernels per iteration, while graph replay reduces host dispatch and synchronization to once per iterations.
Automatic Mode Selection
FAME-QP selects the operator form and tunes its kernel tile configuration once per problem shape. The iteration-time model is
where , is the overhead per kernel node in a replayed graph, and is the operator size in bytes. Once per device and precision, FAME-QP measures , the host-read cost , and over feasible operator sizes from 0.25–64 MB, stopping if memory allocation fails. Outside the measured range, is extrapolated linearly at the bandwidth of the nearest endpoint. These measurements are cached.
For box constraints, the forms coincide and only the single-kernel configuration is tuned. For split and general constraints, stacking saves one launch but reads additional bytes, where is the number of bytes per value. Under a constant-bandwidth approximation, the stacked form is predicted to be faster when , with BW denoting the effective memory bandwidth.
An operator form is first excluded if its estimated penalty-bank storage exceeds 60% of currently free GPU memory; setup fails if neither form fits. Among feasible forms, those predicted more than 1.5 times slower than the best are discarded. The remaining forms and their tile configurations are timed inside CUDA graphs using placeholder operators of the actual dimensions. The single-kernel mode is retained unless the measured two-kernel time is more than 10% shorter. Thus, the model prunes the search, while measured timings determine the final selection. Using the measured , the predicted time for iterations is
where is the device-side termination-test time.
Updates, Warm Starts, and Precision
Between solves, new are scaled using the stored , and is rebuilt. Changes to or that preserve the constraint structure trigger rescaling and in-place re-inversion of either the full bank or, in lazy mode, only the active entry. Other entries are marked stale and recomputed when selected by a penalty switch. The captured graph is retained, and carries over between solves. A warm start initializes and reconstructs , optionally after shifting the previous solution one stage along the horizon.
The bank is always inverted in float64, while operators and iterates use float32 or float64. Single-precision residuals may stagnate near ; a stalled solve returns solved_inaccurate if it satisfies the termination test at 100 times the requested tolerances. The working precision is either fixed by the user or selected automatically before the setup of Algorithm 1. In automatic mode, FAME-QP estimates the condition number by power iterations. For target accuracy and , it selects float32 if and float64 if . Otherwise, the setup is run in both precisions, which are compared by in (15), preferring float64 when its prediction is within 20% of float32.
Algorithm 1 FAME-QP
Input: data ; tolerances ; parameters ; check interval ; iteration limit ; precision
Output: and status
Setup (once)
Detect constraint structure; Ruiz-scale data ▷ Sec. III-A
Select execution mode ▷ Sec. III-E
Build penalty bank; capture iterations and test (9) as a CUDA graph ▷ Sec. III-C, III-D
Probe (and if split); re-center bank as needed Solve (each QP)
Scale new data; if or changed, refresh the bank fully or lazily ▷ Sec. III-F
Initialize from zero or a warm start;
Form as in Sec. III-B;
repeat ▷ one graph replay per pass
for iterations do
if then ▷ box
else if stacked form then ▷ single-kernel
else ▷ factored form, two-kernel
end if
▷ blocks present
; form next
end for
Evaluate (9) on the GPU;
Host reads the norms, scales, and stop flag
if continuing then adapt as in Sec. III-C
if switched then refresh a stale entry; rebuild
until converged, stalled, or
return unscaled and status
Experimental Results
We evaluate FAME-QP through numerical benchmarks and closed-loop robotic control experiments in high-fidelity MuJoCo simulations. The CPU QP baselines are OSQP [2], PIQP [7], ProxQP [12], Clarabel [8], and DAQP [11]. The GPU baselines include the QP solvers cuOSQP [13], ReLU-QP [9], qpax [25], and CuPIQP [26], and the MPC solvers CUDA MPC [30] and MPC [29]. We use the original implementations, except for CUDA MPC, which we reimplement because its source code was unavailable. All experiments run on a system equipped with an NVIDIA RTX 3080 Laptop GPU (48 SMs, 16 GB VRAM) and an Intel Core i7-11850H processor with 32 GB RAM. Unless stated otherwise, FAME-QP runs in float64 with , , for a stated tolerance , , and ( in the closed-loop random-LMPC and Unitree G1 experiments), with penalty adaptation and probing enabled; lazy updates are used where the QP matrices change at every step (KQ-LMPC).
Numerical Experiments: Random QP and LMPC
Dense random QPs. We use the dense random QPs of [9], with dense equality rows and dense one-sided inequality rows (approximately 30% of the inequalities active), using five random seeds per problem size . To match solution accuracy across solvers, we sweep each solver’s tolerance over and select the loosest value yielding an solution error of at most on all five instances, relative to Clarabel solutions computed at tolerance . We report the mean across instances of their median solve times. FAME-QP is set up, including penalty probing, on a held-out instance of the same size. Setup time is excluded for all solvers; only solve time is reported. Figure 1 shows the median across five instances of their per-instance median cold-solve times, with min–max bands. Using the mean of these per-instance medians for numerical comparisons, FAME-QP in float64 outperforms all GPU baselines at every tested size and all CPU baselines for . Over –, its speedups are – over DAQP and – over ReLU-QP, the best CPU and competing GPU baselines, respectively.
Figure 1. Cold-solve times on dense random QPs at matched accuracy, excluding setup. Lines show medians and bands show min–max ranges across five instances, each timed by its median over repeated cold solves. All solvers use float64 except cuOSQP (float32).
Since cuOSQP’s native implementation uses float32, we also evaluate FAME-QP in this precision under the same accuracy criterion. Single precision further reduces its solve time at most sizes, although float64 remains faster at and . At , the mean solve time is 1.95 ms in float32, compared with 5.01 ms in float64 and 326 ms for cuOSQP.
GPU LMPC on random systems. Following [9], we consider random unstable linear systems with , , spectral radius 1.05, and horizon , with , , an LQR terminal cost, and input bounds . Initial states are chosen so that input bounds are active on at least 30% of the steps under exact MPC. We compare FAME-QP with ReLU-QP and CuPIQP, the two fastest GPU QP baselines in the random-QP benchmark, and with the GPU MPC methods CUDA MPC and MPC. The QP solvers receive the same LQR pre-stabilized condensed QP (); the MPC methods receive the original OCP.
Each method runs 50 closed-loop steps in float64 after one untimed solve at . Where supported, step 0 reuses that solution and later steps shift the previous solution one
stage; CuPIQP accepts no starting point and uses its native IP initialization. The QP solvers use tolerance in their native stopping tests: absolute and relative for FAME-QP and CuPIQP, and absolute only for ReLU-QP, whose thresholds scale with and . MPC uses its native fixed-point test with tolerance at every iteration, and CUDA MPC, which has no convergence test, its fixed budget of 500 iterations. Timings exclude setup and the initialization solve but include data updates, warm-start shifts, and transfer of the first input to the host.
Table I shows that FAME-QP achieves the lowest mean step time at every size, from 0.658 to 4.23 ms. It is 3.2–7.3× faster than ReLU-QP, the closest QP baseline, and 3.2–13.8× faster than MPC, the fastest MPC baseline, with smaller timing standard deviations than both at every size. Since the stopping tests are not equivalent, we also compare the accuracy achieved: closed-loop costs of all methods agree within 0.06%, and the largest bound violation of the returned input is at most for FAME-QP, against – for ReLU-QP, about for MPC, and below for CuPIQP and CUDA MPC.
| Solver / | 400 | 800 | 1200 | 1600 | 2000 |
| FAME-QP | 0.658 ± 0.066 | 1.19 ± 0.04 | 2.05 ± 0.45 | 2.92 ± 0.09 | 4.23 ± 0.21 |
| ReLU-QP | 2.10 ± 0.37 | 6.06 ± 1.02 | 11.6 ± 1.9 | 20.0 ± 3.9 | 30.9 ± 6.1 |
| CuPIQP | 23.7 ± 7.0 | 58.9 ± 11.3 | 178 ± 42 | 248 ± 63 | 449 ± 120 |
| CUDA MPC | 22.7 ± 1.1 | 59.9 ± 0.5 | 82.8 ± 0.8 | 103 ± 0 | 138 ± 3 |
| MPC | 9.06 ± 12.39 | 8.90 ± 12.88 | 6.78 ± 5.67 | 15.4 ± 23.9 | 13.4 ± 18.1 |
Table I. Online MPC step times [ms], mean ± standard deviation over 50 steps. Setup and initialization are excluded; fastest means are bold.
Closed-Loop LMPC on MuJoCo Robotic Systems.
Unitree G1 humanoid push recovery. We evaluate balance recovery of the Unitree G1 in MuJoCo (29 position-controlled joints, 70 states) at a 2 ms control period. The prediction model is the discrete linearization of the full MuJoCo step about a bent-knee stance. The cost penalizes CoM displacement and joint deviations, with an LQR terminal cost and pre-stabilizing gain. Joint-target offsets are bounded by rated torque divided by actuator gain (0.01–0.28 rad). The resulting condensed QP has and general constraint structure. We compare against ReLU-QP, the fastest competing GPU QP solver in the random-QP benchmark. Both use float64 and tolerance , with convergence checked every 10 and 25 iterations, respectively.
An 80 N torso push lasting 0.1 s tests recovery over 5 s (Figure 2). FAME-QP reduces mean QP time by 2.3–3.1×, remaining below the 2 ms control period at every tested horizon, whereas ReLU-QP exceeds it for . Thus, FAME-QP doubles the largest tested horizon within the mean-time budget, from to . Both methods achieve comparable balance recovery, with CoM RMS deviations of 18.7–20.5 mm (Table II).

Figure 2. Unitree G1 push recovery in MuJoCo with FAME-QP: torso push, maximum lean, return, and final stance.
Quadrotor trajectory tracking in MuJoCo. We evaluate FAME-QP with changing prediction matrices using KQ-
| () | QP time [ms] FAME-QP | QP time [ms] ReLU-QP | CoM RMS [mm] FAME-QP | CoM RMS [mm] ReLU-QP |
| 10 (290) | 0.650 ± 0.091 | 1.47 ± 0.05 | 18.7 | 18.7 |
| 15 (435) | 0.763 ± 0.116 | 2.26 ± 0.12 | 19.1 | 19.2 |
| 20 (580) | 1.04 ± 0.20 | 3.25 ± 0.13 | 20.5 | 19.5 |
Table 2. Unitree G1 push recovery. QP times are mean ± std, excluding the first step.
LMPC [20], which constructs time-varying LMPC from analytically derived Koopman-lifted dynamics. The Skydio X2 tracks the supplied lemniscate trajectory for 20 s, starting on the reference, at 50 Hz. With four inputs and , the condensed QP has variables, and a 1.4 s prediction horizon. Both the Hessian and the constraint matrix change at every step.
We compare against CuPIQP, the second-fastest GPU QP baseline in the random-QP benchmark. ReLU-QP is excluded because its native interface does not support matrix updates between solves. Both solvers use float64 and tolerance , with setup and one initial solve performed before timing. FAME-QP uses shifted warm starts; CuPIQP computes its own IP starting point at each solve.
Including matrix updates, warm-start shifts, and host transfer, FAME-QP achieves a mean QP time of 12.5 ± 3.2 ms (mean ± standard deviation), compared with 59.2 ± 4.8 ms for CuPIQP, a 4.7× speedup. Its 99th-percentile latency is 17.6 ms, below the 20 ms control period, versus 72.1 ms for CuPIQP. Despite the changing QP matrices, FAME-QP maintains accurate tracking, with position RMSE of 2.7 mm versus 3.4 mm for CuPIQP; both have a maximum tracking error of 8.5 mm. Figure 3 shows the Skydio X2 quadrotor tracking the lemniscate trajectory with FAME-QP.

Figure 3. Skydio X2 trajectory tracking in MuJoCo with FAME-QP.
| Execution time per iteration [μs] Unfused eager | Execution time per iteration [μs] Unfused graph | Execution time per iteration [μs] Fused eager | Execution time per iteration [μs] Fused graph | |
| 128 | 140 | 24.6 | 21.1 | 4.37 |
| 512 | 146 | 33.4 | 21.8 | 17.4 |
| 1028 | 145 | 72.9 | 54.4 | 53.4 |
| Iterations Default | Iterations Probed | Solve time [ms] Default | Solve time [ms] Probed | |
| 250 | 74 | 46 | 1.10 | 0.79 |
| 600 | 98 | 48 | 3.78 | 1.88 |
| 1000 | 128 | 40 | 10.6 | 3.21 |
Table 3. Execution and penalty ablations. Execution: median device time per iteration over 100 repetitions. Probing: mean iteration counts and mean per-instance median wall times over five test instances, with 20 cold solves per instance. Setup is excluded.
Ablation Study
We isolate GPU execution, constraint structure, operator selection, penalty probing, and matrix updates. Fixed-budget experiments time 200 iterations at a fixed penalty without termination checks; complete solves include convergence checks and transfer of the solution to the host. Within each comparison, the problem data and all other settings are identical.
Fusion and graph replay. We compare separate operations and fused kernels, each with ordinary launches or CUDA graph replay, on the same stacked operator with . Table III shows that the two are complementary: at , replay reduces the unfused iteration time from 140 to 24.6 μs and fusion further to 4.37 μs, replacing 14 kernels per iteration with one. The gain shrinks as the operator grows and the matrix–vector product dominates. All variants produce the same iterates to within .
Constraint structure. For QPs with , , and both operator forms, we compare treating every row as dense against extracting the diagonal rows. Extraction reduces operator storage by 1.67–4.00× and iteration time by 1.07–3.03×, with unchanged iteration counts and solutions (within ). At and , the stacked operator shrinks from 10.1 to 3.12 MiB and the iteration time from 49.8 to 17.3 μs, whereas ReLU-QP’s operator needs 24.5 MiB and 86.3 μs under the same graph replay; overall, it is 1.6–5.8× slower per iteration than the extracted operator.
Automatic operator selection. We sweep from 16 to 1024 for and compare the stacked, factored, and automatically selected forms. Automatic selection picks the faster form at 30 of 36 points; the six misses fall within the 10% retention margin of Sec. III-E, and the selected configuration is at most 9.5% slower than the faster fixed form, whereas always stacking or always factoring is up to 2.2× or 1.5× slower. Pruning never excludes the faster form, but the model alone misplaces the crossover by about a factor of two, hence the final choice by measured timings.
Penalty probing. To separate the starting penalty from bank re-centering, we compare default and probed starts on the dense random QPs, with one bank spanning both ranges. At tolerance , the probed start reduces iterations by 1.6–3.2× and complete-solve time by 1.4–3.3× (Table III); widening the bank alone changes iteration counts by at most 5%. A separate run crosses unfused and fused iterations with and without the full probe (start and re-centered bank). Iteration counts do not depend on fusion, so the gains multiply: from to 1000, fusion contributes 2.00× falling to 1.26× and the probe 1.40× rising to 3.35×, for 2.8–4.2× combined, with the setup cost recovered after about 36–122 solves. Probed FAME-QP and default ReLU-QP reach accuracy in similar iteration counts (30–38 versus 30–32), so the speedup over ReLU-QP stems mainly from per-iteration cost.
For split constraints, we replay a recorded quadrotor KQ-LMPC sequence () whose QP matrices change at every step. Probing lowers the median and tail step times relative to the default penalty; probing as well leaves the median essentially unchanged but further shortens the tail and nearly eliminates in-solve penalty switches.
Lazy matrix updates. In KQ-LMPC, and change at every step, so the pre-inverted operators must be rebuilt before each solve. Replaying the recorded quadrotor QPs with identical data and warm starts, we compare full refresh, which re-inverts all five bank entries at every step, with lazy refresh, which re-inverts only the active entry and the others when a penalty switch selects them. Full refresh makes the update, not the iterations, the dominant cost of a step; lazy refresh roughly halves the update and median step times and shortens the tail, with identical iteration counts, solutions equal to numerical precision, and unchanged closed-loop tracking error.
Conclusion
FAME-QP accelerates dense MPC quadratic programs through constraint-dependent operators, fused GPU execution with automatic configuration selection, penalty probing, and lazy matrix updates. Numerical and simulated robotic experiments demonstrate reduced latency while maintaining solution accuracy and control performance, including with changing prediction matrices. Future work will explore sparse and horizon-structured formulations to improve scalability.
References
- [1]B. A. Turlach and S. J. Wright, “Quadratic programming,” Wiley Interdiscip. Rev. Comput. Stat., vol. 7, no. 2, pp. 153–159, 2015.DOI
- [2]B. Stellato et al., “OSQP: An operator splitting solver for quadratic programs,” Math. Program. Comput., vol. 12, no. 4, pp. 637–672, 2020.
- [3]P. M. Wensing et al., “Optimization-based control for dynamic legged robots,” IEEE Trans. Robot., vol. 40, pp. 43–63, 2024.arxiv.org/abs/2211.11644
- [4]Y. Wang and S. Boyd, “Fast model predictive control using online optimization,” IEEE Trans. Control Syst. Technol., vol. 18, no. 2, pp. 267–278, 2010.
- [5]G. Frison et al., “HPIPM: A high-performance quadratic programming framework for model predictive control,” IFAC-PapersOnLine, vol. 53, no. 2, pp. 6563–6569, 2020.arxiv.org/abs/2003.02547
- [6]A. G. Pandala et al., “qpSWIFT: A real-time sparse quadratic program solver for robotic applications,” IEEE Robot. Autom. Lett., vol. 4, no. 4, pp. 3355–3362, 2019.DOI
- [7]R. Schwan et al., “PIOP: A proximal interior-point quadratic programming solver,” in Proc. IEEE Conf. Decis. Control, 2023.arxiv.org/abs/2304.00290
- [8]P. J. Goulart and Y. Chen, “Clarabel: An interior-point solver for conic programs with quadratic objectives,” Math. Program. Comput., pp. 1–83, 2026.
- [9]A. L. Bishop et al., “ReLU-QP: A GPU-accelerated quadratic programming solver for model-predictive control,” in Proc. IEEE Int. Conf. Robot. Autom., 2024, pp. 13 285–13 292.arxiv.org/abs/2311.18056
- [10]H. J. Ferreau et al., “qpOASES: A parametric active-set algorithm for quadratic programming,” Math. Program. Comput., vol. 6, no. 4, pp. 327–363, 2014.DOI
- [11]D. Åström et al., “A dual active-set solver for embedded quadratic programming using recursive LDLᵀ updates,” IEEE Trans. Autom. Control, vol. 67, no. 8, pp. 4362–4369, 2022.
- [12]A. Bambade et al., “Prox-QP: Yet another quadratic programming solver for robotics and beyond,” in Proc. Robot. Sci. Syst., 2022.DOI
- [13]M. Schubiger et al., “GPU acceleration of ADMM for large-scale quadratic programming,” J. Parallel Distrib. Comput., vol. 144, pp. 55–67, 2020.DOI
- [14]V. N. Dinh, “Real-time QP solvers: A concise review and practical guide towards legged robots,” arXiv preprint arXiv:2510.21773, 2025.arxiv.org/abs/2510.21773
- [15]N. Hansen et al., “TD-MPC2: Scalable, robust world models for continuous control,” in Proc. Int. Conf. Learn. Represent. (ICLR), 2024.arxiv.org/abs/2310.16828
- [16]S. M. Rajkumar et al., “K-PWM: Control-oriented structured bilinear world models under partial observation,” arXiv preprint arXiv:2611.11521, 2026.arxiv.org/abs/2611.11521
- [17]M. Watter et al., “Embed to control: A locally linear latent dynamics model for control from raw images,” in Adv. Neural Inf. Process. Syst., vol. 28, 2015.arxiv.org/abs/1506.07365
- [18]M. Korda and I. Mezić, “Linear predictors for nonlinear dynamical systems: Koopman operator meets model predictive control,” Automatica, vol. 93, pp. 149–160, 2018.DOI
- [20]S. M. Rajkumar et al., “Real-time linear MPC for quadrotors on SE(3): An analytical Koopman-based realization,” IEEE Robot. Autom. Lett., vol. 10, no. 12, pp. 13 018–13 025, 2025.arxiv.org/abs/2409.12374
- [21]V. Makoviychuk et al., “Isaac Gym: High performance GPU based physics simulation for robot learning,” in Proc. NeurIPS Datasets Benchmarks Track, 2021.arxiv.org/abs/2108.10470
- [23]A. O’Neill et al., “Open X-Embodiment: Robotic learning datasets and RT-X models,” in Proc. IEEE Int. Conf. Robot. Autom. (ICRA), 2024.arxiv.org/abs/2310.08864
- [24]H. Lu, Z. Peng, and J. Yang, “MPAX: Mathematical programming in JAX,” in NeurIPS Workshop GPU-Accelerated Scalable Optim., 2025.arxiv.org/abs/2412.09734
- [25]K. Tracy and Z. Manches̄ter, “On the differentiability of the primal-dual interior-point method,” arXiv:2406.11749, 2024.arxiv.org/abs/2406.11749
- [26]F. Song, R. Schwan, Y. Cheng, J. Jiang, and C. N. Jones, “CuPIQP: A batched and differentiable QP solver on GPUs for robot learning and control,” arXiv:2610.41021, 2026.arxiv.org/abs/2610.41021
- [27]E. Adabag et al., “MPCGPU: Real-time nonlinear model predictive control through preconditioned conjugate gradient on the GPU,” in Proc. IEEE Int. Conf. Robot. Autom., 2024.DOI
- [28]G. Bravo-Palacios et al., “TurboMPC: Fast, scalable, and differentiable model predictive control on the GPU,” arXiv:2606.24039, 2026.
- [29]L. Wu et al., “πMPC: A parallel-in-horizon and construction-free NMPC solver,” arXiv:2601.14414, 2026.arxiv.org/abs/2601.14414
- [30]B. Akbari et al., “CUDA MPC: A GPU-native solver for model predictive control,” arXiv:2608.03051, 2026.arxiv.org/abs/2608.03051
- [31]F. Borrelli, A. Bemporad, and M. Morari, Predictive Control for Linear and Hybrid Systems. Cambridge University Press, 2017.
- [32]NVIDIA Corporation, CUDA C++ Programming Guide, accessed: Nov. 8, 2026. [Online]. Available: https://docs.nvidia.com/cuda/cuda-c-programming-guide.pdf
- [33]J. Nickolls et al., “Scalable parallel programming with CUDA,” in Proc. ACM SIGGRAPH Classes, 2008, pp. 1–14.
- [34]J. Filipović et al., “Optimizing CUDA code by kernel fusion: application on BLAS,” J. Supercomput., vol. 71, pp. 3934–3957, 2015.DOI
- [35]J. L. Jerez, E. C. Kerrigan, and G. A. Constantinides, “A condensed and sparse QP formulation for predictive control,” in Proc. IEEE Conf. Decis. Control Eur. Control Conf., 2011, pp. 5217–5222.DOI
- [36]D. Ruiz, “A scaling algorithm to equilibrate both rows and columns norms in matrices,” Rutherford Appleton Lab., Tech. Rep., 2001.
