Manuscript Offprint
arXiv:2610.38079Neural Compression of Long ADMM Trajectory for Multiparametric Quadratic Program
Abstract
Solving large-scale multiparametric quadratic programs (mpQPs) in real time often requires thousands of iterative optimization updates, creating a major computational bottleneck in model predictive control and learning-enabled systems. This paper proposes TQPNet, a self-supervised neural compression framework that learns to compress long ADMM optimization trajectories into a compact neural warm start followed by a few refinement iterations. We derive a low-dimensional ADMM scheme operating on the primal–dual variables and show that its iteration admits an equivalent ReLU-layer representation, termed ADMM(ReLU). Building on this insight, TQPNet combines a multilayer perceptron with ReLU activations (MLP(ReLU)) and a small number of unrolled ADMM(ReLU) refinement layers. The network is trained offline using an optimality-condition-informed residual loss, eliminating the need for solver-generated labels. The proposed residual-based framework enables both self-supervised training and online solution certification through adaptive ADMM(ReLU) refinement. Experiments on large-scale mpQPs and real-time MPC applications demonstrate that TQPNet achieves high accuracy, strong generalization, and substantially faster inference than conventional optimization-based methods.
1 Introduction and Problem Statement
Quadratic programming (QP) is a fundamental optimization paradigm widely used across control, operations research, machine learning, finance, and related fields [1, 2]. Specifically, the widely used optimization-based control approach, model predictive control (MPC), can often be recast as a QP with time-varying parameters, referred to as a multiparametric QP (mpQP) [3].
This paper focuses on a convex mpQP problem as shown in (1), where denotes the parametric vector. The problem data, including , , and
dependent on , and denotes the decision vector. We assume that QP (1) has an optimal solution set , namely the set is not empty. Note that this assumption is not restrictive, as infeasible instances can be equivalently handled via a slack-variable reformulation. Specifically, introducing slack variables , we consider the penalized problem , s.t. , where is a penalization scalar, which can be written as the standard mpQP formulation (1) by recasting , , , , and .
Equal Contributions. Corresponding Author.
40th Conference on Neural Information Processing Systems (NeurIPS 2026).
The mpQP (1) arises from MPC formulations for both linear and nonlinear systems (e.g., via Koopman operator [4]). Despite the maturity of QP theory and algorithms [5, 6], solving large-scale mpQPs in real time often requires thousands of iterative optimization updates, which remain a major computational bottleneck in modern control, robotics, and learning-enabled decision-making systems.
This challenge becomes even more pronounced in scenarios requiring massively parallel optimization, such as reinforcement-learning-MPC pipelines and differentiable control architectures, where a large number of mpQPs must be solved simultaneously and repeatedly. In such settings, there is a growing need for optimization methods that simultaneously achieve: (i) fast inference, (ii) scalability in both offline and online phases, (iii) batch-parallel execution, (iv) differentiability for end-to-end learning integration, and (v) trustworthy solution refinement with optimality certification.
Related work. Existing approaches for solving mpQPs can be broadly categorized into several classes. Online optimization-based solvers, such as using interior-point [7, 8, 5, 9, 10], active-set [11, 12], and first-order methods [13, 14, 15, 16], offer convergence guarantees and optimality certificates, but do not exploit offline computation to accelerate online inference. Offline explicit region-based methods [3, 17, 18] rely on offline computation to precalculate the piecewise-affine solution mapping, enabling extremely fast online evaluation, but their offline construction suffers from the well-known combinatorial growth of critical regions, which quickly becomes prohibitive for high-dimensional problems. This limits their applicability to large-scale MPC. Supervised neural approaches [19, 20, 21] learn mappings from problem parameters to optimal decisions using solver-generated labeled data. While enabling fast inference, they require expensive offline supervision and generally lack mechanisms for adaptive refinement or solution certification. More recently, learning-to-optimize and self-supervised approaches [22, 23, 24, 25, 26, 27, 28, 29, 30] have explored learning iterative optimization structures, warm-start strategies, or optimization dynamics without requiring labeled optimal solutions. Finally, differentiable optimization approaches [31, 32, 33, 34, 35], enable end-to-end gradient propagation through optimization layers, but often rely on implicit differentiation involving large Hessian-related linear systems, which can incur substantial computational and memory overhead.
Motivated by these challenges, this paper proposes TQPNet, a self-supervised neural compression framework for mpQPs, illustrated in Fig. 1. The central idea is to learn to compress long ADMM algorithm trajectories into a compact neural warm start followed by only a few optimization refinement iterations.

Figure 1: Architecture of TQPNet based on the hybrid MLP(ReLU)-ADMM(ReLU) neural network.
To enable this formulation, we first derive a reduced-state ADMM iteration scheme operating directly on the primal-dual variables . We further show that the resulting iteration admits an equivalent ReLU-layer representation, termed ADMM(ReLU), enabling a neural-friendly and naturally batch-parallel implementation. Building on this insight and motivated by the strong expressive power of deep multilayer perceptrons with ReLU activations (MLP(ReLU)) for representing piecewise-affine structures, which naturally arise in mpQP solution mappings, TQPNet combines a multilayer perceptron with ReLU activations (MLP(ReLU)) and a small number of unrolled ADMM(ReLU) refinement layers. The MLP(ReLU) component learns a compact approximation of long optimization trajectories, while the ADMM(ReLU) layers provide optimization-based refinement and adaptive certification. Rather than relying on solver-generated labels, the MLP(ReLU) parameters are trained offline in a self-supervised manner using an optimality-condition-informed residual loss over sampled parameter instances. The proposed residual-based formulation provides a unified mechanism for both offline training supervision and online solution verification. When the predicted solution does not satisfy a prescribed optimality tolerance, additional ADMM(ReLU) refinement iterations are triggered automatically to improve solution accuracy.
As a result, TQPNet combines the efficiency of amortized optimization with the reliability of iterative optimization refinement. Extensive experiments demonstrate that the proposed framework can compress thousands of ADMM iterations into a compact MLP(ReLU) followed by only a few ADMM(ReLU) refinement steps, leading to substantial acceleration on large-scale mpQPs and real-time MPC applications while preserving strong solution accuracy and generalization performance.
Contributions. Our main contributions can be summarized as follows,
-
To the best of the authors' knowledge, this is among the first works to propose a low-dimensional ADMM with lower per-iteration cost and empirically faster convergence than standard ADMM and show its equivalence to a ReLU layer, enabling a differentiable and batch-parallel ADMM(ReLU) implementation.
-
We propose TQPNet, a hybrid MLP(ReLU)–ADMM(ReLU) architecture that learns to compress long optimization trajectories into compact neural warm starts followed by a few optimization refinement iterations. TQPNet is an optimality-condition-informed self-supervised learning framework that eliminates the need for solver-generated labels while enabling adaptive online refinement and solution verification.
-
More broadly, this work suggests a new paradigm for designing neural compressions of deep iterative algorithms and integrating them with the underlying optimization iterations to achieve faster online computation.
2.1 Preliminary: full-dimensional ADMM algorithm
Different variable-splitting schemes lead to different ADMM algorithms. One standard choice is introducing an auxiliary variable and QP (1) can be reformulated as follows,
where and is the indicator function for the set . Then, its augmented Lagrangian (with the scaled-form Lagrangian variable) is given by , where denotes the scaled dual La-
grangian variable for the equality constraint. Based on Ref. [36], the corresponding -th ADMM update is shown in Eqn. (3).
Remark 2.1. (Requirements of Problem Data for Well-posedness of ADMM). The -update (3a) is well-defined if , or equivalently, , which ensures the uniqueness of the -update (3a).
Lemma 2.2. In the ADMM iteration (3), the -, -, and -updates are performed sequentially. To improve parallelizability and get faster computation speed, we can rewrite (3) as the following ReLU-like layer,
where
Proof. See Appendix A.1.
Remark 2.3. The ADMM-ReLU formulation (4) is full-dimensional over , with computational complexity , as demonstrated in [37].
To simultaneously eliminate the data requirements noted in Remark 2.1 and reduce the per-iteration computational cost of ADMM (i.e., the ADMM-ReLU layer) discussed in Remark 2.3, we propose a computationally efficient low-dimensional ADMM-ReLU scheme.
2.2 Low-dimensional ADMM-ReLU layer
Before presenting the proposed low-dimensional ADMM-ReLU, we introduce a decomposition of A, termed the Canonical Outer-Product Expansion (COPE), as an analytical tool. Notably, the resulting low-dimensional formulation does not rely on the COPE decomposition and does not perform the decomposition in practice.
Definition 2.4. (COPE). Let be a matrix with nonzero entries. Let be any enumeration of the nonzero entries of , where , , and . Then admits the canonical outer-product expansion
where and are the canonical basis vectors in and , respectively. Denote
where are the canonical basis vectors in , then
which is the matrix form of COPE.
Lemma 2.5. Let be a (sparse) matrix each of whose rows and columns contains at least one nonzero entry, and let defined in (6) be its COPE representation. Then, the matrices and are positive diagonal matrices, with
which indicates that the i-th diagonal value of is the sum of the squares of all non-zero elements in (the i-th row of ), and the i-th diagonal value of is the number of non-zero elements in (the i-th column of ).
Proof. See Appendix A.2.
Note that the subsequent analysis does not require a full COPE decomposition, but only the inexpensive and trivial computation of and . Then, using the COPE decomposition and introducing the auxiliary variable : , we can equivalently reformulate QP (1) as the following optimization:
where the set and is the indicator function for the set .
Then, its augmented Lagrangian (with the scaled-form Lagrangian variable) is given by , where denotes the scaled dual Lagrangian variable for the
equality constraint. Based on Ref. [36], the corresponding -th ADMM update is shown in (9).
Lemma 2.6. The y-update (9a) admits the following closed-form solution
Proof. See Appendix A.3.
Theorem 2.7. (Low-dimensional ADMM-ReLU Layer). The COPE-based ADMM iteration (9) can be equivalently rewritten as a low-dimensional ADMM-ReLU layer as follows,
where , , and
with computational complexity per layer or iteration.
Proof. See Appendix A.4.
In the proposed low-dimensional ADMM-ReLU (11), can be represented as a single affine-ReLU operator evaluation, enabling a parallelizable and neural-friendly implementation that naturally supports batched computations. Furthermore, the unrolled form of (11) is inherently differentiable, allowing seamless end-to-end integration with learning-based modules. However, the ADMM iteration scheme may require many iterations when applied to ill-conditioned mpQPs. This motivates the development of a compact neural proxy to learn the solution–parameter mapping of mpQP in the offline phase.
2.3 Self-supervised Learning of Trustworthy Neural Proxy
A well-known result is that the solution of the mpQP (1) partitions the parameter vector space into critical regions (CRs), where a CR is the set of all parameter vectors for which a certain combination of constraints is active at the optimizer of the multiparametric QP (1). For each CR, the optimizer is a piecewise affine (PWA) function of , see [3], i.e.,
One major drawback of the explicit PWA representation (12) of the multiparametric QP (1) is that the number of regions required for an exact representation can grow exponentially with the problem dimension, leading to large memory requirements and rendering explicit PWA approaches (12) non-scalable.
2.3.1 Hybrid MLP(ReLU)-ADMM(ReLU) neural network structure
A scalable and memory-efficient alternative is a deep MLP with ReLU activation functions, motivated by the expressive power results in [38]. In this paper, we adopt the following MLP(ReLU)-ADMM(ReLU) parameterization as a proxy for the solution of multiparametric QP (1):
where, with , and , for all , (where ); ADMM-ReLU denotes the proposed low-dimensional ADMM-ReLU formulation in (11), with a fixed number of iterations (or layers) K and a penalty parameter (can be learnable). The learnable parameter is given by , where M denotes the width of each hidden layer and L denotes the number of hidden layers.
Lemma 2.8 (see [38, Thm. 4, Cor. 5]). Every neural network with ReLUs as activation functions and represents a PWA function. In addition, a lower bound on the maximal number of affine regions that the neural network represents is given by the following expression:
Lemma 2.8 shows that the number of linear regions of a MLP grows exponentially with and polynomially with . Furthermore, the bound in Lemma 2.8 can be slightly improved when ; see [39].
2.3.2 Self-supervised learning loss design
Rather than using solver-generated data to build a supervised loss, this paper introduces an optimality-condition-informed neural network that constructs the loss within a self-supervised learning framework. Define
where it is immediate that is piecewise-quadratic and convex on the solution manifold.
Theorem 2.9. For any , the multiparametric (1) admits a nonempty solution set . Then, there exists a constant such that for all in a neighborhood of . Consequently, minimizing the optimality-condition-informed residual norm drives the toward the solution set of the multiparametric (1).
Proof. See Appendix A.5.
□
By Theorem 2.9, substituting the -ADMM( )-parameterized proxy (13) into the residual naturally induces a self-supervised learning framework for training the neural proxy. Because the -norm of the optimality condition residual may have several orders of magnitude across different samples, in practice, we design the following training loss,
Minimizing is theoretically consistent with driving the prediction of the -ADMM( )-parameterized proxy (13) toward the optimal primal-dual solution. The dataset can be constructed by sampling the points uniformly over the domain . However, uniform sampling often provides insufficient coverage near the boundary of , even though these regions are particularly important for characterizing the behavior of the loss function and improving the accuracy of the surrogate model close to the boundary. To obtain better boundary coverage, this paper adopts a projected sampling strategy as shown in Algorithm 1. The unified algorithm for offline training and online inference with certification is presented in Algorithm 2.
3 Numerical Experiments
We evaluate TQPNet on four increasingly complex experiments on a single RTX 3080 (per-experiment unrolling depth in Appendix C.3). Code: https://github.com/SOLARIS-JHU/TQPNet.
3.1 Advantages of MLP(ReLU)-ADMM(ReLU)
Empirically faster convergence of low-dimensional ADMM-ReLU. We evaluate the convergence behavior of the proposed low-dimensional ADMM-ReLU (9) against the standard full-dimensional ADMM (3) on 100 independently generated QP instances with dimensions and . The constraint matrix is constructed as a sparse matrix with density 0.1 and the right-hand side is sampled as . Fig. 2 presents the convergence statistics on three different scale = settings across problem instances, including the median convergence trajectory and the corresponding 5%–95% percentile band over the 100 randomly generated QPs. The results indicate that the proposed low-dimensional ADMM-ReLU (9) consistently achieves faster convergence behavior than the standard full-dimensional ADMM (3) across problem instances. We do not aim to demonstrate that the proposed low-dimensional ADMM is universally faster than the standard full-dimensional ADMM, since both approaches may still require a large number of iterations in certain cases. Rather, this limitation motivates us to develop an offline self-supervised MLP(ReLU) neural compression of long ADMM iterations to achieve faster online inference.

(a) scale = 2
(b) scale = 4
(c) scale = 6
Figure 2: Convergence statistics over 100 random QPs for the low-dimensional ADMM-ReLU and the full-dimensional ADMM.
MLP(ReLU) compresses long ADMM(ReLU) iterations. Even after the low-dimensional reformulation, a typical mpQP at , , still requires 4729 cold-start ADMM(ReLU) iterations to reach (Fig. 3b). We amortize this overhead into a learned warm start: an MLP(ReLU) maps , trained end-to-end through unrolled ADMM(ReLU) layers under the KKT loss. The depth governs whether back-propagation sees warm-start error or residual ADMM-convergence noise: shallow unrolling () stays in the latter regime and fails to train, whereas crosses into the former and saturates the achievable accuracy (Fig. 3a; the required grows with , Appendix C). The trained warm start then cuts the inference budget by up to (Fig. 3b, Tab. 2). We denote this MLP(ReLU)-ADMM(ReLU) hybrid (13) as TQPNet; the supervised baseline LQPNet (Label-supervised QP Net) shares the same MLP backbone but is trained directly on OSQP labels via MSE.

(a) Training.

(b) Inference.
Figure 3: Ablation of . (a) Test relative error vs. epoch at fixed ; (b) post-training KKT residual vs. refinement steps . fails to compress; stabilizes training and accelerates inference over ADMM(ReLU).
3.2 Generalizability and Scalability
Out-of-distribution robustness. A key concern for learned solvers is their robustness under distribution shift. We train TQPNet and LQPNet on , , random mpQPs with parameters sampled from , and evaluate on progressively shifted ranges (Train/Valid: , Boundary: , OOD: ; 500 instances each). In distribution, LQPNet is more accurate (TQPNet vs. LQPNet at ; Table 3), but the TQP-LQP gap narrows monotonically under shift, from in-distribution to on OOD (Fig. 4): TQPNet's KKT-residual

Figure 4: Relative solution error across parameter sets at , . LQPNet is more accurate in distribution, but the TQP-LQP gap shrinks under distribution shift.
training learns features more invariant to parameter shift than direct regression on . TQPNet additionally outputs the dual variable as a per-instance KKT certificate and trains without OSQP labels.
MPC scalability. We benchmark MPC-structured QPs generated following Ref. [40] across nine scales (S0–S8, –2800) using closed-loop simulations over steps. Fig. 5(a) shows that TQPNet () maintains near-constant latency ( ms) across all problem sizes, whereas OSQP exhibits significant growth from 0.03 ms to 13 ms as the scale increases. The crossover occurs at S4 (), beyond which TQPNet becomes faster, achieving a speedup at S8 ().
Explicit MPC (using MPT3 [18]) already requires 3123 regions and incurs 4.1 ms latency at S1 (), making it slower than TQPNet at small scales and infeasible beyond S2 due to exponential region growth. Table 4 further shows that both TQPNet and LQPNet match OSQP in tracking RMSE and closed-loop cost across all scales, while ADMM(ReLU) with cold initialization () exhibits a noticeable performance gap, highlighting the importance of learned warm starts.
Fig. 5(b) compares offline preparation costs. TQPNet's unsupervised training pipeline avoids expensive OSQP label generation and becomes more efficient than LQPNet's supervised approach for , demonstrating superior scalability in both online inference and offline training.

Figure 5: (a) Solve latency. (b) Offline time.
3.3 Application to Quadrupedal Locomotion
Complementing the single-UAV experiment in Appendix E, we now consider quadrupedal locomotion, where many QPs must be solved per control cycle. Quadrupedal locomotion control is formulated via convex MPC [41] running at 50 Hz over a prediction horizon of 16 steps with sampling period s. At each control cycle, the MPC problem is parameterized by parameters, including the body roll–pitch–yaw angles, center-of-mass height, desired linear and angular velocities, and gait-related parameters (e.g., contact schedule and swing-phase indicators), and reduces to a QP with decision variables and inequality constraints. TQPNet is trained offline on QP instances sampled from the locomotion parameter distribution over , without any environment interaction or solver-generated labels, with training completing in under 5 minutes on a single RTX 3080. The trained proxy is subsequently deployed in massively parallel simulation using Isaac Gym [42], in which each simulated robot corresponds to an independent QP instance that is solved concurrently within a single control cycle.
Fig. 6 reports the wall-clock solve latency as a function of the number of parallel environments (equivalently, the number of simultaneously solved QP instances). TQPNet exploits GPU-native batch matrix operations inherited from the MLP(ReLU)-ADMM(ReLU) architecture, maintaining near-constant per-batch latency as the environment count grows. In contrast, qpth [31] incurs significantly higher latency due to its reliance on interior-point solvers, and ADMM(ReLU) with cold initialization requires substantially more refinement iterations without a learned warm start.
Fig. 7 demonstrates (a) relative cost error against the OSQP optimum and (b) maximum constraint violation, as functions of refinement steps . TQPNet attains a cost error below and a constraint violation below within fewer than refinement steps, whereas cold-started ADMM(ReLU) requires more than iterations to reach a comparable accuracy. This gap directly quantifies the value of the learned warm start: the MLP(ReLU) initializer effectively compresses hundreds of ADMM iterations into a single forward pass while preserving certified solution quality. These results, combined with the batch-latency advantage in Fig. 6(b), show that TQPNet delivers high-fidelity QP solutions at the throughput required by parallel reinforcement-learning pipelines in robotics.

Figure 6: (a) 4096 robots concurrently controlled by TQPNet-based MPC in Isaac Gym. (b) Solve latency vs. number of parallel environments.


Figure 7: Solution quality vs. refinement steps on the quadruped locomotion MPC. (a) Relative QP cost error vs. refinement steps . (b) Constraint violation vs. refinement steps .
4 Conclusion
This paper proposed TQPNet, a self-supervised neural compression framework for mpQP that compresses long ADMM optimization trajectories into a compact neural warm start followed by a few refinement iterations. By deriving a low-dimensional ADMM and its equivalent ReLU-layer representation, we use a hybrid MLP(ReLU)-ADMM(ReLU) architecture that combines amortized optimization with optimization-based refinement, enabling adaptive online certification. Experiments demonstrate substantial acceleration on large-scale mpQPs and real-time MPC applications while preserving strong solution accuracy and scalability. More broadly, this work suggests a new paradigm for neural compression of iterative optimization algorithms.
Limitations include the lack of a rigorous convergence analysis characterizing when the proposed low-dimensional ADMM outperforms the standard full-dimensional ADMM. In particular, since infinitely many COPE decompositions may exist for a given matrix, it remains unclear which decomposition yields the best convergence behavior.
Future work includes extending the proposed framework to more general classes of optimization, such as multiparametric mixed-integer QPs or nonlinear programs, as well as exploring hardware-aware implementations to further improve real-time performance.
Acknowledgments and Disclosure of Funding
This research was supported by the Ralph O'Connor Sustainable Energy Institute at Johns Hopkins University, and by the U.S. DOE Office of Science, ASCR program under the Scientific Discovery through Advanced Computing (SciDAC) Institute "LEADS: LEarning-Accelerated Domain Science." The authors declare no competing interests.
References
[1] J. Nocedal and S. J. Wright. Numerical optimization. Springer, 2006.
[2] F. Borrelli, A. Bemporad, and M. Morari. Predictive control for linear and hybrid systems. Cambridge University Press, 2017.
[3] A. Bemporad, M. Morari, V. Dua, and E. N. Pistikopoulos. The explicit linear quadratic regulator for constrained systems. Automatica, 38(1):3–20, 2002.
[4] M. Korda and I. Mezić. Linear predictors for nonlinear dynamical systems: Koopman operator meets model predictive control. Automatica, 93:149–160, 2018.
[5] L. Wu, W. Xiao, and R. D. Braatz. EIQP: Execution-Time-Certified and Infeasibility-Detecting QP Solver. IEEE Transactions on Automatic Control, 71(5):2934–2949, 2026.
[6] L. Wu and R. D. Braatz. A Quadratic Programming Algorithm with Time Complexity. IEEE Transactions on Automatic Control, 71(9):5709–5724, 2026.
[7] Y. Nesterov and A. Nemirovskii. Interior-point polynomial algorithms in convex programming. SIAM, 1994.
[8] R. J. Vanderbei. LOQO: An interior point code for quadratic programming. Optimization Methods and Software, 11(1-4):451–484, 1999.
[9] L. Wu, Y. Che, R. D. Braatz, and J. Drgoña. A Time-Certified Predictor-Corrector IPM Algorithm for Box-QP. IEEE Control Systems Letters, 9:3059–3064, 2025.
[10] A. Wächter and L. T. Biegler. On the implementation of an interior-point filter line-search algorithm for large-scale nonlinear programming. Mathematical Programming, 106(1):25–57, 2006.
[11] D. Goldfarb and A. Idnani. A numerically stable dual method for solving strictly convex quadratic programs. Mathematical Programming, 27(1):1–33, 1983.
[12] H. J. Ferreau, C. Kirches, A. Potschka, H. G. Bock, and M. Diehl. qpOASES: A parametric active-set algorithm for quadratic programming. Mathematical Programming Computation, 6(4):327–363, 2014.
[13] B. Stellato, G. Banjac, P. Goulart, A. Bemporad, and S. Boyd. OSQP: An operator splitting solver for quadratic programs. Mathematical Programming Computation, 12(4):637–672, 2020.
[14] H. Lu and J. Yang. A practical and optimal first-order method for large-scale convex quadratic programming. Mathematical Programming, 215(1):771–808, 2026.
[15] L. Wu, B. Yang, J. Li, X. Yang, Y. Mo, Y. Shi, A. D. Ames, and J. Drgoña. MPC: A Parallel-in-horizon and Construction-free NMPC solver. arXiv preprint arXiv:2601.14414, 2026.
[16] P. Patrinos and A. Bemporad. An accelerated dual gradient-projection algorithm for embedded linear model predictive control. IEEE Transactions on Automatic Control, 59(1):18–33, 2014.
[17] P. Tøndel, T. A. Johansen, and A. Bemporad. An algorithm for multi-parametric quadratic programming and explicit MPC solutions. Automatica, 39(3):489–497, 2003.
[18] M. Herceg, M. Kvasnica, C. N. Jones, and M. Morari. Multi-parametric toolbox 3.0. In 2013 European Control Conference (ECC), pages 502–510. IEEE, 2013.
[19] B. Karg and S. Lucia. Efficient representation and approximation of model predictive control laws via deep learning. IEEE Transactions on Cybernetics, 50(9):3866–3878, 2020.
[20] B. Karg and S. Lucia. Deep learning-based embedded mixed-integer model predictive control. In 2018 European Control Conference (ECC), pages 2075–2080. IEEE, 2018.
[21] S. Lucia, D. Navarro, B. Karg, H. Sarnago, and O. Lucia. Deep learning-based model predictive control for resonant power converters. IEEE Transactions on Industrial Informatics, 17(1):409–420, 2021.
[22] T. Chen, X. Chen, W. Chen, H. Heaton, J. Liu, Z. Wang, and W. Yin. Learning to optimize: A primer and a benchmark. Journal of Machine Learning Research, 23(189):1–59, 2022.
[23] J. Ichnowski, P. Jain, B. Stellato, G. Banjac, M. Luo, F. Borrelli, J. E. Gonzalez, I. Stoica, and K. Goldberg. Accelerating quadratic optimization with reinforcement learning. Advances in Neural Information Processing Systems, 34:21043–21055, 2021.
[24] R. Sambharya, G. Hall, B. Amos, and B. Stellato. Learning to warm-start fixed-point optimization algorithms. Journal of Machine Learning Research, 25(166):1–46, 2024.
[25] P. L. Donti, D. Rolnick, and J. Z. Kolter. DC3: A learning method for optimization with hard constraints. In International Conference on Learning Representations, 2021.
[26] L. Lüken and S. Lucia. Self-supervised learning of iterative solvers for constrained optimization. Results in Control and Optimization, 23:100751, 2026.
[27] E. King, J. Kotary, F. Fioretto, and J. Drgoña. Metric learning to accelerate convergence of operator splitting methods. In 2024 IEEE 63rd Conference on Decision and Control (CDC), pages 1553–1560. IEEE, 2024.
[28] H. T. Nguyen and P. L. Donti. FSnet: Feasibility-seeking neural network for constrained optimization with guarantees. Advances in Neural Information Processing Systems, 38, 2025.
[29] T. Tran, B. Nguyen, and T. X. Nghiem. HUANet: Hard-Constrained Unrolled ADMM for Constrained Convex Optimization. arXiv preprint arXiv:2604.13179, 2026.
[30] R. Wang, P. Patrinos, and A. Bemporad. Parametric nonconvex optimization via convex surrogates. arXiv preprint arXiv:2604.05640, 2026.
[31] B. Amos and J. Z. Kolter. OptNet: Differentiable optimization as a layer in neural networks. In International Conference on Machine Learning, pages 136–145. PMLR, 2017.
[32] A. Agrawal, B. Amos, S. Barratt, S. Boyd, S. Diamond, and J. Z. Kolter. Differentiable convex optimization layers. Advances in Neural Information Processing Systems, 32, 2019.
[33] A. Butler and R. H. Kwon. Efficient differentiable quadratic programming layers: an ADMM approach. Computational Optimization and Applications, 84(2):449–476, 2023.
[34] M. Besançon, J. Dias Garcia, B. Legat, and A. Sharma. Flexible Differentiable Optimization via Model Transformations. INFORMS Journal on Computing, 36(2):456–478, 2024.
[35] A. Paulus, M. Rolinek, V. Musil, B. Amos, and G. Martius. CombOptNet: Fit the Right NP-Hard Problem by Learning Integer Programming Constraints. In Proceedings of the 38th International Conference on Machine Learning, volume 139, pages 8443–8453, 2021.
[36] S. Boyd, N. Parikh, E. Chu, B. Peleato, and J. Eckstein. Distributed optimization and statistical learning via the alternating direction method of multipliers. Foundations and Trends in Machine Learning, 3(1):1–122, 2011.
[37] A. L. Bishop, J. Z. Zhang, S. Gurumurthy, K. Tracy, and Z. Manchester. ReLU-QP: A GPU-Accelerated Quadratic Programming Solver for Model-Predictive Control. In 2024 IEEE International Conference on Robotics and Automation (ICRA), pages 13285–13292. IEEE, 2024.
[38] G. Montúfar, R. Pascanu, K. Cho, and Y. Bengio. On the number of linear regions of deep neural networks. Advances in Neural Information Processing Systems, 27, 2014.
[39] T. Serra, C. Tjandraatmadja, and S. Ramalingam. Bounding and counting linear regions of deep neural networks. In International Conference on Machine Learning, pages 4558–4566. PMLR, 2018.
[40] Y. Wang and S. Boyd. Fast model predictive control using online optimization. IEEE Transactions on Control Systems Technology, 18(2):267–278, 2010.
[41] J. Di Carlo, P. M. Wensing, B. Katz, G. Bledt, and S. Kim. Dynamic locomotion in the MIT Cheetah 3 through convex model-predictive control. In 2018 IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS), pages 1–9. IEEE, 2018.
[42] V. Makoviychuk, L. Wawrzyniak, Y. Guo, M. Lu, K. Storey, M. Macklin, D. Hoeller, N. Rudin, A. Allshire, A. Handa, and G. State. Isaac Gym: High Performance GPU Based Physics Simulation for Robot Learning. In Proceedings of the Neural Information Processing Systems Track on Datasets and Benchmarks, volume 1. NeurIPS, 2021.
[43] S. P. Boyd and L. Vandenberghe. Convex optimization. Cambridge University Press, 2004.
[44] R. T. Rockafellar and R. J. B. Wets. Variational analysis. Springer, 1998.
[45] A. Bemporad and C. Rocchi. Decentralized hybrid model predictive control of a formation of unmanned aerial vehicles. IFAC Proceedings Volumes, 44(1):11900–11906, 2011.
A Proofs
A.1 Proof of Lemma 2.2
Proof. For the ADMM iteration (3), putting -update before - and - updates, which is equivalent to a special initialization for at the cost of one iteration lag in -update and still preserves the convergence guarantee, results in
Substituting Eqn. (16a) into Eqn. (16b), and then substituting Eqns. (16a)–(16b) into Eqn. (16c), results in the ReLU-like layer (4), which completes the proof.
A.2 Proof of Lemma 2.5
Proof. Based on the definition of in (6), we have
and
To clarify the concept, we offer an example: given a matrix with 9 non-zero elements as follows,
then its COPE decomposition is shown below:
with
This completes the proof.
A.3 Proof of Lemma 2.6
Proof. The KKT condition of the optimization problem (9a) is shown below:
where and denote the Lagrangian and slack variables, respectively. Eliminating via can result in a trivial linear complementarity problem as follows,
which admits a closed-form solution , due to being a positive diagonal matrix. This completes the proof.
A.4 Proof of Theorem 2.7
Proof. By Lemma 2.6, we can replace (9a) with Eqn. (10) and eliminate , which results in
Furthermore, we have
By adopting a special initialization and , we can eliminate the u-update and obtain a low-dimensional ADMM iteration
(17)
which can be easily rewritten as a ReLU formulation as shown in Eqn. (11). Moreover, Eqn. (11) involves the matrix-vector multiplication with the dimension , thus the computation complexity is . This completes the proof.
A.5 Proof of Theorem 2.9
Proof. The Karush–Kuhn–Tucker (KKT) condition (see [43, Ch. 5]) for mpQP (1) is given by
where denotes the Hadamard product. Eqn. (18c) can be equivalently rewritten as where the equivalence follows by substituting Eqn. (18b). Then, combining this expression with (18a) yields the KKT-informed residual defined in (14). The piecewise affine structure of the KKT mapping in (18) implies, through standard Hoffman-type error bounds and metric subregularity results [44], that the distance to the solution set is locally upper bounded by the norm of the KKT residual, so there exists a constant such that , for all in a neighborhood of , which completes the proof.
B Algorithms
Algorithm 1 Projected sampling strategy
Input: the given domain and the required number of data points .
-
Construct an enlarged domain such that ;
-
Sample the data points uniformly from the enlarged domain ;
-
Project the sampled data points onto the original domain by solving a projection problem: ,
Output: ;
Algorithm 2 Unified offline training and online inference
Offline training.
Input: collected by Algorithm 1, learning rate , batch size , number of epochs , offline stopping tolerance .
for epoch = 1 :
-
Split the dataset into mini-batches with and calculate the mini-batch loss ;
-
Update the neural network parameters using automatic differentiation and a gradient-based optimizer such as Adam or quasi-Newton (L-BFGS): ;
-
If , break;
end
Output: trained parameters .
Online inference (supporting batch scenario) with triggered trustworthy correction.
Input: trained parameters , matrix consisting of a batch of parameter vectors, online tolerance .
- Compute the batch of neural proxies in parallel:
- Compute the certificate value in parallel:
-
If , accept the neural prediction and return;
-
Otherwise, find indices such that ;
-
Update via low-dimensional ADMM-ReLU (11) in batch scenario;
Output: .
C Additional Ablation Results
C.1 Cross-scale scaling rule
To verify that the unrolling depth must scale with problem size, we replicate the ablation at the smaller scale , , . Table 1 reports the median test rel error (at fixed ) across both scales and all six values, and Fig. 8 shows the corresponding training and inference curves at . The saturation point shifts from at (rel error ) to at (rel error ); shallower unrolling at remains in the unstable regime documented in the main text. This is consistent with the contraction rate of ADMM: the operator's contraction factor approaches 1 as the conditioning of grows with , so a deeper unroll is needed for to enter the neighborhood of where back-propagation reflects warm-start error. Empirically, suffices.
Table 1: Median test-set rel error after fixed refinement at two scales. All entries trained for 2000 epochs.
| n | m | n_p | K=0 | K=1 | K=5 | K=10 | K=25 | K=50 |
|---|---|---|---|---|---|---|---|---|
| 10 | 20 | 4 | ||||||
| 100 | 200 | 20 |

(a) Training.

(b) Inference.
Figure 8: Ablation of at n=10, m=20, . (a) Test relative error vs. epoch at fixed ; (b) post-training KKT residual vs. refinement steps K. already saturates, in contrast to the phase transition in Fig. 3.
C.2 Inference convergence detail
Table 2 reports per-method iteration count to KKT residual , mean wall-clock per QP, and the implied speedup over cold-start ADMM(ReLU), corresponding to Fig. 3b. Fig. 9 re-plots the inference convergence in cumulative wall-clock per QP at both scales: reaches in roughly 6–7 ms at versus ms for cold-start ADMM(ReLU), and the proportional speedup is even larger at ( ) where the MLP forward overhead becomes negligible relative to the iteration savings.
Table 2: Iterations and wall-clock to KKT residual , median over 100 test mpQPs at , , . Speedup is relative to cold low-dim ADMM(ReLU); is the per-QP iteration reduction vs. that baseline. Full-dim ADMM does not reach the target within .
| Method | Time (ms) | Speedup | ||
|---|---|---|---|---|
| Full-dim ADMM | >50.5 | — | — | |
| Low-dim ADMM(ReLU) | 4729 | 10.689 | — | |
| MLP only | 3578 | 7.777 | 1132 | |
| MLP + 1-layer ADMM(ReLU) | 3692 | 8.032 | 974 | |
| MLP + 5-layer ADMM(ReLU) | 3728 | 7.751 | 1000 | |
| MLP + 10-layer ADMM(ReLU) | 3392 | 7.305 | 1344 | |
| MLP + 25-layer ADMM(ReLU) | 2800 | 6.460 | 1930 | |
| MLP + 50-layer ADMM(ReLU) | 2778 | 6.034 | 1968 |

(a) n=100.

(b) n=10.
Figure 9: Wall-clock view of inference convergence: KKT residual vs. cumulative time per QP. TQPNet's wall-clock advantage over ADMM(ReLU) holds at both scales, with a larger proportional speedup at n=10.
C.3 Implementation details
Architecture. MLP(ReLU) backbone with depth and width at ( at ); the -head is linear and the -head applies Softplus to enforce (M params at M at ).
Unrolling depth. for the out-of-distribution study (Sec. 3), for the MPC scalability and quadruped studies, and for the UAV experiment (Appendix E); the choice of is studied in Fig. 3 and Appendix C.1.
Optimization. AdamW (, weight decay ), StepLR (step 300, ), gradient clipping at norm 10, batch size 256, 2000 epochs. Training uses torch.cholesky_solve (numerically stable backward); inference uses pre-computed matmul.
Problem distribution. Sparse positive constraint matrix with column density 0.3; for a random reference (active-set tightness controlled by the +1 offset); for both training () and test ().
Reference solver. OSQP at eps_abs=eps_re1=10 with polishing for the test-set .
Hardware. Single NVIDIA RTX 3080, PyTorch 2.10, CUDA 12.8.
D Tables of Numerical Examples
Table 3: Generalizability: median relative error (). Train on .
| Set | ||||||
|---|---|---|---|---|---|---|
| TQPNet | LQPNet | TQPNet | LQPNet | TQPNet | LQPNet | |
| Train | 5.8e-02 | 1.5e-02 | 5.5e-02 | 1.4e-02 | 5.2e-02 | 1.3e-02 |
| Valid | 5.9e-02 | 1.6e-02 | 5.6e-02 | 1.5e-02 | 5.3e-02 | 1.4e-02 |
| Boundary | 2.2e-01 | 1.0e-01 | 2.1e-01 | 9.7e-02 | 2.0e-01 | 9.1e-02 |
| OOD | 3.5e-01 | 1.9e-01 | 3.4e-01 | 1.9e-01 | 3.2e-01 | 1.8e-01 |
Table 4: Scalability on random MPC problems ( closed-loop steps with shared process noise ). Online latency in ms, offline training time in s. TQPNet/LQPNet use a fixed network size: hidden width and depth across all scales.
| Speedup | OSQP | TQPNet () | LQPNet () | Offline | Explicit Latency | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| RMSE | Cost | Latency | RMSE | Cost | Latency | RMSE | Cost | Latency | TQP | LQP | ||||
| 60 | 3 | 0.221 | 33 | 0.03 | 0.221 | 33 | 1.31 | 0.221 | 33 | 1.23 | 65 | 24 | 0.57 | |
| 140 | 4 | 0.218 | 45 | 0.07 | 0.218 | 45 | 1.30 | 0.218 | 45 | 1.31 | 65 | 25 | 4.11 | |
| 315 | 6 | 0.217 | 63 | 0.21 | 0.217 | 63 | 1.23 | 0.217 | 63 | 1.20 | 65 | 35 | — | |
| 560 | 8 | 0.263 | 124 | 0.59 | 0.264 | 124 | 1.31 | 0.263 | 124 | 1.33 | 71 | 43 | — | |
| 875 | 10 | 0.217 | 99 | 1.38 | 0.217 | 99 | 1.27 | 0.217 | 99 | 1.23 | 84 | 65 | — | |
| 1050 | 12 | 0.240 | 144 | 2.12 | 0.240 | 145 | 1.36 | 0.240 | 145 | 1.35 | 94 | 84 | — | |
| 1400 | 16 | 0.198 | 130 | 3.55 | 0.198 | 130 | 1.33 | 0.198 | 130 | 1.37 | 118 | 112 | — | |
| 2100 | 24 | 0.217 | 233 | 7.22 | 0.218 | 233 | 1.45 | 0.217 | 233 | 1.43 | 207 | 309 | — | |
| 2800 | 32 | 0.225 | 332 | 13.06 | 0.225 | 334 | 1.88 | 0.225 | 333 | 1.49 | 334 | 590 | — | |
E Application to Quadrotor UAVs
TQPNet matches OSQP closed-loop tracking accuracy. We evaluate TQPNet on a quadrotor closed-loop tracking task following [45], with state , control , and condensed-MPC dimensions , at horizon ( ms). The mpQP parameter comprises the current state (13 dims) and a four-component Fourier basis encoding the time-varying lemniscate reference. The closed loop is simulated for steps with i.i.d. process noise ( mm shared across methods for fair comparison). We compare TQPNet at refinement steps against OSQP through its raw C API (prob.update + solve, warm-started) at three tolerance levels.
Table 5 reports tracking RMSE and per-step latency. All TQPNet variants attain RMSE in 0.0297–0.0302 m, within of OSQP's 0.0273 m across the three tolerance levels and improving over the cold-start ADMM(ReLU) baseline (0.0306 m); the closed-loop trajectories (Fig. 10) overlap visually because all methods track the reference within the noise floor. TQPNet additionally bounds worst-case execution at fixed : its per-step latency stays within of its median (GPU launch jitter), whereas OSQP's iteration count varies up to 1500 at and its worst-case latency reaches the median. For hard real-time deployment where worst-case rather than mean latency is binding, this matters. The asymptotic batch advantage of the proposed architecture is realized when many independent QPs must be solved in parallel, as demonstrated by the quadrupedal locomotion experiment in Subsection 3.3.
Table 5: Single-UAV lemniscate tracking (, , , ). OSQP solved via raw C API with warm-started prob.update between steps. RMSE is comparable across methods. Latency and iteration counts report per-step median / maximum: OSQP exhibits worst-case latency its median, whereas TQPNet at fixed has bounded worst-case execution.
| Method | RMSE (m) | Latency med/max (ms) | Iter med/max |
|---|---|---|---|
| OSQP () | 0.0273 | 0.73 / 7.03 | 50 / 450 |
| OSQP () | 0.0273 | 0.75 / 13.48 | 50 / 950 |
| OSQP () | 0.0273 | 0.75 / 21.10 | 50 / 1500 |
| ADMM(ReLU) () | 0.0306 | 5.84 / 13.05 | 50 / 50 |
| TQPNet () | 0.0302 | 1.67 / 4.39 | 10 / 10 |
| TQPNet () | 0.0301 | 2.78 / 6.81 | 20 / 20 |
| TQPNet () | 0.0297 | 3.90 / 10.66 | 30 / 30 |

(a) Closed-loop trajectories.

(b) Tracking error.
Figure 10: Single-UAV lemniscate tracking (), showing the best TQPNet variant () alongside cold-start ADMM(ReLU) and OSQP (). All methods overlap at trajectory resolution and tracking errors are within the same magnitude; full method comparison in Table 5.