Manuscript Offprint
arXiv:2610.38197Convex-SKM-Net: Low-Latency Block Halfspace Corrections for Neural Convex Constraint Satisfaction
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
ABSTRACT
Fast inference and strict constraint satisfaction are essential for learning-based decision-making. Existing methods often rely on constraint-specific projections or feasible-set parameterizations, while iterative repair can be costly. We introduce Convex-SKM-Net, a convex constraint-satisfaction layer that forms linearization halfspaces from residual and (sub)gradient oracles without constraint-specific inequality projectors. It applies fixed-depth dual projected-gradient descent (dual PGD) to minimum-displacement block problems using GPU-friendly matrix operations. We jointly learn the predictor and a positive-definite mobility, adapting the correction geometry to improve objective quality. We prove convergence of the outer iterates at fixed dual depth and linear convergence in distance under Slater's condition and bounded subgradients. All our test outputs on three second-order-cone model-predictive control (SOC-MPC) horizons and six power-system convex relaxations satisfy a feasibility tolerance. Comparisons with the latest constraint-satisfaction methods show inference speedups of up to on SOC-MPC and on a convex quadratically constrained quadratic programming (QCQP) benchmark with joint training. On QCQP, the mean objective gap is , with full test feasibility at . Learning mobility reduces the five-seed affine-task mean gap by and improves gaps in matched power-system comparisons.
1 INTRODUCTION
Learning-based decision-making in power systems, model-predictive control, and wireless resource allocation requires fast predictions that satisfy physical constraints and retain good objective values (Donti et al., 2021; Chen et al., 2018; Alizadeh & Tabassum, 2023). Neural predictions can violate constraints even when violations are penalized during training (Zeng et al., 2024; Donti et al., 2021). Constraint layers enforce feasibility through feasible-set parameterizations, optimization, or iterative repair. Their use depends on the operations available for each constraint family: parameterizations may require interior points (Tordesillas et al., 2026), and splitting methods require component projections (Grontas et al., 2026; Tang et al., 2026). Residual-based repair works directly with constraint values and derivatives, but repeated correction can remain costly (Donti et al., 2021; Nguyen & Donti, 2025; Chu et al., 2026). Repair also changes the predicted decision, so its direction affects the final objective. We therefore design both the correction computation and its directional cost.
Convex-SKM-Net uses convexity to give different inequalities a common local representation. A residual and a subgradient define a linearization halfspace containing the feasible set, allowing con-
*Equal contribution.
†Corresponding author.
straints to be handled without family-specific projectors. After satisfying the affine equalities, we formulate minimum-displacement problems over selected blocks of these halfspaces. Fixed-depth dual projected-gradient descent (dual PGD) computes block updates with GPU-friendly matrix operations, without per-block factorizations or linear solves. Several block corrections reuse one linearization. On second-order-cone model-predictive control (SOC-MPC), inference is 80.7–144.3× faster than fixed-400-step IInet. On the 300-bus semidefinite relaxation, postprocessing a fully fine-tuned predictor is 7.7× faster than LMI-Net, with a lower mean gap on identical raw predictions.
We also learn how displacement is measured during repair. Euclidean distance assigns the same cost to equal-length moves, although their effects on the task objective can differ. A positive-definite mobility changes these directional costs while preserving the feasible set. Joint training adjusts both the predictor's initial output and the geometry of its subsequent corrections. The same layer supports postprocessing with a prescribed mobility, including the identity. Learning mobility reduces the five-seed mean gap on the affine task by 22.4%. In matched joint-training comparisons, it also reduces mean gaps by 11.0% and 8.1% on the 300-bus conic and semidefinite relaxations. Our contributions are:
(1) General convex constraint satisfaction. We introduce a layer using residual and (sub)gradient oracles without constraint-specific inequality projectors, supporting both postprocessing and joint training.
(2) Block corrections with dual PGD. Our GPU-friendly block updates use fixed dual depth without per-block factorizations. We establish convergence of the outer iterates and linear convergence in distance under Slater's condition and bounded subgradients.
(3) Learnable mobility. We learn directional correction costs jointly with the predictor, improving objective gaps on affine and nonlinear convex tasks.
Feasible-set parameterization. Linear-constraint constructions use polyhedral generators, gauge maps, or decision rules (Frerix et al., 2020; Li et al., 2023; Constante et al., 2025); other approaches calibrate constraints or restrict network maps over prescribed input regions (Zhao et al., 2023; Balestriero & LeCun, 2023). RAYEN uses an interior point and ray boundaries, computing the point offline for fixed constraints (Tordesillas et al., 2026). Radial transformations, invertible maps, and interior-point predictions also construct constrained outputs (Konstantinov & Utkin, 2023; Liang et al., 2024; Liang & Chen, 2025; Schneider & Kuhn, 2026).
Differentiable solver layers. Affine repair uses closed-form updates or subconstraint decompositions (Min & Azizan, 2025; Zhao et al., 2026). Optimization layers differentiate through constrained solutions during training (Amos & Kolter, 2017; Agrawal et al., 2019; Min & Azizan, 2025). Linear constraints admit generalized Sinkhorn and entropy-regularized dual iterations, with linear repair also used in tabular generative models (Wang et al., 2023; Zeng et al., 2024; Stoian et al., 2024). IInet and LMI-Net use component projections in operator splitting (Grontas et al., 2026; Tang et al., 2026); Dykstra's algorithm and alternating projections also support constrained prediction (Chen et al., 2018; Cristian et al., 2023).
Among residual-based layers, DC3 combines equality completion with violation gradients, and FS-Net minimizes violation (Donti et al., 2021; Nguyen & Donti, 2025). Other updates use adaptive repair, damped linearization, optimality conditions, or regularized Newton steps (Lastrucci & Schweidtmann, 2025; Goertzen et al., 2026; Iftakher et al., 2026; Chu et al., 2026).
Sampling Kaczmarz–Motzkin (SKM) corrects the most violated sampled row (De Loera et al., 2017); nonlinear SKM handles nonlinear equations and variants with convex constraints (Zhang et al., 2023). T-SKM-Net unrolls row repair; AT-SKM-Net uses graph-guided sampling for dynamic linear constraints (Zhu et al., 2026; Zhang et al., 2026). Linear block methods project onto equalities or fit boundaries (Needell & Tropp, 2014; Zhang & Li, 2021; 2023; Briskman & Needell, 2015); subgradient, parallel, block-iterative, and minibatch methods also address convex inequalities (dos Santos, 1987; Kiwiel, 1995; Bauschke & Combettes, 2017; Necoara & Nedić, 2021).
3 METHOD: CONVEX-SKM-NET
Overview. Figure 1 illustrates the layer , which takes an instance , a prediction , and a prescribed positive-definite mobility . It first satisfies the affine equalities, then restricts corrections to their nullspace. Each outer iteration builds linearization halfspaces from residuals and (sub)gradients. The layer selects a block using normalized violation scores and applies dual PGD steps to its minimum-displacement problem. It performs block corrections before refreshing the linearization. Mobility controls normalization and directional costs and stays fixed during one repair. A coordinate transformation reuses the Euclidean dual solver. Algorithm 1 gives the full procedure. Postprocessing supplies directly; joint training learns its parameters together with the predictor.
For input , a predictor returns . Assume the nonempty feasible set has closed convex inequalities with queryable residuals and subgradients, and projectable affine equalities. Set and take an orthonormal basis of , so and . Then
Input dependence is omitted below. Appendix C gives the residual and (sub)gradient oracles for each task.

Figure 1: Repair in reduced space with fixed (blue) or learned (red) mobility. The inset shows block reselection under one linearization. Trajectories are schematic.
3.1 HALFSPACE BLOCK CORRECTIONS
At , take . Convexity gives . Hence the linearization halfspace contains the feasible set, with single-row SKM correction
Satisfied rows make no update; violated rows have nonzero subgradients (Lemma A.1). We apply this construction to a block of constraints.
For nonzero rows define
so . Zero-subgradient rows use zero placeholders. At inner iterate , initially , select the largest normalized violation scores , with . Normalization removes positive row scaling; zero-score rows fill the block when fewer than rows are violated. Stack the selected rows in , the offsets in , and set . The block problem retains these signed residuals and minimizes displacement into the halfspace intersection:
Containment makes this quadratic program (QP) feasible. For , Eq. (3) gives the projection step from onto the selected halfspace.
3.2 DUAL PGD
Abbreviate and . The dual objective and updates are
Each block takes steps from , reusing . The dual variables weight row normals to give the displacement. We take , with coefficients and steps fixed within each block; zero blocks stay still. Normalization permits ; Appendix A.4 covers broader steps.
Given residuals and (sub)gradients, block updates use matrix products, reductions, and element-wise clipping, without per-block factorizations or linear solves. Fixed block shapes support GPU batching; complexity is in Appendix B.2.
Table 1: Local operations on selected linearizations. Boundary fitting selects a minimum-norm least-squares displacement.
| Operation | Local objective | Computation |
|---|---|---|
| Single-row SKM | Minimum displacement into one halfspace | Closed-form projection |
| Equality-LS | Boundary fit on all selected rows | Pseudoinverse or linear solve |
| Block-pinv | Boundary fit on violated rows | Pseudoinverse |
| Violation-GD | Primal gradient steps | |
| Dual PGD (ours) | Minimum displacement under inequalities | Dual projected-gradient steps |
Boundary fitting targets hyperplanes (Needell & Tropp, 2014; Briskman & Needell, 2015), while violation descent minimizes the squared positive residual (Donti et al., 2021). Our block problem minimizes displacement under halfspace inequalities.
3.3 LEARNABLE MOBILITY
We introduce a positive-definite mobility to control directional displacement costs. Joint training learns together with the predictor , improving the initial prediction and subsequent repair geometry. Postprocessing prescribes recovers Euclidean repair.
We use and , fixed during one complete repair. Let stack selected unnormalized rows and contain their signed linearized residuals. We replace Eq. (3) with
Larger mobility eigenvalues lower the cost of the corresponding directions. Selection uses , and the feasible set is unchanged. The rectangular factor satisfies . Setting , with , reuses the Euclidean solver (Algorithm 1). Parameterization and training are in Appendix B; finite-step equivalence is in Appendix A.1.
Algorithm 1 Convex-SKM-Net repair with prescribed mobility
Require: , mobility , block size , outer cap , inner steps , dual depth , tolerance
1: Obtain and an orthonormal nullspace basis
2:
3: Define
4: for do
5:
6: if or then return
7: Linearize and normalize at to obtain ;
8: for do
9: ;
10:
11: starting at zero
12:
13: end for
14:
15: end for
Here is the maximum absolute equality residual or positive inequality residual in the original coordinates; success means . DUALPGD uses the update form in Eq. (4); task-specific step sizes are in Appendix B.
4 THEORETICAL GUARANTEES
We analyze how fixed-depth block corrections drive the outer iterates to feasibility. Fix an input with nonempty feasibility, finite convex , and violated-row subgradients bounded by on the iterate region. We use Algorithm 1's zero initialization, steps, and full displacements, in exact arithmetic with zero tolerance and no outer cap; feasible outputs stay fixed. Fixed mobility first transforms to Euclidean coordinates (Appendix A.1); distances and constants below refer to these coordinates.
For a block, let , , , and . For , also set .
Theorem 4.1 (Progress at finite dual depth). For , , and any , the update satisfies
(6)
If , then , , and . Any fixed therefore permits updates without an inner convergence test.
Proof sketch. Halfspace containment gives a squared-distance decrease of at least . The first PGD step and dual monotonicity yield . Applying the PGD comparison bound to and optimizing over gives the second term. Appendix A.3 gives the proof.
Corollary 4.2 (Convergence and linear rate). With fixed , the outer iterates converge to a point in . If and there exist and such that for all , then the distance satisfies
For an infeasible start, ; a feasible start stays fixed.
Proof sketch. Let . The first top- block gives . Fejér monotonicity, bounded subgradients, and continuity imply feasible-point convergence. Under Slater's condition, yields the stated linear rate. Further inner updates preserve containment and add descent. Appendices A.5–A.6 give the proofs.
5 EXPERIMENTS
We evaluate postprocessing and joint training across convex constraint families.
Gap averages per-instance percentage differences from reference objectives, retaining signs for second-order-cone model-predictive control (SOC-MPC) and clipping negatives elsewhere. Feasibility uses maximum original violation; statistics include failures. Neural inference uses RTX 4090 GPUs, full solvers CPUs. Appendix B specifies data, training, timing, and repair budgets. In all curves, only IInet's inference depth varies; checkpoints and other settings stay fixed, and every input takes steps.
5.1 QUADROTOR SOC-MPC
We predict state and control sequences for a six-state, two-input quadrotor model with linear dynamics and second-order-cone constraints, using horizons . Neural methods train without labels for 100 epochs. Ours, IInet, and SnareNet share initial predictor weights and sample order. Table 2 uses IInet at , the smallest evaluated fixed depth yielding full test feasibility at every horizon; Appendix D.1 gives the full scan and original validation-selected depths.
Table 2: SOC-MPC: 1,000 tests per horizon; mean signed Gap and mean single-instance time. Bold marks best neural Gap/time. Gurobi/MOSEK use single-thread CPUs. —: SnareNet training exceeded 24 GB on RTX 4090 with default XLA.
| (a) | (b) | (c) | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Method | Gap (%) | Feas. (%) | Time (ms) | Method | Gap (%) | Feas. (%) | Time (ms) | Method | Gap (%) | Feas. (%) | Time (ms) |
| Gurobi | 0.000 | 100 | 20.809 | Gurobi | 0.000 | 100 | 57.957 | Gurobi | 0.000 | 100 | 59.254 |
| MOSEK | 0.000 | 100 | 4.974 | MOSEK | 0.000 | 100 | 10.023 | MOSEK | 0.000 | 100 | 20.470 |
| DC3 | 5.909 | 100 | 0.566 | DC3 | 16.696 | 100 | 1.810 | DC3 | 13.346 | 99.4 | 6.623 |
| IInet | 0.130 | 100 | 75.952 | IInet | 0.567 | 100 | 153.111 | IInet | 0.230 | 100 | 304.138 |
| SnareNet | 2.913 | 100 | 58.567 | SnareNet | 1.762 | 100 | 175.515 | SnareNet | — | — | — |
| Ours | 0.192 | 100 | 0.941 | Ours | 0.236 | 100 | 1.061 | Ours | 0.162 | 100 | 3.125 |
All 3,000 test outputs from Convex-SKM-Net satisfy the tolerance, with mean gaps below 0.240% and inference times of 0.94–3.13 ms. This gives an speedup over fixed-400-step IInet. IInet has a lower gap at , while Convex-SKM-Net has lower gaps at and . Figure 2 shows that IInet can attain small mean gaps well before all outputs meet the feasibility tolerance.
5.2 POWER-SYSTEM CONVEX RELAXATIONS
We evaluate second-order-cone programming (SOCP) and semidefinite programming (SDP) relaxations of alternating-current optimal power flow (ACOPF) on 57-, 118-, and 300-bus systems. The cases contain 1,004–5,658 inequalities, with 200, 400, and 1,000 test instances at the three sizes. Three variants fine-tune (FT) a common pretrained predictor for 100 epochs: full FT post updates the entire predictor, head FT post only its solution head, both with identity-mobility repair; joint freezes the trunk and learns solution and mobility heads. External postprocessors share raw predictions only with full FT post. Joint training supervises both raw and corrected predictions. Feasibility is evaluated at tolerance ; Appendix B gives budgets and stopping rules.
All three variants in Table 3 satisfy the tolerance on all six ACOPF benchmarks. On SDP300, full FT post yields a lower mean gap than LMI-Net with a inference speedup on identical raw predictions. Joint training with learned mobility matches or improves on head FT post in mean gap on every case.
With the same head-only joint-training scope, task loss, and repair budget, adding mobility reduces mean gap by 11.0% on SOCP300 and 8.1% on SDP300 relative to identity mobility. Appendices D.3–D.4 give full controls, failure residuals, and DC3 evaluations.

Figure 2: Fixed-depth SOC-MPC: columns ; mean signed Gap (top) and maximum original violation (bottom) versus mean latency. Each point covers 1,000 tests at tolerance . Other methods: Table 2 settings. Full values: Appendix D.1.
Table 3: SOCP/SDP: mean Gap and mean single-instance time, including failures. External post-processors share full FT post's raw predictions. Bold compares our variants, including rounded ties; —: case-300 SnareNet was too slow to evaluate fully.
| Method | 57 buses | 118 buses | 300 buses | ||||||
|---|---|---|---|---|---|---|---|---|---|
| Gap (%) | Feas. (%) | Time (ms) | Gap (%) | Feas. (%) | Time (ms) | Gap (%) | Feas. (%) | Time (ms) | |
| (a) SOCP | |||||||||
| MOSEK | 0.000 | 100 | 31.234 | 0.000 | 100 | 108.978 | 0.000 | 100 | 410.376 |
| IInet | 0.059 | 100 | 203.366 | 0.396 | 98.5 | 2169.503 | 0.106 | 99.2 | 20934.989 |
| FSNet | 0.053 | 100 | 26.556 | 0.395 | 97.0 | 355.968 | 0.112 | 8.5 | 3199.870 |
| SnareNet | 0.116 | 100 | 48.862 | 0.530 | 88.25 | 6452.791 | — | — | — |
| Ours-post (full) | 0.051 | 100 | 0.579 | 0.419 | 100 | 3.279 | 0.098 | 100 | 41.676 |
| Ours-post (head) | 0.051 | 100 | 0.571 | 0.184 | 100 | 3.160 | 0.041 | 100 | 35.788 |
| Ours-joint | 0.050 | 100 | 0.676 | 0.167 | 100 | 3.386 | 0.037 | 100 | 22.672 |
| (b) SDP | |||||||||
| MOSEK | 0.000 | 100 | 192.095 | 0.000 | 100 | 357.923 | 0.000 | 100 | 991.394 |
| LMI-Net | 0.076 | 100 | 14.768 | 0.658 | 100 | 93.379 | 0.086 | 100 | 2515.586 |
| SnareNet | 0.163 | 87.5 | 9831.992 | 0.706 | 26.25 | 60196.882 | — | — | — |
| Ours-post (full) | 0.075 | 100 | 5.522 | 0.373 | 100 | 17.659 | 0.052 | 100 | 328.205 |
| Ours-post (head) | 0.064 | 100 | 4.614 | 0.165 | 100 | 13.780 | 0.054 | 100 | 188.657 |
| Ours-joint | 0.064 | 100 | 4.933 | 0.144 | 100 | 12.744 | 0.038 | 100 | 183.702 |
5.3 NONCONVEX OPTIMIZATION WITH AFFINE CONSTRAINTS
The public IInet task (Grontas et al., 2026) has 100 variables, 50 equalities, 50 linear inequalities, and sine terms in its objective. Five seeds each test all 1,024 instances. Methods train for 50 epochs except DC3, which retains its official 1,000-epoch setting; JAXopt uses differentiable OSQP projection. Our two variants differ only in learning mobility.
Table 4: Affine task: five-seed means, tolerance . Single-instance latency averages seed timing medians. Identity/learned refers to mobility. Full statistics: Appendix D.2.
| DC3 | JAXopt | SnareNet | IInet (K = 50) | Ours (identity) | Ours (learned) | |
|---|---|---|---|---|---|---|
| Gap (%) | 7.894 | 0.388 | 6.169 | 0.331 | 0.245 | 0.190 |
| Feas. (%) | 99.824 | 100 | 100 | 100 | 100 | 100 |
| Time (ms) | 3.043 | 7.226 | 3.041 | 0.642 | 0.410 | 0.523 |
Table 4 shows that learning mobility reduces the five-seed mean gap from 0.245% to 0.190%, with improvements in four seeds. Figure 3 shows a lower gap than the fully feasible IInet configuration at comparable single-instance latency, 0.523 versus 0.533 ms.

Figure 3: Affine-task fixed-depth comparison: mean nonnegative Gap (left) and maximum violation over 5,120 outputs (right) versus latency; both axes are logarithmic. Tolerance is . Gap and latency average five seeds. Full values: Appendix D.2.
5.4 CONVEX QUADRATICALLY CONSTRAINED OPTIMIZATION
SnareNet's public convex quadratically constrained quadratic program (QCQP) (Chu et al., 2026) has 100 variables, 100 quadratic inequalities, and 50 affine equalities. All methods train for 1,500 epochs with one training seed and test all 833 instances. Joint models train through their layers; our postprocessor uses identity mobility. SnareNet retains AdaRel; ours uses original constraints. IInet converts quadratic inequalities to SOCs; its tabulated joint/post depths and DC3's test repair are validation-selected.
Table 5: QCQP: all seven configurations achieve 100% feasibility at . Mean nonnegative Gap and prediction-plus-repair latency, averaged over three complete test passes. Bold marks best Gap/time per mode, including rounded ties.
| (a) Joint | ||
|---|---|---|
| Method | Gap (%) | Time (ms) |
| DC3 | 66.918 | 0.600 |
| SnareNet | 0.159 | 18.963 |
| IInet (K = 200) | 0.040 | 6.126 |
| Ours | 0.012 | 2.469 |
| (b) Post | ||
|---|---|---|
| Method | Gap (%) | Time (ms) |
| SnareNet | 3.963 | 13.846 |
| IInet (K = 400) | 3.942 | 11.880 |
| Ours | 3.942 | 0.617 |
With joint training, Convex-SKM-Net returns feasible outputs on all 833 test inputs and is faster than SnareNet with a lower mean gap (Table 5). It also improves on the fully feasible IInet configuration in both mean gap (0.012% versus 0.040%) and latency (2.469 versus 3.175 ms).

Numbers: Ilnet steps K; other markers: main-table configurations
Filled: all feasible; open: violations remain

Figure 4: QCQP fixed-depth sweep: joint/post columns, mean Gap/maximum original violation rows, and mean latency; all 833 tests per point at tolerance . Axes are logarithmic except joint Gap on [0, 0.01%]. Full values: Appendix D.7.
Figure 4 compares three postprocessors sharing one soft-constraint predictor. Ours attains a 3.942% mean gap, comparable to fixed-400-step Ilnet, with 0.617 ms inference and a speedup over SnareNet.
5.5 BLOCK CORRECTION ABLATIONS
Table 1's operations share initial points, identity mobility, FP64, and tolerance. Violation-GD and dual PGD match block sizes and iteration budgets. Block principal pivoting (BPP) allows 16 pivots. Speedups over extrapolated minibatch stochastic subgradient projection (M-SSP) (Necoara & Nedić, 2021) use paired timings on the same GPU, as detailed in Appendix D.6.
Table 6: Median time to feasibility (ms), small/medium per cell, five successful instances each. Small/medium .
| Method | Squared affine | Log-sum-exp | Rotated SOC |
|---|---|---|---|
| Single row (frozen) | 29.745 / 107.956 | 34.383 / 100.015 | 18.444 / 66.106 |
| M-SSP | 16.916 / 41.322 | 23.284 / 67.219 | 11.842 / 73.798 |
| Violation-GD | 4.076 / 5.004 | 3.438 / 4.257 | 2.790 / 3.585 |
| BPP-16 | 54.299 / 43.175 | 33.791 / 28.204 | 29.333 / 24.068 |
| Dual PGD (ours) | 3.470 / 4.759 | 3.047 / 3.822 | 2.363 / 3.201 |
Dual PGD is fastest across all six groups (Table 6): 1.06–1.17× over Violation-GD, 4.88–19.56× over M-SSP, and 7.82–27.35× over single-row repair with matched relinearization, using paired timings.
6 CONCLUSION
Convex-SKM-Net unifies convex constraint repair through residual and (sub)gradient oracles. GPU-friendly fixed-depth dual PGD gives outer convergence and linear convergence in distance under Slater's condition and bounded subgradients. Control, power-system, and public optimization tasks demonstrate low inference cost; mobility learned jointly with the predictor further improves objective gaps.
AI USE STATEMENT
In this work, we used generative AI tools to help refine theoretical models and mathematical arguments, assist with writing and reviewing mathematical proofs, assist with method implementation based on algorithms and pseudocode provided by the authors, and assist with translation into English. We did not use generative AI tools to generate experimental data, propose or refine research hypotheses, design or provide feedback on research methods or experiments, clean or reformat datasets, or interpret experimental results; the remaining tasks requiring disclosure are not applicable to this work. Additionally, we used generative AI tools to assist with writing and checking experimental code, literature search and synthesis, identifying relevant literature, and editing author-written text to improve readability. All AI-assisted work was reviewed by the authors. The authors take responsibility for the final content of this work, including text, claims, and other research materials produced with the assistance of generative AI.
REPRODUCIBILITY STATEMENT
Appendix A provides the full assumptions and proofs. Appendix B specifies data splits, training settings, stopping rules, mobility implementation, and complexity. Appendix C defines task constraints and oracles. Appendix D provides all controls, fixed-depth sweeps, baseline failure records, and timing protocols.
REFERENCES
Akshay Agrawal, Brandon Amos, Shane Barratt, Stephen Boyd, Steven Diamond, and J. Zico Kolter. Differentiable convex optimization layers. In Advances in Neural Information Processing Systems, volume 32, 2019. URL https://proceedings.neurips.cc/paper/2019/hash/9ce3c52fc54362e22053399d3181c638-Abstract.html.
Mehrazin Alizadeh and Hina Tabassum. Power control with QoS guarantees: A differentiable projection-based unsupervised learning framework. IEEE Transactions on Communications, 71(8):4605–4619, 2023. doi: 10.1109/TCOMM.2023.3282220. URL https://doi.org/10.1109/TCOMM.2023.3282220.
Brandon Amos and J. Zico Kolter. OptNet: Differentiable optimization as a layer in neural networks. In Proceedings of the 34th International Conference on Machine Learning, volume 70 of Proceedings of Machine Learning Research, pp. 136–145. PMLR, 2017. URL https://proceedings.mlr.press/v70/amos17a.html.
Randall Balestriero and Yann LeCun. POLICE: Provably optimal linear constraint enforcement for deep neural networks. In 2023 IEEE International Conference on Acoustics, Speech and Signal Processing, pp. 1–5, 2023. doi: 10.1109/ICASSP49357.2023.10096520. URL https://doi.org/10.1109/ICASSP49357.2023.10096520.
Heinz H. Bauschke and Patrick L. Combettes. Convex Analysis and Monotone Operator Theory in Hilbert Spaces. Springer, second edition, 2017. doi: 10.1007/978-3-319-48311-5.
Jonathan Briskman and Deanna Needell. Block Kaczmarz method with inequalities. Journal of Mathematical Imaging and Vision, 52(3):385–396, 2015. doi: 10.1007/s10851-014-0539-7.
Steven Chen, Kelsey Saulnier, Nikolay Atanasov, Daniel D. Lee, Vijay Kumar, George J. Pappas, and Manfred Morari. Approximating explicit model predictive control using constrained neural networks. In 2018 Annual American Control Conference, pp. 1520–1527, 2018. doi: 10.23919/ACC.2018.8431275.
Ya-Chi Chu, Alkiviades Boukas, and Madeleine Udell. SnareNet: Flexible repair layers for neural networks with hard constraints. arXiv preprint arXiv:2602.09317, 2026. URL https://arxiv.org/abs/2602.09317.
Gonzalo E. Constante, Hao Chen, and Can Li. Enforcing hard linear constraints in deep learning models with decision rules. In Advances in Neural Information Processing Systems, volume 38, pp. 105075–105100, 2025. doi: 10.52202/
085713-3510. URL https://papers.nips.cc/paper_files/paper/2025/hash/975ala8e86e72c148aa2152243953064-Abstract-Conference.html.
Rares Cristian, Pavithra Harsha, Georgia Perakis, Brian L. Quanz, and Ioannis Spantidakis. End-to-end learning for optimization via constraint-enforcing approximators. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 37, pp. 7253–7260, 2023. doi: 10.1609/aaai.v37i6.25884.
Jesús A. De Loera, Jamie Haddock, and Deanna Needell. A sampling Kaczmarz–Motzkin algorithm for linear feasibility. SIAM Journal on Scientific Computing, 39(5):S66–S87, 2017. doi: 10.1137/16M1073807.
Priya L. Donti, David Rolnick, and J. Zico Kolter. DC3: A learning method for optimization with hard constraints. In International Conference on Learning Representations, 2021. URL https://openreview.net/forum?id=V1ZHVxJ6dSS.
Lucio T. dos Santos. A parallel subgradient projections method for the convex feasibility problem. Journal of Computational and Applied Mathematics, 18(3):307–320, 1987. doi: 10.1016/0377-0427(87)90004-5.
Thomas Frerix, Matthias Niessner, and Daniel Cremers. Homogeneous linear inequality constraints for neural network activations. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition Workshops, pp. 748–749, 2020. URL https://openaccess.thecvf.com/content_CVPRW_2020/html/w45/Frerix_Homogeneous_Linear_Inequality_Constraints_for_Neural_Network_Activations_CVPRW_2020_paper.html.
Andrea Goertzen, Kaveh Alim, Youngjae Min, and Navid Azizan. HardNet++: Nonlinear constraint enforcement in neural networks. IEEE Control Systems Letters, 10:1951–1956, 2026. doi: 10.1109/LCSYS.2026.3707460. URL https://doi.org/10.1109/LCSYS.2026.3707460.
Panagiotis D. Grontas, Antonio Terpin, Efe C. Balta, Raffaello D'Andrea, and John Lygeros. IInet: Optimizing hard-constrained neural networks with orthogonal projection layers. In International Conference on Learning Representations, 2026. URL https://arxiv.org/abs/2508.10480.
Ashfaq Iftakher, Rahul Golder, Bimol Nath Roy, and M. M. Faruque Hasan. Physics-informed neural networks with hard nonlinear equality and inequality constraints. Computers & Chemical Engineering, 204:109418, 2026. doi: 10.1016/j.compchemeng.2025.109418.
Krzysztof C. Kiwiel. Block-iterative surrogate projection methods for convex feasibility problems. Linear Algebra and its Applications, 215:225–259, 1995. doi: 10.1016/0024-3795(93)00089-I.
Andrei V. Konstantinov and Lev V. Utkin. A new computationally simple approach for implementing neural networks with output hard constraints. Doklady Mathematics, 108(S2):S233–S241, 2023. doi: 10.1134/S1064562423701077. URL https://doi.org/10.1134/S1064562423701077.
Giacomo Lastrucci and Artur M. Schweidtmann. ENFORCE: Nonlinear constrained learning with adaptive-depth neural projection. arXiv preprint arXiv:2502.06774, 2025. URL https://arxiv.org/abs/2502.06774v3.
Meiyi Li, Soheil Kolouri, and Javad Mohammadi. Learning to solve optimization problems with hard linear constraints. IEEE Access, 11:59995–60004, 2023. doi: 10.1109/ACCESS.2023.3285199.
Enming Liang and Minghua Chen. Efficient bisection projection to ensure neural-network solution feasibility for optimization over general set. In Proceedings of the 42nd International Conference on Machine Learning, volume 267 of Proceedings of Machine Learning Research, pp. 37071–37099. PMLR, 2025. URL https://proceedings.mlr.press/v267/liang25b.html.
Enming Liang, Minghua Chen, and Steven H. Low. Homeomorphic projection to ensure neural-network solution feasibility for constrained optimization. Journal of Machine Learning Research, 25(329):1–55, 2024. URL https://jmlr.org/papers/v25/23-1577.html.
Youngjae Min and Navid Azizan. HardNet: Hard-constrained neural networks with universal approximation guarantees. arXiv preprint arXiv:2410.10807, 2025. URL https://arxiv.org/abs/2410.10807v4.
Ion Necoara and Angelia Nedić. Minibatch stochastic subgradient-based projection algorithms for feasibility problems with convex inequalities. Computational Optimization and Applications, 80(1):121–152, 2021. doi: 10.1007/s10589-021-00294-3. URL https://doi.org/10.1007/s10589-021-00294-3.
Deanna Needell and Joel A. Tropp. Paved with good intentions: Analysis of a randomized block Kaczmarz method. Linear Algebra and its Applications, 441:199–221, 2014. doi: 10.1016/j.laa.2012.12.022.
Hoang T. Nguyen and Priya L. Donti. FSNet: Feasibility-seeking neural network for constrained optimization with guarantees. In Advances in Neural Information Processing Systems, volume 38, pp. 39670–39708, 2025. doi: 10.52202/085713-1323. URL https://proceedings.neurips.cc/paper_files/paper/2025/hash/3874e2be479a9d4e94d4514046c1f934-Abstract-Conference.html.
Philipp J. Schneider and Daniel Kuhn. Soft-radial projection for constrained end-to-end learning. arXiv preprint arXiv:2602.03461, 2026. URL https://arxiv.org/abs/2602.03461.
Mihaela C. Stoian, Salijona Dymishi, Maxime Cordy, Thomas Lukasiewicz, and Eleonora Giunchiglia. How realistic is your synthetic data? constraining deep generative models for tabular data. In International Conference on Learning Representations, pp. 32167–32204, 2024. URL https://proceedings.iclr.cc/paper_files/paper/2024/hash/887932131fddf943e8fe3310b62c0147-Abstract-Conference.html.
Sunbochen Tang, Andrea Goertzen, and Navid Azizan. LMI-Net: Linear matrix inequality-constrained neural networks via differentiable projection layers. arXiv preprint arXiv:2604.05374, 2026. URL https://arxiv.org/abs/2604.05374.
Jesus Tordesillas, Victor Klemm, Jonathan P. How, and Marco Hutter. RAYEN: Imposition of hard convex constraints on neural networks. arXiv preprint arXiv:2307.08336v2, 2026. URL https://arxiv.org/abs/2307.08336v2.
Runzhong Wang, Yunhao Zhang, Ziao Guo, Tianyi Chen, Xiaokang Yang, and Junchi Yan. Lin-SATNet: The positive linear satisfiability neural networks. In Proceedings of the 40th International Conference on Machine Learning, volume 202 of Proceedings of Machine Learning Research, pp. 36605–36625. PMLR, 2023. URL https://proceedings.mlr.press/v202/wang23at.html.
Hongtai Zeng, Chao Yang, Yanzhen Zhou, Cheng Yang, and Qinglai Guo. GLinSAT: The general linear satisfiability neural network layer by accelerated gradient descent. In Advances in Neural Information Processing Systems, volume 37, pp. 122584–122615, 2024. doi: 10.52202/079017-3896.
Feiyu Zhang, Wendi Bao, Weiguo Li, and Qin Wang. On sampling Kaczmarz–Motzkin methods for solving large-scale nonlinear systems. Computational and Applied Mathematics, 42(3):126, 2023. doi: 10.1007/s40314-023-02265-2. URL https://doi.org/10.1007/s40314-023-02265-2.
Xiaochen Zhang, Haoyu Zhu, Yao Zhang, and Qingchun Hou. AT-SKM-Net: An accelerated trainable sampling kaczmarz-motzkin framework for linear hard-constraint feasibility on dynamic graphs. arXiv preprint arXiv:2609.30088, 2026. URL https://arxiv.org/abs/2609.30088.
Yanjun Zhang and Hanyu Li. Block sampling Kaczmarz–Motzkin methods for consistent linear systems. Calcolo, 58(3):39, 2021. doi: 10.1007/s10092-021-00429-2.
Yanjun Zhang and Hanyu Li. Randomized block subsampling Kaczmarz–Motzkin method. Linear Algebra and its Applications, 667:133–150, 2023. doi: 10.1016/j.laa.2023.03.003.
Tianyu Zhao, Xiang Pan, Minghua Chen, and Steven H. Low. Ensuring DNN solution feasibility for optimization problems with linear constraints. In International Conference on Learning Representations, 2023. URL https://openreview.net/forum?id=QVcDQJdFTG.
Yang Zhao, Jungeun Lee, Jeong Hwan Jeon, and Sze Zheng Yong. CAffNet: Hard constraint-affine neural networks. arXiv preprint arXiv:2605.24437, 2026. URL https://arxiv.org/abs/2605.24437.
Haoyu Zhu, Yao Zhang, Jiashen Ren, and Qingchun Hou. T-SKM-Net: Trainable neural network framework for linear constraint satisfaction via sampling Kaczmarz–Motzkin method. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 40, pp. 14431–14439, 2026. doi: 10.1609/aaai.v40i17.38459.
A FULL THEORETICAL ANALYSIS
Fix an input . We analyze Euclidean correction coordinates, applying the change of coordinates below first when mobility is fixed and positive definite. Assume , each is finite and convex, and is available. Finite convex functions on are continuous, hence is closed and convex. Bounds involving true violations also assume for violated rows on the iterate region. The algorithm uses zero stopping tolerance and stays fixed after feasibility. Every local PGD solve starts at zero; its rows, signed residuals, and step size are fixed within that solve but may change between blocks. Norms below are Euclidean, except that denotes the maximum absolute row sum.
A.1 HALFSPACE CONTAINMENT AND BLOCK NOTATION
Coordinate convention. For fixed during one repair, take its symmetric positive-definite square root and let . Then remains convex, has subgradient , and satisfies
The rectangular factor from Appendix B.1 satisfies . The transformed rows have the same pairwise inner products under either representation, and hence identical row norms, normalized residual scores, and normalized Gram matrices. Given the same block choices and step sizes, zero-initialized finite dual PGD produces the same dual iterates and the same correction mapped back to . Below we again call the transformed objects ; subgradient and error-bound constants refer to these coordinates. Invertibility of makes feasible-point convergence equivalent in both coordinates.
Lemma A.1 (Nonzero subgradient at a violated row). If , , and , then .
Proof. If , the subgradient inequality makes a global minimizer of . Taking would give , a contradiction.
Lemma A.2 (Feasible-set containment). For , define . Then , so any selected intersection also contains .
Proof. For , the subgradient inequality gives . Intersect over selected rows.
For nonzero rows set and . A satisfied zero-subgradient row can be represented by . Let stack the normalized rows of a block and let contain their signed residuals. Then
In particular this polyhedron is nonempty. Define
The full Gram matrix includes satisfied filler rows with negative slack; the PGD spectral condition refers to this full matrix. For , set . Every feasible satisfies . Therefore , and . The ratio is unused when .
An implementation may use a norm floor and normalize both row and residual by . Containment is unchanged and row norms are at most one. The proofs then use those normalized violations and replace in residual bounds by .
A.2 DUAL PROGRESS FOR PGD ALONE
The block projection and its dual are
Minimizing the Lagrangian over gives .
Lemma A.3 (Dual value controls distance descent). For any , let and with . Then, for every ,
Proof. Containment gives . Multiplication by yields
Expand the squared distance after the update and substitute the definition of .
The lemma also applies to correctly shifted frozen linearizations in Appendix A.5.
Lemma A.4 (Block progress at a stable PGD step size). For , let and with . For ,
If , then for every ,
If , all are zero.
Proof. Set . Projection optimality with as comparator gives . Since is quadratic with Hessian ,
The first step is , and , so . Later dual values are nondecreasing. When , and zero remains fixed.
Weak duality and containment imply .
A.3 STANDARD STEP SIZE AND FINITE DUAL DEPTH
Assume and use with . Lemma A.4 immediately gives ; when , return zero.
Finite-step comparison inequality. For every , projection optimality and convexity give
Indeed, with and , projection optimality gives
while . Sum from to . Since and is nonincreasing,
Proof of Theorem 4.1. Take with in the comparison inequality. Then
The right side is maximized at . Combine the resulting bound with , weak duality, and Lemma A.3 at . If , zero belongs to , so .
Progress relative to exact block projection. For , the minimum-norm displacement in the nonempty polyhedron is unique. Its normal cone is generated by active row normals, so a nonnegative optimal multiplier exists. Choose the minimum-Euclidean-norm one, . KKT conditions give
Define . Applying the comparison bound with gives
Choosing yields
For a fixed block the guaranteed fraction approaches exact projection as dual depth grows. A uniform fraction across blocks additionally requires a uniform upper bound on .
Finite-depth displacement error. Let . Under the same step-size rule, the finite-step correction and the minimum displacement for the current halfspace block satisfy
Proof. Since and ,
Substitute the preceding progress bound. If , both displacements are zero. This bounds error relative to the current linearized block projection, not projection onto the original convex feasible set.
A.4 STEP-SIZE CHOICE AND AMPLIFIED-STEP FINITE-DEPTH BOUNDS
Gershgorin upper bound. For a nonzero Gram matrix, . Choose , possibly with numerical padding, and for . Recompute per block but hold the step fixed inside that solve; return zero for an all-zero block.
Corollary A.5 (Block descent with an amplified step). For any under this step-size rule,
Proof. When , Lemma A.4 and yield . For both sides vanish.
For , the base guarantee is . We next retain dual-depth dependence, including .
Comparison inequality for a general stable step. For any , projection optimality gives
Let and . Dual monotonicity and imply . Summing the comparison bound and dropping its nonpositive final squared-distance term yields
With , this gives
The Gershgorin step satisfies . Because , we may replace by the larger . Taking and maximizing over gives
At , , and the two terms become and . Each local PGD block may use its own . If varies across blocks, a uniform convergence constant requires it to stay uniformly away from both zero and two.
Likewise, setting gives
These bounds apply to the actual fixed-T PGD output. For a positive Rayleigh estimate , the step satisfies exactly when . Actual power and Gershgorin choices are recorded by experiment.
A.5 MULTIPLE BLOCK STEPS UNDER A FROZEN LINEARIZATION
At outer point , form all normalized rows and signed residuals . Starting from , use the correctly shifted affine residuals
Select block , run zero-initialized fixed-depth PGD on it, and denote the dual output by . Set
Proposition A.6 (Composition of inner corrections). Suppose each nonzero block uses , positive dual depth, and the full update ; zero blocks return zero. Then and, for every ,
Proof. For any frozen row and feasible point,
Thus every local block still contains the original feasible set. Lemma A.4 ensures ; apply Lemma A.3 at each inner step and sum.
The first inner residuals come from the true nonlinear functions at . Setting , the complete outer step descends by at least . Later steps use frozen affine residuals and add progress with .
With an additional external relaxation , the per-step decrement becomes . The main algorithm uses full steps. Uniform outer rates with relaxed steps also require a uniform positive lower bound on the first inner step's . This relaxation scales the correction, whereas sets the inner PGD step size.
A.6 OUTER CONVERGENCE AND BLOCK-DEPENDENT RATES
At each outer iterate set
Let the first block have , and let any proved coefficient satisfy . Put .
Let and take . The following uses Section 4's convexity, nonempty feasibility, and bounded-subgradient assumptions. Ratios refer to infeasible iterates; after feasibility, errors stay zero and the bounds hold trivially.
Corollary A.7 (Convex convergence and linear rate under a residual error bound). Each local block starts PGD at zero, every nonzero block uses with , and every correction is applied as a full step. Then Algorithm 1 satisfies
and the best-iterate bound
Fixed top-b selection and these step sizes give . Thus the best-iterate bound is , and the full sequence converges to a point in . Linear rate. If the constraints satisfy the normalized-residual error bound at the iterates for some , then
Proof of Corollary A.7. Proposition A.6 gives . Telescoping yields . The violated-row subgradient bound gives . Therefore
(43) proving the weighted best-iterate bound. If , then and . Pointwise distance descent makes the iterates Fejér monotone and bounded. A convergent subsequence has a feasible limit by continuity of each . The distance to is nonincreasing and vanishes along that subsequence, so the full sequence converges to .
Under , each infeasible iterate satisfies . Since , the factors are nonnegative. Iterate to obtain the product and uniform linear bounds. If feasibility occurs in finitely many steps, later errors remain zero.
Lemma A.8 (Slater condition implies a normalized-residual error bound). Suppose some and satisfy for all . For the outer iterates of Proposition A.6, assume violated-row subgradient norms are bounded by . With , every iterate satisfies
Thus is valid when is infeasible; if is feasible, all errors remain zero.
Proof. Proposition A.6 makes the outer iterates Fejér monotone with respect to , so . If , set and . Convexity gives, for every ,
Hence and . For a violated row, , so . If , then .
With a norm floor , replace by .
Combining this lemma with Corollary A.7 and proves the main Slater rate in Corollary 4.2.
Constants for fixed top-. For , the same outer-convergence proof uses Eq. (27) in place of . If normalized violations are positive, selecting the largest gives . Unit row norms imply , so . With fixed and this Gershgorin choice, . If the implementation adds a norm floor or safety padding, use its actual uniform upper bound: with , one has .
Corollary A.9 (Block geometry and dual depth in a linear bound). For , suppose , , , , and the error bound of Corollary A.7 holds. Set
Then .
Proof. The lower bound in Appendix A.3 gives ; apply Corollary A.7.
For a fixed Gershgorin configuration with , the analogous constant is
Fixed points and positive tolerances. Let be one complete outer correction. At zero tolerance with fixed top-, zero initialization, and safe step sizes, : an infeasible point has in its first block and strictly decreases its distance to every feasible point, whereas all dual iterates remain zero at a feasible point. For positive tolerance, the best-iterate bound gives outer steps to the first point with if iterations continue. A finite outer cap instead returns its actual residual and iteration-limit status.
A.7 EXACT BLOCK PROJECTION AND PARALLEL CORRECTION
Lemma A.10 (Descent for exact block projection). Let and . For and ,
Proof. Since , projection optimality gives , or . Expand the squared distance. The displacement to a nearest feasible point is feasible for the block QP, proving .
Lemma A.11 (Geometric lower bound for exact block projection). For , .
Proof. The inequality from Appendix A.1 and Cauchy–Schwarz imply for every feasible displacement. Minimize over feasible displacements and square.
The exact projection has optimal dual value ; Appendices A.3 and A.4 quantify finite-step PGD progress relative to it.
Relation to extrapolated parallel subgradient projection. Let , , and average the violated-row closed-form corrections:
With equal row weights and relaxation parameter one, the adaptive extrapolation of Necoara & Nedić (2021, Section 4.3) gives
This also maximizes the dual along the ray for . The first PGD step is ; later Gram products adjust individual nonnegative row coefficients.
A.8 LOCAL RATE FOR EXACT BLOCK CORRECTIONS
Proposition A.12 (Local quadratic decrease of infeasibility). Let and . Near , suppose active constraints are with , inactive constraints have strict slack, the selected block includes , block projection is exact and uses a full step, and
Then sufficiently nearby iterates satisfy .
Proof. For every active row, exact satisfaction of its linearized inequality and Taylor’s theorem give . Lemma A.10 keeps the next point in a sufficiently small neighborhood and gives . Inactive constraints remain strictly satisfied there. Apply the local error bound at .
B TRAINING AND IMPLEMENTATION DETAILS
Data sources and splits. Methods within each task use the same split, with sizes in Table 7. The affine task uses the data and splits released with IInet. Convex QCQP uses SnareNet’s released dataset and split with 100 variables, 100 quadratic inequalities, and 50 equalities. The affine task’s five seeds change training randomness and share one test set. Each ACOPF case has a fixed topology and a random split over load scenarios with split seed 0.
The synthetic ablation in Section 5.5 trains no predictor and has no train/test split. Each of three constraint families and two sizes uses five problem-generation seeds, giving 30 instances. Methods share instances and initial points; Appendices C.1 and D.6 describe generation and timing.
Table 7: Training, validation, and test sizes. SOC-MPC data are generated separately for each horizon. Each ACOPF relaxation uses the listed sizes.
| Task | Training | Validation | Test |
|---|---|---|---|
| SOC-MPC, each | 8,000 | 1,000 | 1,000 |
| Affine-constrained nonconvex optimization | 7,952 | 1,024 | 1,024 |
| Convex QCQP | 8,334 | 833 | 833 |
| ACOPF, 57 buses | 2,000 | 200 | 200 |
| ACOPF, 118 buses | 4,000 | 400 | 400 |
| ACOPF, 300 buses | 10,000 | 1,000 | 1,000 |
Finite unrolling. Let denote the bounded correction operator. Each local block dual variable starts at zero and undergoes a fixed number of PGD steps. With tolerance masking, a sample remains unchanged after its original residual reaches tolerance. The corrected-output training objective is
Raw-output and violation losses or mobility regularization can be added. For a fixed Euclidean geometry, set and omit . An objective-only loss does not require reference labels. Training depth and inference cap are configured separately; the returned status records whether tolerance was reached.
We differentiate through the operations executed by the finite unroll, holding top- indices and Boolean branches fixed locally. Differentiating involves constraint Hessian information; normalization, the Gram matrix, and its step-size bound also belong to the computation graph. Detaching instead gives a surrogate gradient. Mobility is fixed within one forward repair but differentiated through all its repeated uses. For SDP, the eigenvector defining a minimum-eigenvalue subgradient is detached in the backward pass. The forward row remains a valid selected subgradient, while the backward pass treats this eigenvector as constant and uses a surrogate gradient.
Step sizes. ACOPF training uses the Gershgorin step , and the other training configurations use , where . ACOPF and QCQP inference use a one-step power estimate, while SOC-MPC retains the Gershgorin step. The power estimate may not satisfy the step-size condition in Appendix A.4. With mobility, is formed from the transformed normalized rows.
SOC-MPC data generation. The six states are horizontal position and velocity, vertical position and velocity, pitch, and angular velocity. Dynamics use forward Euler discretization with step 0.05. Positions and pitch integrate their respective velocities; horizontal acceleration is 9.81 times pitch, vertical acceleration is , and angular acceleration is . Cost and constraint parameters are
Initial-state components are sampled independently and uniformly: pitch from and the other five components from . Horizontal and vertical targets are sampled from and , respectively. Seed generates independent training, validation, and test inputs sequentially at each horizon, all from the same distribution.
Tube centers are constructed during data generation. We first solve the quadratic objective subject only to the dynamics equalities, adding to its Hessian. At time , we perturb the resulting control by
where is the horizontal target position. If the largest control norm exceeds , we scale the entire control sequence by a common factor to this bound. Rolling out the dynamics from the initial state gives tube centers . This produces a trajectory satisfying every inequality strictly; Appendix C.2 gives the SOC constraints.
SOC-MPC training. For Section 5.1, ours and IInet train for 100 epochs and use the final checkpoint. All horizons use 8,000 training and 1,000 validation instances, two 200-unit ReLU hidden layers without batch normalization, seed 0, Adam with learning rate , and batch size 512. Predictor initial weights match; the mobility head starts at zero. Validation selects its learning rate: for and for , while the predictor rate stays at . The lower H20 rate scales the mobility-head update by 0.1 after Adam computes it, leaving its moment states unchanged. Parameters and Adam states use FP32 and forward computation uses FP64. Training minimizes the batch mean of , without solution labels. Ours adds a squared penalty on centered with bound . TorchAX/JAX differentiates through the bounded repair. Ours uses training outer cap 32 and block capacity 64, giving effective block size . Each linearization uses five inner corrections and 20 dual steps per block, with tolerance and per-sample masking. Training, validation, and test use the Gershgorin step ; validation and test use outer cap 250. Each horizon has 1,000 independent test instances. Identity mobility and the H20 common-rate sensitivity control appear in Appendix D.1.
IInet uses its official fixed-depth projection and custom VJP. Its training forward depths are for , backward depth , , and . The main table selects at all three horizons as a representative configuration from the fixed-depth test sweep. It is the smallest evaluated depth making every test output feasible at at each horizon. The original validation-selected depths are ; selecting the main-table representative points uses test-sweep results. Every instance runs all specified steps without residual checks or early stopping. Appendix D.1 retains the validation-selected configurations, original depths , and full sweep on the same final checkpoints. Neural methods are timed in separate synchronous batch-one runs on RTX 4090 GPUs over the same ordered 1,000 instances; the physical GPU IDs are recorded with each run. Timing includes predictor, correction, and objective evaluation, excluding input transfer, compilation, warm-up, and the independent CPU audit. Objective and residuals are checked with the original NumPy problem definition.
SOC-MPC SnareNet. At , SnareNet uses the main experiment's predictor, initialization, sample order, 100 epochs, Adam learning rate , and batch size 512. Training minimizes only the log corrected objective, without a violation penalty. Parameters and optimizer states use FP32; forward repair uses FP64. The official LM update handles dynamics equalities and SOC inequalities together, with regularization 0.01, training threshold , and cap 100. It stops on either the residual or update threshold. AdaRel starts from the per-constraint maximum training violation and decays linearly over the first 50 epochs.
At , batch-512 training encountered OOM with the default XLA (BFC) allocator on a 24 GB RTX 4090.
At , testing reuses the final checkpoint and selects only the internal threshold and iteration cap on validation data; external feasibility always uses original-residual tolerance. Appendix D.1 reports calibration and test results. The implementation retains the official LM update, adapting control flow and diagonal regularization for compilation. Forward and gradient computations were checked against the official implementation. Timing includes prediction, repair, and objective evaluation on all 1,000 single-instance inputs, excluding compilation, warm-up, and transfer.
SOC-MPC DC3 and solver controls. DC3 predicts controls, completes states via linear dynamics, and corrects squared positive inequality violations with momentum 0.5. It trains for 100 epochs with the same network, data, seed, optimizer rate, and batch size. The loss adds an inequality-violation norm penalty to log objective. Its training correction has fixed depth; inference stops at tolerance . Validation selects the following settings before test. H40 and H80 steps equal 1.5 times the inverse spectral upper bound for the squared-violation gradient. All test cases, including six H80 failures (maximum violation ), enter mean gap and time.
Table 8: SOC-MPC DC3 correction settings.
| H | Step | Train steps | Penalty | Test cap |
|---|---|---|---|---|
| 20 | 0.1 | 5 | 0.5 | 500 |
| 40 | 20 | 5 | 8000 | |
| 80 | 5 | 5 | 12800 |
Gurobi 13.0.1 solves the convex QCP; MOSEK 11.2.0 uses SOC constraints and a rotated-cone epigraph for the quadratic objective. Both are single-threaded on AMD EPYC 9654, reuse models without warm starts, and set only primal feasibility tolerance to ; other tolerances remain default. All 1,000 instances per horizon pass the original-constraint check. Their times include parameter update, optimization, solution extraction, and objective evaluation, excluding initial setup and warm-up. SOC-MPC gaps retain their signs.
Training on the affine-constraint task. In Section 5.3, IInet, SnareNet, JAXopt, and our method use predictors with two 200-unit hidden layers, Adam learning rate 0.01, batch size 2,048, and 50 training epochs, with JAX/XLA execution. JAXopt calls OSQP at tolerance to compute the Euclidean projection of the raw prediction onto the feasible set of the affine constraints and trains the predictor through this layer.
DC3 uses its official PyTorch network and training configuration: two 200-unit hidden layers with batch normalization and dropout, Adam learning rate , batch size 200, and 1,000 epochs. Equality completion precedes partial correction, with both training and test capped at ten correction steps, internal tolerance , step size , and momentum 0.5. Equality and inequality soft penalties each have weight 5. All methods use the same data split and final checkpoints. Reported latency corresponds to each implementation; external feasibility always uses original residuals at tolerance .
Convex QCQP training and inference. Section 5.4 uses SnareNet's public dataset with 100 variables, 100 convex quadratic inequalities, and 50 affine equalities. All four joint configurations and the shared post predictor use the same split, seed 456, two 200-unit hidden layers, batch normalization, dropout 0.2, FP64, Adam with learning rate , and batch size 100. Each trains for 1,500 epochs and uses its final checkpoint. The loss is
Joint training evaluates this loss on corrected outputs. The post predictor uses raw outputs and no training-time repair. Reference objective values do not enter the training loss.
DC3 uses the QCQP baseline configuration released by SnareNet. It predicts 50 free variables and completes the other 50 through the equalities. Training unrolls ten partial-correction steps with step size and momentum 0.5, evaluating the loss on original constraints. The main-table run extends the released 1,000-epoch budget to 1,500 epochs to match the other methods; Appendix D.7 retains both budgets.
DC3's extra test correction is calibrated only after training. The first ten steps retain their training step size and momentum. On all 833 validation inputs, we search extra step sizes with cap 10,000 and stopping tolerance . We reject nonfinite candidates and those that fail this tolerance on any validation input. Among candidates within 0.01 percentage points of the best mean Gap, we select the fewest mean extra iterations, giving step size . The extra phase retains DC3's momentum reset and mandatory first step. Settings are fixed before testing; external feasibility still uses .
SnareNet retains its official LM repair with regularization 0.01, cap 100 in training and testing, and internal threshold . It stops on either the residual or update threshold. SnareNet uses its AdaRel strategy, linearly reducing constraint slack to zero over the first 600 epochs. All validation and test evaluations use the original constraints.
Convex-SKM-Net trains with the original constraints throughout. It uses , five block updates per outer iteration, and ten dual PGD steps per block. Training has outer cap two and the Gershgorin step with scale 1.8; testing has outer cap 100, internal tolerance , and power1. The joint mobility head starts at zero; post uses identity mobility. The distinction between the empirical power1 setting and theoretically safe steps is as described above.
IInet uses the official Douglas–Rachford updates with and implicit BiCGSTAB differentiation. Each is represented by the equivalent SOC
The dataset has nonnegative diagonal . We vectorize the SOC projections and evaluate the lifted affine projection using an equivalent 100-dimensional Schur formula with cached coefficients. The implementation retains the official auxiliary variables, zero initialization, and distance objective on the original variables, without constructing a dense 10,300-dimensional projector. Forward and implicit-gradient computations were checked against the official implementation on an actual-data subset of three constraints; QCQP/SOC equivalence was checked for all 100 constraints.
IInet training uses a fixed 200 forward steps and an implicit-backward cap of 200, without training-time early stopping. Training is selected from nine logarithmically spaced candidates between 0.001 and 5.05, using the initial predictor's first 128 validation inputs. Among candidates with maximum original residual at most 0.05, selection minimizes mean correction distance; if none qualifies, it minimizes maximum residual. This selects 5.05. After training, joint and post separately calibrate test and depth on all 833 validation inputs, with depths . Candidates must satisfy original-residual tolerance and have mean correction distance within a factor 1.01 of the smallest feasible candidate. Selection then minimizes depth, breaking ties by residual and distance. Joint selects ; post selects . Main-text curves hold these values and checkpoints fixed and change only inference depth.
This test calibration follows IInet's principle of screening for both feasibility and projection quality (Grontas et al., 2026, Appendix C.2). We use the smallest mean correction distance among feasible candidates as an empirical reference for projection quality, with the candidate grid and 1% threshold specified above.
All methods use FP64, batch-one timing on RTX 4090 GPUs, including prediction and repair but excluding compilation, warm-up, input transfer, and independent metric evaluation. Each point uses three complete test passes. The four SnareNet and Convex-SKM-Net configurations run sequentially on one physical GPU; IInet and DC3 are timed separately on another RTX 4090. SnareNet and our saved outputs agree with native Torch to maximum absolute error below . At the maintainable depths, IInet's sweep outputs also match its previously saved predictions. DC3 implements the same forward, loss, and gradient computations in JAX/XLA and is checked against the released Torch code; the first, middle, and last test instances in each configuration pass native-output checks. Appendix D.7 gives additional statistics.
ACOPF scenarios and reference solutions. The six datasets use the IEEE 57-, 118-, and 300-bus cases from PGLib. Load scenarios use GridFM DataKit's ERCOT 2024 hourly aggregate load series. We interpolate the series to the candidate count and linearly rescale it to a case-specific global load multiplier range. Each bus's active load receives an additional independent uniform multiplier; reactive loads stay at their original case values. The global ranges are [0.8, 1.05], [0.7, 1.25], and [0.8, 1.05] for 57, 118, and 300 buses. Corresponding bus-level multiplier ranges are [0.9, 1.1], [0.8, 1.2], and [0.95, 1.05]. Generation uses seed 0.
Each dataset generates three times the required number of candidate scenarios. PowerModels, JuMP, and MOSEK solve the corresponding relaxation and provide stored reference outputs and objectives. We retain only solved candidates whose original equality and inequality residuals are at most . We then select evenly spaced positions in the ordered retained candidates and apply the random split in Table 7. Candidate filtering is performed separately for SOCP and SDP. Pretraining, fine-tuning, and testing use the same version of data, labels, and splits.
ACOPF training and inference. Pretraining minimizes raw-prediction task MSE against reference outputs on each case's training split, without a constraint layer in training. It uses AdamW with peak learning rate 0.05, weight decay , batch size 512, gradient-norm clipping at 100, and seed 0. The rate warms up linearly from zero over 50 epochs, then follows a cosine schedule
Table 9: ACOPF train and test correction budgets.
| Buses | Train outer | Train inner | Train dual | Test inner | Test dual |
|---|---|---|---|---|---|
| 57 | 2 | 4 | 4 | 4 | 8 |
| 118 | 2 | 10 | 10 | 10 | 20 |
| 300 | 2 | 20 | 20 | 20 | 40 |
of total length 2,000 epochs. We save the shared pretrained checkpoint at epoch 1,900. Predictor architecture and output processing for task MSE match subsequent fine-tuning.
Each of the six cases starts from the same case-specific 1,900-epoch pretrained predictor. Ours (post, full FT) fine-tunes the full predictor for 100 epochs, while Ours (post, head FT) freezes the trunk and running statistics and fine-tunes only the solution head. Both use raw-output task MSE without repair during training and apply only at inference. Ours (joint) freezes the pretrained trunk and running statistics and trains the solution and mobility heads for 100 epochs with
and are task MSEs against dataset labels with the same output processing and column scaling. The mobility head starts at the identity. Both heads have peak learning rate 0.005 with ten warm-up epochs and cosine decay; existing AdamW state is retained for existing parameters. Predictors have two 200-unit hidden layers, batch normalization, and dropout 0.2. Effective batch size is 512, gradient clipping threshold 100, and seed 0. We report one final checkpoint per configuration, not cross-seed means.
Training uses two outer iterations, block size 256, and the 1.95 Gershgorin step. Test uses TorchAX/XLA, an FP32 predictor and FP64 correction, block size 256, outer cap 5,000, and tolerance , with one-power-iteration step estimates. The budgets below apply to both relaxations. Synchronous batch-one RTX 4090 inference times include the predictor, equality projection, and inequality correction, averaged over three trials. Original residuals are audited outside timing.
For ACOPF, a negative per-instance objective difference can occur within the feasibility tolerance. Tables report the mean of per-instance truncated relative gaps,
All SOCP and SDP comparisons use this convention.
ACOPF layer baselines. For SOCP, official IInet 0.2.0 receives the same Ours (post, full FT) predictor output and uses its affine and SOC interfaces; thermal limits are represented equivalently as SOCs. Its original-state iteration stops at first original-residual feasibility or 5,000 iterations. On 16 validation instances, is selected by feasible count then iteration count with ; all sizes select . It succeeds on 200/200, 394/400, and 992/1000 instances for 57, 118, and 300 buses. Gap and time include failures. IInet 0.2.0 lacks a PSD-cone interface, so we omit it for SDP.
Official FSNet feasibility search also starts from the same Ours (post, full FT) checkpoint, uses memory 30, scale 1000, at most ten line-search steps, Armijo coefficient , and backtracking factor 0.5. Objective and gradient stopping thresholds are and , respectively, with an outer cap of 5,000 iterations. Original residuals are independently checked at . It fails on 12/400 SOCP118 and 915/1000 SOCP300 tests; full-set means are reported.
For SDP57, 118, and 300, LMI-Net implements the affine-set/PSD-cone Douglas–Rachford updates in Algorithm 1 and Eq. (15) of Tang et al. (2026), using the Ours (post, full FT) checkpoint. We first project the raw prediction onto the equality set to obtain an anchor. Reduced coordinates start at zero, and the matrix variable starts at the anchor's LMI image. On the first 16 validation instances, is selected by the highest feasible count, then the lowest mean iteration count; all three cases select . The cap is 5,000 iterations, and stopping and evaluation use original residuals at tolerance . Both baselines' times include prediction and repair, exclude setup and compilation, and use synchronized batch-one evaluation.
ACOPF SnareNet postprocessing. SnareNet (Chu et al., 2026) uses the same predictor checkpoint as Ours (post, full FT) in each evaluated case, without retraining. Starting from the raw network output, its official dense LM update jointly corrects equalities and inequalities, with regularization 0.01, zero constraint slack, and an iteration cap of 5,000. It stops when original residuals reach or the official residual or update criterion reaches . Final feasibility always uses the original residuals at .
The predictor uses FP32 and repair uses FP64. The complete predictor and repair are compiled into one JAX/XLA executable. RTX 4090 timing uses synchronized batch-one inference, two warm-ups, and three full test passes; it includes prediction and repair but excludes compilation, input transfer, and independent metric evaluation. The completed SOCP57, SOCP118, SDP57, and SDP118 runs cover all 200, 400, 200, and 400 test instances, respectively, with 200, 353, 175, and 105 feasible outputs. Gap and latency include infeasible outputs.
Numerical status. The layer reports success only when the true residual reaches tolerance with finite output and oracle values; otherwise it reports the iteration limit. Satisfied zero-gradient rows can be masked as padding. A block with no positive residual produces no movement from zero-initialized dual PGD.
B.1 MOBILITY PARAMETERIZATION AND IMPLEMENTATION
Euclidean block repair minimizes displacement equally in all directions, although the task objective may respond differently across directions. We introduce a learnable mobility that changes directional costs without changing the constraint set.
Definition and parameterization. Let with . The learnable parameters are ; the matrix stays fixed during one complete repair for a fixed input. Suppressing below, its action on reduced directions is
The unconstrained parameters can be learned directly as a vector shared across instances or produced by an input-conditioned model. Our learned-mobility experiments use the latter. One bounded differentiable parameterization uses a fixed :
Then , eliminating a uniform scale degree of freedom, and . Zero-output initialization gives and .
From correction direction to weighted cost. Let contain selected, unnormalized subgradient rows , and let be their signed affine residuals at the current inner point. The linearized block constraints are . The Euclidean QP has stationarity relation with . Mobility changes the direction of this nonnegative gradient combination to , or . This is the stationarity relation of the weighted QP
The metric makes equal-length moves less costly along large-eigenvalue directions of . At , this reduces to Euclidean repair. For one violated affine row, its exact displacement is
Accordingly, weighted selection scores and still uses a fixed-capacity top-b block.
Reusing the Euclidean solver. Since , take the rectangular factor , for which . Write with . For a given , its minimum Euclidean representation cost is
Therefore Eq. (5) is equivalent to
This is the Euclidean block problem of Section 3.1 with each row transformed to . Its squared norm is , giving the weighted selection score above. We normalize and select these rows, run the same dual PGD, and recover and .
B.2 COMPUTATIONAL COMPLEXITY
Given constraint residuals and (sub)gradients, the inequality-block correction requires neither matrix factorization nor linear-system solves. Dual PGD uses matrix products, reductions, and elementwise operations: each block forms once, reuses it for steps, and maintains by elementwise clipping. Our step-size rules likewise use only reductions or a fixed number of matrix-vector products. A fixed block size gives samples the same block tensor shapes, enabling batched execution and GPU parallelism.
We analyze the forward cost for one sample with dense coefficients. For , forming costs , dual PGD costs , and computing costs . The block workspace stores values; retaining the current linearization requires another .
Each outer iteration reuses one linearization for inner block updates. Let denote the cost of true-residual queries, (sub)gradient evaluation, coordinate transforms, and normalization, and let denote the cost of selecting top- from scores. Updating affine residuals costs per inner step, giving an outer-iteration cost of
The total sums these costs over the executed outer iterations and adds equality preprocessing and the final residual check. Oracle costs depend on the constraint family; for example, the minimum-eigenpair computation for SDP belongs to .
Learned mobility preserves this computational structure. Let contain the original-coordinate constraint-gradient rows. The transformed gradients satisfy . Since is positive diagonal, column scaling of equality-projected gradients implements this transform without forming or taking a Cholesky factorization of . When inner corrections accumulate in the -dimensional transformed coordinates, the block-operation and linearization-storage costs above replace by ; the coordinate transforms at each outer iteration belong to .
C CONSTRAINT RESIDUALS AND TASK DEFINITIONS
C.1 CONVEX RESIDUAL PRIMITIVES
All inequalities have the form , with affine equalities. Coefficients are fixed for a given instance. Multiplying a selected -space subgradient by gives its reduced-coordinate row. Constraint families change the corresponding value and (sub)gradient queries; block selection and dual PGD use no projector onto their full feasible sets. The PSD row still requires a minimum-eigenpair computation. Here . In the norm row, away from zero, and at zero. For PSD, is Hermitian affine and is any unit minimum-eigenvalue eigenvector. This also defines a valid subgradient at repeated eigenvalues.
Synthetic families. Squared-affine and log-sum-exp systems use the corresponding primitives. The rotated-SOC family uses affine and the convex residual
Table 10: Decision-space residuals and selected subgradients.
| Primitive | Subgradient | |
|---|---|---|
| Affine | ||
| Squared affine | ||
| Log-sum-exp | ||
| Norm minus affine | ||
| Squared norm | ||
| PSD |
A known feasible witness sets the margins. Reported comparisons use unit row scaling.
C.2 SOC-MPC OBJECTIVE AND CONSTRAINTS
The decision stacks states and controls . Each instance supplies the initial state, target position, and stored feasible tube centers . Equalities are and . With containing the target position and zeros elsewhere, the objective is
The nonlinear residuals are
Tube centers are instance data, distinct from targets and optimizer outputs. The dataset stores all matrices and radii. The IInet adapter receives the same affine SOC maps. The objective evaluator retains target-dependent constants.
C.3 CONVEX QCQP OBJECTIVE AND CONSTRAINTS
The input is the affine-equality right-hand side, and is the decision vector. Objective and constraint coefficients are fixed across the dataset, while varies:
Both and are positive semidefinite; the released dataset uses positive diagonal . We directly query
The inequality quadratic term has no factor . Feasibility checks and in original coordinates against . Gaps use the dataset's stored Gurobi reference objectives.
C.4 ACOPF OBJECTIVE AND CONSTRAINTS
Both relaxations minimize generator cost, with per-unit generation , and power base :
Lifted coordinates include squared voltage magnitude and real/imaginary voltage-product components . Branch-end flows are affine in them. Bus balance is
Affine inequalities bound generation, voltage, lifted products, and additional instance-specific envelopes. Angle residuals are and . Nonlinear SOCP residuals are
Thermal limits are checked at both branch ends. The SDP adapter retains these and adds for every stored chordal PSD group. Each is Hermitian affine in the lifted coordinates; shared diagonal variables and duplicate off-diagonal components have consistency equalities.
C.5 SCALING AND NUMERICAL CONVENTIONS
The reported native-coordinate violation is . Normalized residuals select and correct blocks, but feasibility uses native residuals. The norm denominator floor is for synthetic selected rows and Torch SOC-MPC. ACOPF cone helpers floor the squared norm at the dtype's smallest positive normal value. SDP uses the eigensolver-selected eigenpair; its backward convention is in Appendix B.
D ADDITIONAL SOLVER AND EXPERIMENT DETAILS
D.1 ADDITIONAL SOC-MPC CONTROLS
The identity-mobility predictor is still trained through the constraint layer. All configurations use the same split and correction budget, evaluate the epoch-100 checkpoint on 1,000 instances per horizon, and reach 100% feasibility. The predictor rate is throughout. The main text uses validation-selected mobility-head rates: for H20 and for H40/H80. The lower H20 rate scales only the mobility-head update by 0.1 after Adam computes it. The table also includes an H20 sensitivity control with the same rate as the predictor. With validation-selected head rates, learned mobility lowers mean relative Gap by 3.7%, 69.6%, and 82.9% versus identity across the three horizons, at higher latency. H20 has a small gain and is sensitive to the head rate: its common-rate control has 0.33924% Gap, higher than identity. These comparisons concern mean per-instance relative Gap. H20 mean raw objective does not improve: identity and the main learned configuration give 10.21007 and 10.21084, respectively.
For the fixed-depth IInet control, each horizon reuses the same epoch-100 checkpoint, normalization, and projection parameters, varying only test projection depth . The validation-selected depths were 200/300/400 for H20/H40/H80. The main table selects at all horizons as representative configurations from this test sweep, using the smallest evaluated depth making the complete test set feasible. The original 1000/1000/400 results are also retained below. Every test case runs exactly steps, without intermediate residual checks or early stopping. Timed inference includes the predictor, projection, and objective evaluation, excluding input transfer, compilation, warm-up, and the independent original-residual check. Every point covers the complete 1,000-case test set. In this sweep, is the first evaluated fixed depth that makes all 1,000 test cases feasible at each horizon. The original validation-selected depths 200/300/400 yield test feasibility of 97.8%/99.9%/100%. Shorter depths can have small Gaps while leaving outputs above tolerance, and feasibility does not increase monotonically with . Figure 2 groups horizons by column and displays objective Gap and maximum constraint violation in the top and bottom rows, respectively.
Table 11: SOC-MPC mobility controls. Gaps retain their signs; time is mean single-instance latency.
| Mobility | Head rate | Gap (%) | Time (ms) | |
|---|---|---|---|---|
| 20 | Identity | fixed | 0.19939 | 0.828 |
| 20 | Learned, common-rate control | 0.33924 | 1.308 | |
| 20 | Learned, main | 0.19200 | 0.941 | |
| 40 | Identity | fixed | 0.77589 | 0.947 |
| 40 | Learned, main | 0.23561 | 1.061 | |
| 80 | Identity | fixed | 0.94790 | 1.100 |
| 80 | Learned, main | 0.16175 | 3.125 |
Table 12: IInet fixed test depths on SOC-MPC (1,000 cases per horizon). Gap is the signed mean per-case relative objective difference; Max viol. is the maximum original constraint violation over all cases; time averages all instances. Feasibility uses tolerance . Rows at all three horizons are the main-table results. Each depth is evaluated separately; the original rows reuse the archived runs on the same checkpoints.
| Fixed | Gap (%) | Max viol. | Feas. (%) | Time (ms) | |
|---|---|---|---|---|---|
| 20 | 10 | 23.58977 | 44.1 | 2.281 | |
| 20 | 25 | 5.41482 | 14.8 | 5.055 | |
| 20 | 50 | 0.54972 | 9.5 | 9.841 | |
| 20 | 100 | 0.14579 | 49.9 | 19.278 | |
| 20 | 200 | 0.11107 | 97.8 | 38.747 | |
| 20 | 400 | 0.13016 | 100.0 | 75.952 | |
| 20 | 700 | 0.13173 | 100.0 | 134.072 | |
| 20 | 1,000 | 0.13206 | 100.0 | 192.468 | |
| 40 | 10 | 25.03752 | 47.0 | 4.273 | |
| 40 | 25 | 2.42901 | 7.1 | 10.137 | |
| 40 | 50 | 0.54179 | 3.1 | 19.676 | |
| 40 | 100 | 0.49964 | 51.7 | 38.731 | |
| 40 | 200 | 0.54620 | 99.2 | 76.773 | |
| 40 | 300 | 0.55698 | 99.9 | 115.093 | |
| 40 | 400 | 0.56725 | 100.0 | 153.111 | |
| 40 | 700 | 0.57937 | 100.0 | 267.456 | |
| 40 | 1,000 | 0.58085 | 100.0 | 388.013 | |
| 80 | 10 | 18.65364 | 22.7 | 8.672 | |
| 80 | 25 | 9.81001 | 43.4 | 20.042 | |
| 80 | 50 | 2.02172 | 9.7 | 38.982 | |
| 80 | 100 | 0.49334 | 11.3 | 77.369 | |
| 80 | 200 | 0.25986 | 91.2 | 153.082 | |
| 80 | 300 | 0.23428 | 99.9 | 226.595 | |
| 80 | 400 | 0.22984 | 100.0 | 304.138 |
SnareNet stopping calibration. SnareNet reuses each horizon's final epoch-100 AdaRel-on checkpoint and changes only the test internal threshold and iteration cap. All 1,000 validation cases evaluate thresholds and caps . LM regularization stays at 0.01, with the official residual-or-update stopping rule. Selection first maximizes the count meeting original-residual tolerance, then minimizes mean repair iterations; remaining ties prefer smaller maximum violation, then a smaller cap, then a larger internal threshold.
Both horizons select internal threshold and cap 500, with full validation feasibility. Settings are fixed before evaluating the complete test set. Validation solves stop independently per instance; vectorization only accelerates evaluation and was checked against the official single-instance forward pass.
Table 13: SnareNet SOC-MPC stopping controls, using one checkpoint and all 1,000 test cases per horizon. Original settings use internal threshold and cap 100; validation-calibrated settings use and 500 and appear in the main table. Gap retains its sign; external feasibility always uses . Time is mean single-instance latency.
| H | Stopping | Gap (%) | Max viol. | Feas. (%) | Time (ms) |
|---|---|---|---|---|---|
| 20 | Original | 0.01904 | 77.9 | 20.534 | |
| 20 | Calibrated | 2.91321 | 100.0 | 58.567 | |
| 40 | Original | 0.06786 | 79.2 | 61.758 | |
| 40 | Calibrated | 1.76219 | 100.0 | 175.515 |
Failures under the original settings primarily violate dynamics equalities. Calibration makes all test outputs feasible at both horizons, with more repair iterations and higher latency. The original settings' lower mean Gap includes infeasible outputs and does not measure feasible-solution quality for comparison with the main table.
Table 14: SOC-MPC main-table results at full precision; settings match Table 2.
| H | Method | Gap (%) | Feas. (%) | Time (ms) |
|---|---|---|---|---|
| 20 | Gurobi | -4.50e-5 | 100 | 20.809 |
| 20 | MOSEK | -1.07e-6 | 100 | 4.974 |
| 20 | DC3 | 5.90896 | 100 | 0.566 |
| 20 | IInet | 0.13016 | 100 | 75.952 |
| 20 | SnareNet | 2.91321 | 100 | 58.567 |
| 20 | Ours | 0.19200 | 100 | 0.941 |
| 40 | Gurobi | -4.61e-5 | 100 | 57.957 |
| 40 | MOSEK | -1.84e-6 | 100 | 10.023 |
| 40 | DC3 | 16.69631 | 100 | 1.810 |
| 40 | IInet | 0.56725 | 100 | 153.111 |
| 40 | SnareNet | 1.76219 | 100 | 175.515 |
| 40 | Ours | 0.23561 | 100 | 1.061 |
| 80 | Gurobi | -1.51e-4 | 100 | 59.254 |
| 80 | MOSEK | -1.14e-4 | 100 | 20.470 |
| 80 | DC3 | 13.34606 | 99.4 | 6.623 |
| 80 | IInet | 0.22984 | 100 | 304.138 |
| 80 | SnareNet | — | — | — |
| 80 | Ours | 0.16175 | 100 | 3.125 |
D.2 NONCONVEX OPTIMIZATION WITH AFFINE CONSTRAINTS: DEPTH AND TRAINING CONTROLS
Inference timing and implementations. For each seed in Section 5.3, single-instance timing synchronously repeats each of ten test inputs ten times and takes the median of the pooled 100 measurements. The table averages these medians over five seeds. Batch-1,024 timing takes the median of ten complete-test-batch runs per seed, then averages over seeds. Timings include prediction and repair, excluding compilation and warm-up. DC3 uses its official PyTorch implementation; the other neural methods use JAX/XLA. Appendix B gives training and repair settings. All five 50-epoch JAXopt seeds use this ten-input timing protocol.
The main table uses test tolerance for our method and fixed 50-step inference for IInet. IInet trains with 50 projection steps and implicit differentiation. This appendix also retains a test early-stop control that resumes the Douglas–Rachford state, checks original residuals every ten steps, and caps at 50; the interval was selected on validation data. Forced continuation to 50 steps reproduces the original fixed-depth output elementwise.
The fixed-depth sweep reuses the same five checkpoints with and no intermediate residual checks. Each point cov-
Table 15: Complete affine-task results, including maximum original violation and batch timing. Five seeds each test 1,024 instances; violation takes the maximum, other columns average seeds.
| Method | Single time | ||||
|---|---|---|---|---|---|
| Gap (%) | Max viol. | Feas. (%) | Single time (ms) | Batch time (ms) | |
| DC3 | 7.89393 | 99.824 | 3.043 | 3.809 | |
| JAXopt | 0.38841 | 100 | 7.226 | 111.679 | |
| SnareNet | 6.16897 | 100 | 3.041 | 61.441 | |
| IInet () | 0.33117 | 100 | 0.642 | 5.370 | |
| Ours (identity mobility) | 0.24518 | 100 | 0.410 | 1.864 | |
| Ours (learned mobility) | 0.19032 | 100 | 0.523 | 4.384 | |
Table 16: Fixed-depth and early-stop IInet on the affine task. Gap and latency average five seeds; Max viol. is the maximum across all 5,120 outputs. Feasibility uses , and Gap includes infeasible outputs.
| Test mode | Single time | Batch time (ms) | |||
|---|---|---|---|---|---|
| Gap (%) | Max viol. | Feas. (%) | Single time (ms) | ||
| 29.77461 | 75.84 | 0.079 | 0.410 | ||
| 4.14283 | 0 | 0.106 | 0.554 | ||
| 0.02529 | 0 | 0.158 | 0.845 | ||
| 0.25240 | 0 | 0.211 | 1.335 | ||
| 0.35811 | 0.059 | 0.266 | 1.833 | ||
| 0.32809 | 0.02 | 0.312 | 2.317 | ||
| 0.33120 | 99.922 | 0.433 | 3.375 | ||
| 0.33117 | 100 | 0.533 | 4.381 | ||
| 0.33117 | 100 | 0.642 | 5.370 | ||
| 0.33117 | 100 | 0.855 | 7.798 | ||
| 0.33117 | 100 | 1.074 | 10.223 | ||
| Check each | 0.33120 | 100 | 0.494 | 3.990 | |
ers every seed's complete test set. At , quality metrics match the original results for each seed. All fixed-depth timings below come from this sweep. These depths are observations along the test curve; the main table retains the original 50-step budget, and the additional early-stop control uses a validation-selected check interval. Table 16 reports the complete sweep. At , four outputs miss tolerance; at , all are feasible. Further iterations leave Gap essentially unchanged while reducing maximum violation. Across five training seeds, Gap mean sample standard deviation is for JAXopt, for SnareNet, for fixed-50-step IInet, for identity mobility, and for learned mobility.
Ours uses , five inner corrections, ten dual steps, and outer cap eight. The main configuration trains with tolerance . We also train to and evaluate the same checkpoint at two test tolerances. Gaps are similar across training tolerances. Tighter test tolerance substantially increases latency. Fixed-depth IInet has lower CV than early stopping. Mean 50-epoch training times for IInet, identity mobility, and learned mobility are 14.35, 23.36, and 37.75 seconds. These are total wall-clock times including initial compilation and validation at every epoch, averaged over five training seeds.
SnareNet relaxation and training duration. SnareNet retains the official LM update and stops when either the residual or update reaches its threshold. Regularization is 0.01, the cap is 100, and the internal train and test threshold is . It uses the task's two 200-unit hidden layers, Adam learning rate 0.01, batch size 2,048, and the corrected objective without a violation penalty. Each seed matches the predictor initialization and training order of the corresponding identity-mobility run. With AdaRel, initial slack is the per-constraint maximum violation of raw training predictions
Table 17: Training and test tolerance controls for our method on nonconvex optimization with affine constraints; all rows are 100% feasible at their test tolerance.
| Mobility | Train tol | Test tol | Gap (%) | Max viol. | Single time (ms) | Batch time (ms) |
|---|---|---|---|---|---|---|
| Identity | 0.24518 | 0.410 | 1.864 | |||
| Learned | 0.19032 | 0.523 | 4.384 | |||
| Identity | 0.24606 | 0.341 | 1.678 | |||
| Identity | 0.24636 | 0.833 | 2.918 | |||
| Learned | 0.19167 | 0.543 | 4.908 | |||
| Learned | 0.19215 | 3.605 | 9.267 |
Table 18: SnareNet relaxation and training-duration controls. Each row aggregates five seeds, each testing all 1,024 instances. Gap gives mean ± sample standard deviation. Every configuration is 100% feasible at . The 100-epoch runs retain the 25-epoch relaxation decay.
| Epochs | AdaRel | Gap (%) | Max viol. | Single time (ms) | Batch time (ms) |
|---|---|---|---|---|---|
| 50 | Off | 3.525 | 62.326 | ||
| 50 | On, main | 3.041 | 61.441 | ||
| 100 | Off | 4.465 | 65.159 | ||
| 100 | On | 2.943 | 58.483 |
and decays linearly over the first 25 epochs. Validation and test always use zero slack. The main table uses the final checkpoint after 50 epochs with AdaRel enabled.
AdaRel and longer training both improve objective quality on this task. With AdaRel enabled, extending training from 50 to 100 epochs lowers mean Gap from 6.169% to 4.723%; this control uses additional training budget. The official repair's forward and gradient computations were checked against the TorchAX/JAX implementation. Single-instance timing uses ten test inputs with ten repeats each; batch timing uses all 1,024 inputs. Both exclude compilation.
D.3 ACOPF TRAINING SCOPE AND MOBILITY
All controls start from the same pretrained checkpoint, use the same split, 100-epoch budget, and test repair configuration. The main text reports post with full-predictor fine-tuning, post with solution-head fine-tuning, and joint training of the solution and mobility heads with a frozen trunk. Both post configurations use raw-output MSE and identity mobility at inference. The additional controls jointly train either the full predictor or only the solution head with identity mobility. Comparing the two joint configurations with a frozen trunk measures the benefit of adding mobility. Both identity-mobility joint variants use ; learned mobility adds the regularizer in Appendix B. With the same frozen trunk, task loss, and correction budget, adding a learned mobility head lowers Gap in all six cases; 57-bus differences are small, and the learned branch adds mobility regularization. The precise SOCP300 matched gaps are 0.041305% to 0.036762% (11.0% relative improvement), and SDP300 0.041806% to 0.038418% (8.1%). Each ACOPF case uses one training seed; only the small task in Section 5.3 tests cross-seed consistency. Full-predictor joint training gives a SOCP57 gap of 0.04430%, below the frozen-trunk, learned-mobility result of 0.05010%. On SOCP300 and SDP300, its gaps of 0.09951% and 0.05807% exceed the corresponding full-FT post gaps of 0.09816% and 0.05240%.
The learned metric also varies by case. For , we record the maximum test-sample condition number . We also compute the standard deviation of each across test samples and average it over coordinates. For SOCP/SDP57, these two statistics are 1.31/1.28 and 0.000925/0.00121; for SOCP/SDP118, 11.00/12.84 and 0.02166/0.01710; for SOCP/SDP300, 15.77/15.66 and 0.03408/0.01499. The 57-bus metrics stay close to identity and vary little across inputs, consistent with their nearly tied Gap controls.
Table 19: ACOPF control mean gaps (%). All models are 100% feasible at ; sample sizes are 200, 400, and 1,000 for 57, 118, and 300 buses.
| Relax. | Buses | Mean gap (%) | ||||
|---|---|---|---|---|---|---|
| Post | Joint | |||||
| Full | Head | Identity full | Identity head | Learned head | ||
| SOCP | 57 | 0.05115 | 0.05142 | 0.04430 | 0.05013 | 0.05010 |
| SOCP | 118 | 0.41878 | 0.18361 | 0.40576 | 0.17931 | 0.16658 |
| SOCP | 300 | 0.09816 | 0.04123 | 0.09951 | 0.04130 | 0.03676 |
| SDP | 57 | 0.07490 | 0.06420 | 0.07079 | 0.06408 | 0.06401 |
| SDP | 118 | 0.37341 | 0.16452 | 0.35438 | 0.15406 | 0.14442 |
| SDP | 300 | 0.05240 | 0.05438 | 0.05807 | 0.04181 | 0.03842 |
Table 20: Infeasible ACOPF baseline outputs and iteration limits. “At cap” counts only infeasible outputs; maximum residuals include all test outputs.
| Task | Method | Failed / Total | At cap | Max eq. | Max ineq. |
|---|---|---|---|---|---|
| SOCP118 | IInet | 6/400 | 6 | ||
| SOCP118 | FSNet | 12/400 | 12 | ||
| SOCP118 | SnareNet | 47/400 | 47 | ||
| SDP57 | SnareNet | 25/200 | 25 | ||
| SDP118 | SnareNet | 295/400 | 295 | ||
| SOCP300 | FSNet | 915/1,000 | 915 | ||
| SOCP300 | IInet | 8/1,000 | 8 |
Baseline stopping states on infeasible outputs. Table 20 checks per-instance stopping records for seven baseline configurations. Every output that misses tolerance in these configurations is finite and reaches the 5,000-iteration cap; none exits earlier because of an internal objective, gradient, or update threshold. Maximum equality and inequality residuals use the original constraints over the complete test set. Main-text Gap and latency also include these failed outputs.
D.4 DC3 ACOPF ATTEMPTS
We applied DC3 equality completion and partial correction to all constraints of SOCP57/118 and SDP57/118 (Donti et al., 2021). With five training correction steps, step , momentum 0.5, and equality/inequality penalties 5 each, all cases produced nonfinite forward values in the first training batch, before any optimizer update. Squared thermal violations dominated the correction gradient. After full-training-set calibration, fixed steps were for 57 buses and for 118 buses. At the original penalty, SOCP118 stopped after 562 epochs because of a nonfinite gradient; the other three completed 2,000 epochs but remained infeasible on test.
With total penalty split equally between equality and inequality, all four completed 2,000 epochs. AdamW used batch size 512, peak rate 0.05, 50-epoch warm-up and cosine decay; training correction stayed at five steps. Test cap was 250 and tolerance . Restoring test step for SOCP57 reduced maximum violation to 0.16163 but still yielded 0/200 feasible outputs. We do not interpret negative objective differences of infeasible outputs as solution quality. These attempts do not cover 300 buses.
Table 21: DC3 tests after step calibration and increased penalty; maximum violation uses native residuals.
| Case | Step | Epochs | Feasible tests | Max ineq. violation |
|---|---|---|---|---|
| SOCP57 | 2000 | 0/200 | 0.19304 | |
| SOCP118 | 2000 | 0/400 | 189.69979 | |
| SDP57 | 2000 | 0/200 | 0.13667 | |
| SDP118 | 2000 | 0/400 | 94.37722 |
D.5 MOSEK REFERENCE AND TIMING AUDIT
MOSEK via PowerModels/JuMP/MosekTools solves the same relaxations used to generate labels: SOCWRConicPowerModel for SOCP and SparseSDPWRMPowerModel for SDP. All six cases use the paper's test split, original FP64 inputs, and original model (model_tau=0). Primal and dual feasibility tolerances are , relative gap tolerance , and MOSEK default threads are retained. Each case warms up on two validation samples and solves all tests once. Main-text time is the mean wall time of PowerModels.optimize_model!, including backend setup, solve, and extraction but excluding JuMP model construction, process start, warm-up, file I/O, and external checks. All 3,200 solves returned OPTIMAL and pass the native check; stored outputs reproduce the FP64 labels elementwise, giving zero gap to original labels. The common neural-method reference incurs only mean gaps from front-end rounding, displayed as 0.00000%. SDP objective scaling tries factors 1, 0.3, 0.1, 0.03 only after non-OPTIMAL status; every test succeeded at the first factor.
Table 22: MOSEK native-residual audit and mean model-construction time over 200/400/1,000 tests.
| Relax. | Buses | Max equality | Max inequality | Build time (ms) |
|---|---|---|---|---|
| SOCP | 57 | 5.378 | ||
| SOCP | 118 | 12.333 | ||
| SOCP | 300 | 27.268 | ||
| SDP | 57 | 16.649 | ||
| SDP | 118 | 53.069 | ||
| SDP | 300 | 331.634 |
D.6 UNIFIED TORCHAX/JAX BLOCK ABLATION
The nine deterministic methods use one RTX 4090 with TorchAX/JAX over two scales, three convex families, and five paired problem seeds: 270 method-instance combinations and 666 timing trials. M-SSP and its paired dual PGD use another RTX 4090 on byte-identical inputs for 60 combinations and 180 successful timing trials. Native-coordinate equalities and inequalities are checked after stopping.
Single-row SKM refreshes nonlinear residuals after each normalized-max row correction; its frozen variant refreshes after five. Equality-LS fits selected boundary equations by pinv or lstsq; Block-pinv fits only violated selected rows. Violation-GD runs ten gradient steps on squared positive block violation. Block principal pivoting (BPP) solves the same halfspace QP as dual PGD; BPP-4 and BPP-16 cap each block solve at four and sixteen pivots, respectively. M-SSP follows the adaptive extrapolated minibatch subgradient method of Necoara & Nedić (2021, Section 4.3), sampling 128 rows with replacement and refreshing true subgradients each step. With and , it uses where . Zero denominators give a zero update. Each problem seed has one pre-generated random-index stream, reused across three timing repeats.
All methods use identity mobility, FP64, block size 128, and native maximum violation tolerance . Block methods relinearize per outer iteration and perform up to five inner updates; dual PGD and Violation-GD both use ten steps, zero initialization, and a matched spectral-bound step. Timings include oracle queries, gradients, selection, correction, scheduling, and stop checks, excluding compilation, warm-up, instance generation, equality preprocessing, and M-SSP index generation. Each run stops at tolerance, the 1,024-outer-iteration cap, or a 0.5-second soft time budget checked after eight-iteration segments. Equality-LS's first segment itself takes roughly 1.04–1.08 seconds. Both Equality-LS variants fail to reach tolerance within the budget in all six groups. BPP-4 times out on four small squared-affine instances; single-row SKM reaches the iteration cap on five medium squared-affine and three medium log-sum-exp instances. All remaining method-instance combinations reach tolerance. Success counts use actual returned outputs.
For each instance, we take median repeated time, then median over five instances. A dagger marks stopping time on failures, not time-to-feasibility. Mean outer iterations weight the five instances equally; maximum violation is the maximum over all stopped outputs. Paired speedups are the median of per-instance alternative/dual ratios when both succeed on all five, and need not equal the ratio of group medians.
All 180 M-SSP/dual paired trials reach tolerance; maximum native inequality violation is and equality residual is below . M-SSP computes averaged row corrections, not a joint minimum-norm block correction. Its ratios use its own same-device dual control and are not obtained by mixing the two GPU runs.
Table 23: Small synthetic systems () = (256, 32, 2048). Dagger: time includes failed outputs.
| Method | Success | Stop time (ms) | Mean outer | Max viol. | Paired ratio |
|---|---|---|---|---|---|
| Squared affine | |||||
| Single-row SKM | 5/5 | 75.606 | 589.0 | 9.952e-04 | 21.79 |
| Single-row frozen | 5/5 | 29.745 | 117.8 | 9.516e-04 | 9.23 |
| Equality-LS/pinv | 0/5 | 1045.233† | 8.0 | 1.887e+02 | – |
| Equality-LS/lstsq | 0/5 | 1044.895† | 8.0 | 8.198e+02 | – |
| Block-pinv | 5/5 | 547.114 | 5.4 | 8.586e-04 | 152.52 |
| Violation-GD | 5/5 | 4.076 | 5.4 | 7.861e-04 | 1.17 |
| BPP-4 | 1/5 | 536.639† | 46.0 | 7.291e-03 | – |
| BPP-16 | 5/5 | 54.299 | 5.2 | 9.291e-04 | 16.18 |
| Ours (dual PGD) | 5/5 | 3.470 | 5.6 | 5.836e-04 | 1.00 |
| Log-sum-exp | |||||
| Single-row SKM | 5/5 | 102.326 | 515.2 | 9.957e-04 | 31.73 |
| Single-row frozen | 5/5 | 34.383 | 103.6 | 9.989e-04 | 11.23 |
| Equality-LS/pinv | 0/5 | 1045.260† | 8.0 | 3.297e-01 | – |
| Equality-LS/lstsq | 0/5 | 1044.030† | 8.0 | 3.123e-01 | – |
| Block-pinv | 5/5 | 417.574 | 4.0 | 8.954e-04 | 138.68 |
| Violation-GD | 5/5 | 3.438 | 4.0 | 9.884e-04 | 1.12 |
| BPP-4 | 5/5 | 30.054 | 3.8 | 7.489e-04 | 10.00 |
| BPP-16 | 5/5 | 33.791 | 3.8 | 8.758e-04 | 10.57 |
| Ours (dual PGD) | 5/5 | 3.047 | 4.0 | 9.844e-04 | 1.00 |
| Rotated SOC | |||||
| Single-row SKM | 5/5 | 48.903 | 326.4 | 9.844e-04 | 20.74 |
| Single-row frozen | 5/5 | 18.444 | 63.8 | 9.998e-04 | 7.82 |
| Equality-LS/pinv | 0/5 | 1043.614† | 8.0 | 3.270e-01 | – |
| Equality-LS/lstsq | 0/5 | 1045.805† | 8.0 | 4.724e-01 | – |
| Block-pinv | 5/5 | 322.623 | 3.4 | 7.286e-04 | 135.42 |
| Violation-GD | 5/5 | 2.790 | 3.0 | 6.757e-04 | 1.06 |
| BPP-4 | 5/5 | 23.321 | 3.0 | 8.972e-04 | 9.89 |
| BPP-16 | 5/5 | 29.333 | 3.0 | 8.601e-04 | 12.15 |
| Ours (dual PGD) | 5/5 | 2.363 | 3.0 | 9.225e-04 | 1.00 |
Table 24: Medium synthetic systems () = (512, 64, 4096). Dagger: time includes failed outputs.
| Method | Success | Stop time (ms) | Mean outer | Max viol. | Paired ratio |
|---|---|---|---|---|---|
| Squared affine | |||||
| Single-row SKM | 0/5 | 182.660† | 1024.0 | 1.092e-02 | – |
| Single-row frozen | 5/5 | 107.956 | 242.2 | 9.847e-04 | 21.93 |
| Equality-LS/pinv | 0/5 | 1066.688† | 8.0 | 2.561e+02 | – |
| Equality-LS/lstsq | 0/5 | 1069.191† | 8.0 | 2.539e+02 | – |
| Block-pinv | 5/5 | 642.880 | 5.6 | 6.650e-04 | 136.56 |
| Violation-GD | 5/5 | 5.004 | 5.4 | 7.590e-04 | 1.14 |
| BPP-4 | 5/5 | 39.231 | 5.6 | 9.481e-04 | 8.66 |
| BPP-16 | 5/5 | 43.175 | 5.6 | 8.159e-04 | 9.38 |
| Ours (dual PGD) | 5/5 | 4.759 | 5.6 | 9.912e-04 | 1.00 |
| Log-sum-exp | |||||
| Single-row SKM | 2/5 | 243.191† | 999.6 | 2.025e-03 | – |
| Single-row frozen | 5/5 | 100.015 | 212.8 | 9.987e-04 | 27.35 |
| Equality-LS/pinv | 0/5 | 1067.914† | 8.0 | 3.295e-02 | – |
| Equality-LS/lstsq | 0/5 | 1066.489† | 8.0 | 2.718e-01 | – |
| Block-pinv | 5/5 | 476.396 | 4.0 | 7.853e-04 | 124.72 |
| Violation-GD | 5/5 | 4.257 | 4.0 | 9.250e-04 | 1.11 |
| BPP-4 | 5/5 | 28.154 | 4.0 | 6.455e-04 | 7.49 |
| BPP-16 | 5/5 | 28.204 | 4.0 | 4.301e-04 | 7.84 |
| Ours (dual PGD) | 5/5 | 3.822 | 4.0 | 7.755e-04 | 1.00 |
| Rotated SOC | |||||
| Single-row SKM | 5/5 | 152.090 | 670.2 | 9.880e-04 | 50.00 |
| Single-row frozen | 5/5 | 66.106 | 137.4 | 9.992e-04 | 20.65 |
| Equality-LS/pinv | 0/5 | 1069.885† | 8.0 | 2.928e-01 | – |
| Equality-LS/lstsq | 0/5 | 1070.832† | 8.0 | 9.302e-02 | – |
| Block-pinv | 5/5 | 382.370 | 3.2 | 6.725e-04 | 115.88 |
| Violation-GD | 5/5 | 3.585 | 3.0 | 8.009e-04 | 1.12 |
| BPP-4 | 5/5 | 23.349 | 3.0 | 9.840e-04 | 7.29 |
| BPP-16 | 5/5 | 24.068 | 3.0 | 6.860e-04 | 7.28 |
| Ours (dual PGD) | 5/5 | 3.201 | 3.0 | 9.269e-04 | 1.00 |
Table 25: M-SSP versus same-device dual PGD. Both succeed on all five seeds per group. Ratios are medians of paired instance ratios.
| Scale | Family | Time (ms) | Ratio | M-SSP outer | |
|---|---|---|---|---|---|
| M-SSP | Dual PGD | ||||
| Small | Squared affine | 16.916 | 3.617 | 4.88 | 140.2 |
| Log-sum-exp | 23.284 | 3.257 | 7.43 | 160.2 | |
| Rotated SOC | 11.842 | 2.315 | 5.11 | 95.0 | |
| Medium | Squared affine | 41.322 | 4.898 | 9.44 | 297.6 |
| Log-sum-exp | 67.219 | 4.303 | 15.90 | 362.2 | |
| Rotated SOC | 73.798 | 4.448 | 19.56 | 272.4 | |
D.7 CONVEX QCQP STATISTICS
Section 5.4 uses SnareNet’s public data with 100 variables, 100 convex quadratic inequalities, and 50 affine equalities. All seven main-table configurations test the complete set of 833 instances. Joint configurations train their predictors through their respective repairs; the three postprocessors share the same predictor weights and raw outputs. Main-table results use seed 456 and the final epoch-1,500 checkpoint; Appendix B gives training settings.
The main text uses the arithmetic mean of nonnegative per-instance relative Gap; this table retains SnareNet’s absolute-gap statistics. Feasibility uses the original quadratic-inequality and affine-equality residuals. SnareNet has internal threshold but may also stop on small updates or its iteration cap, so outputs need not meet original-residual tolerance. The main table consistently evaluates feasibility at .
The four SnareNet and Convex-SKM-Net configurations run sequentially on one RTX 4090 for three full single-instance timing passes. IInet and DC3 are timed separately on another RTX 4090 with the same test set, precision, and repetition count. These passes repeat inference with one checkpoint, not training seeds. All three postprocessors have identical predictor checkpoint hashes. Every IInet sweep point restarts repair from the same raw predictions and runs its fixed number of steps without intermediate residual checks.
DC3 training budget and test correction. We retain DC3’s released 1,000-epoch budget and continue the same run to 1,500 epochs. Table 27 compares both budgets and test calibration. The last two rows use the same checkpoint and differ only in test correction settings. The released test configuration applies ten fixed steps, then at most ten extra steps, all with step size and internal tolerance for the extra phase.
Test calibration reduces infeasible outputs from 31 to zero for the final checkpoint, but mean Gap remains about 66.9%. Objective quality is thus the main limitation of this configuration: extra test correction restores feasibility without improving its large Gap. Calibrated extra correction averages 7.94 steps and takes at most 709, in addition to the first ten fixed steps.
Fixed-depth IInet inference. Joint uses the final checkpoint trained with 200 fixed projection steps; post uses the shared soft-constraint predictor. Each curve holds its validation-selected fixed and evaluates all 833 test inputs. Table 28 reports nonnegative relative Gap, maximum original violation, feasibility, and mean single-instance latency over three passes.
At joint , all outputs are infeasible and clipping negative per-instance relative gaps gives zero mean Gap; this does not represent feasible objective quality. Post , 10 is fully feasible but has large Gap, and feasibility is nonmonotone in subsequent iterations. Both cases motivate reporting objective quality together with original residuals.
Table 26: Convex QCQP absolute objective gaps and maximum original residuals. Absolute gap is ; its geometric mean and maximum cover all test instances. All gaps are positive. All configurations are 100% feasible at .
| Mode | Method | Absolute gap | Max ineq. | Max eq. | |
|---|---|---|---|---|---|
| Geom. mean | Max | ||||
| Joint | DC3 | 8.7725242 | 13.8658313 | ||
| Joint | SnareNet | 0.0202505 | 0.0749286 | ||
| Joint | IInet () | 0.00194093 | 0.0616385 | ||
| Joint | Ours | 0.00130975 | 0.0165973 | ||
| Post | SnareNet | 0.500654 | 1.038013 | ||
| Post | IInet () | 0.497508 | 1.113269 | ||
| Post | Ours | 0.497585 | 1.113269 | ||
Table 27: DC3 training-budget and test-correction controls. Each row covers all 833 test inputs. Feasibility uses original-residual tolerance; Gap and latency include failures. Calibration uses validation data only. The last row is the main-table configuration.
| Epochs | Test correction | Gap (%) | Feas. (%) | Max viol. | Time (ms) |
|---|---|---|---|---|---|
| 1,000 | Released | 78.19945 | 97.719 | 0.372 | |
| 1,500 | Released | 66.90930 | 96.279 | 0.378 | |
| 1,500 | Calibrated | 66.91845 | 100 | 0.600 |
Table 28: Complete fixed-depth IInet sweep on convex QCQP. Each row tests all 833 instances. Max viol. is the largest original residual; feasibility uses . Gap includes infeasible outputs. The joint and post rows also appear in the main table.
| Mode | Gap (%) | Max viol. | Feas. (%) | Time (ms) | |
|---|---|---|---|---|---|
| Joint | 5 | 0.00000 | 0 | 0.330 | |
| 10 | 0.00032 | 0 | 0.465 | ||
| 20 | 0.06495 | 0 | 0.753 | ||
| 30 | 0.08713 | 0 | 1.057 | ||
| 50 | 0.04274 | 0 | 1.639 | ||
| 75 | 0.04031 | 58.583 | 2.422 | ||
| 100 | 0.04014 | 100 | 3.175 | ||
| 150 | 0.04013 | 100 | 4.645 | ||
| 200 | 0.04013 | 100 | 6.126 | ||
| 300 | 0.04013 | 100 | 9.007 | ||
| 400 | 0.04013 | 100 | 11.900 | ||
| 600 | 0.04013 | 100 | 17.624 | ||
| 800 | 0.04013 | 100 | 23.369 | ||
| Post | 5 | 70.62898 | 100 | 0.293 | |
| 10 | 42.65650 | 100 | 0.446 | ||
| 20 | 19.83004 | 58.103 | 0.744 | ||
| 30 | 12.02816 | 54.982 | 1.028 | ||
| 50 | 6.54757 | 48.739 | 1.615 | ||
| 75 | 4.73516 | 46.098 | 2.415 | ||
| 100 | 4.20975 | 49.46 | 3.188 | ||
| 150 | 3.97701 | 92.557 | 4.616 | ||
| 200 | 3.94676 | 100 | 6.143 | ||
| 300 | 3.94167 | 100 | 9.027 | ||
| 400 | 3.94154 | 100 | 11.880 | ||
| 600 | 3.94154 | 100 | 17.626 | ||
| 800 | 3.94154 | 100 | 23.354 |