NeurIPS 2026Conference on Neural Information Processing Systems · Sydney

Neural Compression of Long ADMM Trajectory for Multiparametric Quadratic Program

Liang Wu1,* Honghui Zheng1,*,† Bo Yang2,* Xu Yang2,* Yilin Mo2 Ján Drgoňa1

1Department of Civil and Systems Engineering, Johns Hopkins University
2Department of Automation, Tsinghua University

* Equal contribution  ·  † Corresponding author

Solving a multiparametric quadratic program in real time can take thousands of ADMM iterations, and none of that work carries over to the next instance. TQPNet learns to compress the whole trajectory into a small ReLU network that emits a primal-dual warm start, followed by a handful of unrolled ADMM(ReLU) layers. The network is trained on the KKT residual alone, with no solver labels, and that same residual certifies every answer online and triggers extra refinement only where it is needed.

arXiv NeurIPS Code BibTeX

4096 quadrupeds in Isaac Gym, one batched TQPNet solve per cycle.
Johns Hopkins Whiting School of Engineering SOLARIS lab, Johns Hopkins University Tsinghua University Johns Hopkins Ralph O'Connor Sustainable Energy Institute

7×

faster than OSQP at n+m = 2800

On MPC-structured QPs TQPNet with K = 10 layers holds about 1.3 ms across nine scales while OSQP grows from 0.03 ms to 13 ms. Crossover at n+m = 875, same closed-loop tracking error.

4096

robots per batched solve

Quadruped MPC at 50 Hz in Isaac Gym, 192 variables and 384 constraints per robot, all solved concurrently in one control cycle. Trained in under five minutes on one RTX 3080.

0

solver labels

The loss is the KKT residual of the QP itself, so training only needs sampled parameters. Offline cost drops below the supervised pipeline for n+m ≥ 2100.

1.8×

fewer iterations to 10-7

On n = 100, m = 200 random mpQPs the learned warm start cuts the 4729 cold-start ADMM(ReLU) iterations to 2778, and every answer ships with its residual certificate.

The problem

Model predictive control, differentiable control layers and reinforcement-learning pipelines all solve the same convex quadratic program over and over. The Hessian and the constraint matrix stay fixed; only the linear terms move with a parameter \(p\) such as the current state, the reference and the contact schedule:

$$ \begin{aligned} \min_{x \in \mathbb{R}^{n}} \quad & \tfrac{1}{2}\, x^{\top} Q\, x + q(p)^{\top} x \\ \text{s.t.} \quad & A\, x \geq c(p), \qquad p \in \mathcal{P} \subset \mathbb{R}^{n_p}. \end{aligned} $$

Each instance is cheap on paper, yet a first-order method started from scratch needs thousands of iterations to reach a tight optimality tolerance. On a modest instance with 100 variables and 200 constraints, low-dimensional ADMM(ReLU) needs 4729 cold-start iterations to reach a KKT residual of \(10^{-7}\), and nothing it learned about one parameter transfers to the next. The existing shortcuts each give something up.

Online solvers

Interior-point, active-set and first-order solvers certify their answer, but they do no offline work, so every instance pays the full iteration count, and their sequential structure does not batch on a GPU.

Explicit MPC

Precomputing the piecewise-affine solution map gives instant lookups, but the number of regions explodes: 3123 regions and 4.1 ms already at n+m = 140, and infeasible beyond n+m = 315.

Supervised proxies

A network regressed on solver labels is fast, but it needs a solver call for every training point, carries no certificate, and degrades silently under distribution shift.

TQPNet

TQPNet keeps the optimizer in the loop and makes it learnable. A ReLU multilayer perceptron maps the parameter to a primal-dual pair \((x_0, \beta_0)\), and a fixed number \(K\) of unrolled ADMM(ReLU) layers refine it. Offline, the whole stack is trained end-to-end on the residual of the QP's optimality conditions over sampled parameters. Online, the same residual is checked per instance; whenever it exceeds the tolerance, more ADMM(ReLU) layers run on that instance until it passes.

TQPNet architecture. Offline training phase: sampled parameters feed an MLP(ReLU) that outputs (x, beta), K layers of low-dimensional ADMM(ReLU) refine them, and the KKT residual loss J is minimized until it falls below epsilon_off. Online inference phase: batched parameters pass through the same MLP(ReLU) and K ADMM(ReLU) layers, the residual is checked against epsilon_on, and further ADMM(ReLU) iterations run only if the check fails before x is returned
The hybrid MLP(ReLU)-ADMM(ReLU) architecture. Offline (top), the residual is the training loss. Online (bottom), the residual is a certificate that triggers extra refinement only when needed.
1

Low-dimensional ADMM

A new splitting iterates directly on the primal-dual pair \((x, \beta)\) instead of the usual \((x, z, u)\) with the auxiliary variable \(z = Ax\). Each iteration costs \(O((n+m)^2)\) rather than \(O((n+2m)^2)\), and it converges faster in practice.

2

ADMM(ReLU)

One iteration of that scheme is exactly an affine map followed by a ReLU on the multiplier. It is therefore a neural-network layer: differentiable, batch-parallel on a GPU, and stackable behind an MLP.

3

Residual as loss and certificate

The KKT residual bounds the distance to the solution set, so minimizing it trains the network without labels, and thresholding it online certifies each returned solution.

One ADMM iteration is one ReLU layer

Eliminating \(z\) from the standard ADMM for the QP leaves an update that touches only \(x\) and the multiplier \(\beta\), and the projection onto the nonnegative orthant is a ReLU:

$$ \begin{bmatrix} x^{k+1} \\ \beta^{k+1} \end{bmatrix} = \mathrm{ReLU}_{\beta \geq 0}\!\left( W_2 \begin{bmatrix} x^{k} \\ \beta^{k} \end{bmatrix} + b_2 \right), \qquad \mathrm{ReLU}_{\beta \geq 0}\!\left(\begin{bmatrix} x \\ \beta \end{bmatrix}\right) = \begin{bmatrix} x \\ \max(0, \beta) \end{bmatrix}, $$

where \(W_2\) depends only on \(Q\), \(A\) and the penalty \(\rho\), and \(b_2\) is affine in \(q(p)\) and \(c(p)\). The weights are derived, not learned, so the layer is an exact optimizer step. Stacking \(K\) of them behind the MLP gives the proxy

$$ \begin{pmatrix} x^{*} \\ \beta^{*} \end{pmatrix} \approx \mathrm{ADMM\text{-}ReLU}_{K,\rho}\big( \mathcal{N}(p;\theta, M, L) \big), $$

with \(\mathcal{N}\) an \(L\)-layer ReLU network of width \(M\). ReLU networks represent piecewise-affine maps with exponentially many regions, which is exactly the structure of the mpQP solution map that explicit MPC tries to tabulate.

Relative solution error versus ADMM iteration over 100 random QPs with n = 500 and m = 1000. The low-dimensional ADMM(ReLU) median drops to 1e-5 within about a thousand iterations while full-dimensional ADMM needs around eight thousand; shaded bands show the 5 to 95 percent range
Low-dimensional ADMM(ReLU) versus full-dimensional ADMM on 100 random QPs (n = 500, m = 1000). Lines are medians, bands the 5 to 95 percent range.

Self-supervised training and online certification

The optimality conditions of the QP define a residual on any primal-dual pair,

$$ r(x, \beta; p) \triangleq \begin{bmatrix} Q x - A^{\top} \beta + q(p) \\ \beta - \max\!\big(0,\, \beta - A x + c(p)\big) \end{bmatrix}, \qquad \mathrm{dist}\big((x,\beta), \mathcal{S}(p)\big) \leq \kappa(p)\, \| r(x,\beta;p) \|_2 , $$

which vanishes exactly on the solution set \(\mathcal{S}(p)\) and bounds the distance to it. Training minimizes the residual of the full proxy over parameters sampled from \(\mathcal{P}\), with a logarithm to tame the many orders of magnitude across instances:

$$ \mathcal{L}(\theta) = \mathbb{E}_{p \sim \mathcal{D}} \Big[ \log\Big( \big\| r\big(\mathrm{ADMM\text{-}ReLU}_{K,\rho}(\mathcal{N}(p;\theta,M,L));\, p\big) \big\|_2^2 + 1 \Big) \Big]. $$

No OSQP call appears anywhere in training. The unrolling depth matters: back-propagating through ten or fewer layers mostly sees ADMM convergence noise and fails to compress, while 25 or more layers make training stable and let the warm start land where a few layers can finish. At inference the same residual is evaluated for every instance in the batch; instances above the tolerance \(\epsilon_{\mathrm{on}}\) get additional ADMM(ReLU) layers, so every returned \(x\) comes with a certificate and the dual \(\beta\) comes for free.

Results

All experiments ran on a single RTX 3080. The supervised baseline LQPNet shares the same MLP backbone but is regressed on OSQP labels; ADMM(ReLU) denotes the low-dimensional scheme started cold from \(x = \beta = 0\).

Compressing the trajectory

On random mpQPs with n = 100, m = 200 and 20 parameters, the depth \(K_{\text{train}}\) of the unrolled layers decides whether anything is compressed at all. Shallow unrolling stalls near a relative error of one; from 25 layers on, training converges and the trained warm start reaches a residual of \(10^{-7}\) in 1.7 to 1.8 times fewer iterations than a cold start.

Test relative error versus training epoch for MLP(ReLU) alone and with 1, 5, 10, 25 and 50 unrolled ADMM(ReLU) layers at n = 100; the 25- and 50-layer runs decrease steadily to about 0.03 while the 1-, 5- and 10-layer runs stall near 1
(a) Training: test relative error at fixed \(K_{\text{eval}} = 10\) versus epoch.
KKT residual versus inference refinement step K after training; cold-started low-dimensional ADMM(ReLU) crosses 1e-7 near 4700 iterations, the 25- and 50-layer TQPNet variants near 2800, and full-dimensional ADMM stays above 1e-1
(b) Inference: KKT residual versus refinement steps after training.
MethodIterations to 10-7Time (ms)Speedup
Full-dimensional ADMM> 104> 50.5—
Low-dimensional ADMM(ReLU), cold start472910.691.0×
MLP(ReLU) only35787.781.4×
MLP(ReLU) + 10-layer ADMM(ReLU)33927.311.5×
MLP(ReLU) + 25-layer ADMM(ReLU)28006.461.7×
MLP(ReLU) + 50-layer ADMM(ReLU)27786.031.8×
Median iterations and wall-clock to a KKT residual of 10-7 over 100 test mpQPs (n = 100, m = 200, np = 20).

Generalization under distribution shift

Both proxies are trained on parameters drawn from \(\mathcal{U}[-1,1]^{20}\) and tested on progressively shifted ranges. In distribution the supervised LQPNet is more accurate, but it needs an OSQP label for every training point and offers no certificate. Under shift the gap narrows monotonically, from 3.9× in distribution to 1.8× far out of distribution: training on the residual learns features that are more invariant to the parameter than direct regression on \(x^{*}\).

Violin plots of relative solution error for TQPNet and LQPNet at K = 10, 30 and 50 on the Train, Valid, Boundary and OOD parameter sets; LQPNet is lower in distribution, and both rise together under shift with the gap shrinking
Relative solution error across parameter sets at n = 100, m = 200. Train and Valid: \(\mathcal{U}[-1,1]\); Boundary: \(\mathcal{U}[-2,2]\); OOD: \(\mathcal{U}[-3,3]\); 500 instances each.

Scalability on MPC problems

Nine MPC-structured QP families from n+m = 60 to 2800 are run in closed loop for 200 steps. TQPNet with K = 10 keeps a near-constant latency of about 1.3 ms while OSQP grows from 0.03 ms to 13 ms; the crossover is at n+m = 875 and the speedup reaches 7× at n+m = 2800, with identical tracking RMSE and closed-loop cost. Explicit MPC built with MPT3 already needs 3123 regions at n+m = 140 and cannot be constructed beyond n+m = 315. Offline, label-free training becomes cheaper than the supervised pipeline for n+m ≥ 2100.

Solve latency in milliseconds versus n+m from 60 to 2800: OSQP rises from 0.03 to 13 ms, TQPNet and LQPNet at K = 10 stay near 1.3 ms, cold ADMM(ReLU) at K = 50 near 4.5 ms, and explicit MPC jumps to 4.1 ms at n+m = 140
(a) Online solve latency versus problem size.
Offline preparation time in seconds versus n+m: TQPNet's unsupervised training grows from 65 to 334 s, LQPNet's supervised pipeline from 24 to 590 s, crossing near n+m = 2100; explicit MPC is only feasible at the two smallest sizes
(b) Offline time: self-supervised training versus label generation plus supervised training.
n+mOSQP latency (ms)TQPNet latency (ms)SpeedupTracking RMSE (OSQP / TQPNet)Explicit MPC (ms)
600.031.310.0×0.221 / 0.2210.57
1400.071.300.1×0.218 / 0.2184.11
3150.211.230.2×0.217 / 0.217—
5600.591.310.4×0.263 / 0.264—
8751.381.271.1×0.217 / 0.217—
10502.121.361.6×0.240 / 0.240—
14003.551.332.7×0.198 / 0.198—
21007.221.455.0×0.217 / 0.218—
280013.061.887.0×0.225 / 0.225—
Closed-loop MPC over 200 steps with shared process noise; TQPNet uses K = 10 and a fixed 512 × 4 network at every scale. Explicit MPC is infeasible beyond n+m = 140.

Quadruped locomotion with 4096 robots

Convex MPC for a Unitree A1 runs at 50 Hz over a 16-step horizon; each control cycle is a QP with 192 variables and 384 constraints parameterized by 18 quantities such as body orientation, height, commanded velocities and the contact schedule. TQPNet is trained offline from sampled parameters only, in under five minutes on one RTX 3080, with no environment interaction and no solver labels. Deployed in Isaac Gym, every simulated robot is an independent QP instance, and all of them are solved in a single batched pass per control cycle.

(a) Close-up of the Isaac Gym batch: each robot follows its own randomized velocity and yaw-rate command, and all 4096 QPs are solved together by TQPNet with K = 10.

The learned warm start is what makes the short refinement sufficient. Batch latency stays near constant until the GPU saturates, while qpth's interior-point solve grows with the batch. Against the OSQP optimum, TQPNet's cost error and constraint violation drop below \(10^{-2}\) within fewer than 20 refinement steps, whereas the cold-started ADMM(ReLU) needs more than 60 to reach the same accuracy.

Solve latency in milliseconds versus number of robots from 1 to 8192 on log axes: qpth climbs from 14 ms to over 4000 ms, cold ADMM(ReLU) at K = 50 from 10 to 240 ms, TQPNet at K = 10 from 2 to 50 ms, K = 20 from 4 to 95 ms, and K = 0 stays below 1 ms
(b) Batch solve latency versus number of parallel robots.
Relative QP cost error against the OSQP optimum versus refinement steps K: TQPNet falls below 1e-2 by K = 10 and settles near 1.3e-3, cold ADMM(ReLU) needs about 60 steps to reach 1e-2, and qpth is a flat reference near 2e-3
(c) Relative QP cost error versus refinement steps K.
Maximum constraint violation versus refinement steps K: TQPNet drops below 1e-2 within 10 steps and reaches 1e-4 by K = 60, while cold ADMM(ReLU) is still near 1e-3 at K = 100
(d) Maximum constraint violation versus refinement steps K.

Quadrotor tracking with bounded latency

A single quadrotor tracks a lemniscate reference under MPC with a 25-step horizon (n = 100, m = 300) for 600 steps. All methods overlap at trajectory resolution and tracking errors are within the same magnitude as OSQP. The difference is the tail: OSQP's worst-case solve is 10 to 25 times its median because the iteration count varies from step to step, whereas TQPNet at fixed K has bounded execution.

Closed-loop quadrotor trajectories in the x-y plane tracking a figure-eight reference; OSQP, cold ADMM(ReLU) with K = 50 and TQPNet with K = 30 all overlap the reference
(a) Lemniscate tracking: reference, OSQP, cold ADMM(ReLU) (K = 50) and TQPNet (K = 30) overlap.
Position error in metres over 45 seconds for OSQP, cold ADMM(ReLU) and TQPNet; all three fluctuate between about 0.005 and 0.05 m with the same pattern
(b) Position error over time for the same three controllers.
MethodRMSE (m)Latency median / max (ms)Iterations median / max
OSQP (ε = 10-6)0.02730.73 / 7.0350 / 450
OSQP (ε = 10-8)0.02730.75 / 21.1050 / 1500
ADMM(ReLU), cold (K = 50)0.03065.84 / 13.0550 / 50
TQPNet (K = 10)0.03021.67 / 4.3910 / 10
TQPNet (K = 30)0.02973.90 / 10.6630 / 30
Single-UAV lemniscate tracking over 600 steps. OSQP is called through its C API with warm-started updates between steps.

Citation

@inproceedings{wu2026neural,
  title     = {Neural Compression of Long {ADMM} Trajectory for Multiparametric Quadratic Program},
  author    = {Wu, Liang and Zheng, Honghui and Yang, Bo and Yang, Xu and Mo, Yilin and Drgo{\v{n}}a, J{\'a}n},
  booktitle = {Advances in Neural Information Processing Systems},
  year      = {2026}
}