potentialpaper

A Differentiable Interior-Point Method in Single Precision

Jon Arrizabalaga, Kevin Tracy, Zac Manchester

NeurIPS 2026

Edit this page

Or clone it with git

Run in a terminal:

Needs Git LFS. To push, use an API key from your profile as the password.

Or let your agent set it up

It checks and sets up everything: signing in, git, the clone, credentials and an SSH key.

TL;DR. We introduce a differentiable interior-point method that reliably solves and differentiates constrained quadratic programs in single precision by eliminating complementarity-induced numerical ill-conditioning.

Abstract. Primal-dual interior-point methods solve constrained convex optimization problems to tight tolerances with speed and robustness. Their solutions are also efficiently differentiable with respect to the problem data through the implicit function theorem. However, the standard treatment of primal-dual complementarity makes the underlying linear systems increasingly ill-conditioned near the solution. While this ill-conditioning is often benign in double precision, it can be catastrophic in single precision, preventing interior-point methods from fully exploiting the accelerated hardware that underpins modern machine learning. This paper introduces a differentiable interior-point method designed for low-precision arithmetic. By using an alternative complementarity representation, we ensure that the underlying linear systems remain spectrally bounded --- even near the solution --- a property that is essential for computing accurate gradients and avoiding arithmetic exceptions. As a result, our method enables interior-point solvers to reliably solve and differentiate optimization problems in single precision that were previously confined to double precision. We demonstrate the approach through an ablation study against the standard interior-point formulation and applications in bilevel and end-to-end learning settings where differentiating through constrained optimization is essential.

Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.

Claim this paper
How does this paper connect to your work? Write how you built on it, compared with it or reproduced it, or add a summary, a critique or errata.
Or make it interactive:
Start writing

edit · history

DateVersionSubmitted toPDFEvidence
4 May 2026NeurIPS 2026submittedNeurIPS 2026Accept (poster)reviews ↓[1]PDF[1]
Missing a version?

NeurIPS 2026

Accept (poster) · 3 reviews · OpenReview

Updated 25 Nov 2026, 03:46 UTC.

Program Chairs · DecisionOpenReview ↗
Decision
Accept (poster)
Read decision
Meta-review

This paper proposes a differentiable interior-point method for convex quadratic programs in single precision, using an implicit complementarity reparameterization within a solve-relax-differentiate pipeline. The problem is timely and well motivated, and the experiments are a clear strength: the controlled comparisons consistently demonstrate improved gradient accuracy, numerical stability, and practical scalability in single precision across synthetic, bilevel, and end-to-end learning tasks.

At the same time, the reviewers raise several important questions, including, but not limited to, the positioning of the contribution relative to prior implicit-complementarity and differentiable IPM methods, the theoretical justification and scope of the numerical stability claims, and the breadth of the solver-level evaluation.

These concerns appear addressable, and I encourage the authors to carefully address all substantive issues raised in the reviews. A focused and convincing response would substantially strengthen the paper, which already shows considerable practical promise.

Final justification

Having read the authors' response and the subsequent discussion, I consider the main issues raised in the review process to have been addressed, and I therefore revise my recommendation to accept.

Area Chair D4C5 · Meta-reviewOpenReview ↗
Read meta-review
Meta-review

This paper proposes a differentiable interior-point method for convex quadratic programs in single precision, using an implicit complementarity reparameterization within a solve-relax-differentiate pipeline. The problem is timely and well motivated, and the experiments are a clear strength: the controlled comparisons consistently demonstrate improved gradient accuracy, numerical stability, and practical scalability in single precision across synthetic, bilevel, and end-to-end learning tasks.

At the same time, the reviewers raise several important questions, including, but not limited to, the positioning of the contribution relative to prior implicit-complementarity and differentiable IPM methods, the theoretical justification and scope of the numerical stability claims, and the breadth of the solver-level evaluation.

These concerns appear addressable, and I encourage the authors to carefully address all substantive issues raised in the reviews. A focused and convincing response would substantially strengthen the paper, which already shows considerable practical promise.

Final justification

Having read the authors' response and the subsequent discussion, I consider the main issues raised in the review process to have been addressed, and I therefore revise my recommendation to accept.

Reviewer H5vuOpenReview ↗
Rating
4/6
Confidence
4/5
Quality
3/4
Clarity
3/4
Significance
3/4
Originality
3/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

The paper studies the numerical stability of differentiable primal-dual interior-point methods (IPMs) for quadratic programming in single-precision arithmetic. Although IPMs are very strong algorithms for contained programming but they have limited performance in singel precision regime. To address this issue, they propose an alternative implicit representation of the complementarity conditions based on an auxiliary variable and a retraction map, resulting in a modified condensed KKT system whose varying diagonal block remains bounded throughout the optimization process. Building on this formulation, the paper develops a differentiable interior-point framework consisting of three stages: solving the quadratic program, relaxing the solution to a prescribed central-path parameter, and computing gradients through the implicit function theorem. The proposed formulation is integrated into a primal-dual interior-point algorithm and implemented in a differentiable optimization framework. The method is evaluated on several benchmarks, including synthetic gradient-accuracy tests, bilevel trajectory optimization, and end-to-end learning of multi-agent safety filters. The experiments compare the proposed implicit complementarity formulation with a standard explicit primal-dual interior-point formulation under both single- and double-precision arithmetic. The results indicate that the proposed method provides more stable optimization and more accurate gradients in single precision while achieving performance comparable to double-precision implementations on the considered benchmark problems.

Strengths and weaknesses

This paper addresses an important practical challenge in optimization: enabling reliable primal-dual interior-point methods (IPMs) in single-precision arithmetic. The authors argue that the standard treatment of complementarity leads to increasingly ill-conditioned condensed KKT systems near optimality, making both optimization and implicit differentiation unreliable in low precision. To address this issue, the paper introduces an alternative implicit representation of complementarity together with a modified condensed linear system that avoids the explicit diagonal scaling present in conventional formulations. The resulting method is integrated into a differentiable interior-point framework and evaluated on synthetic benchmarks, bilevel trajectory optimization, and differentiable safety-filter learning.

Overall, I found the paper technically sound, well motivated, and clearly written. The proposed formulation is elegant, and the paper identifies a genuine numerical bottleneck that is becoming increasingly relevant as differentiable optimization is deployed on modern GPU hardware optimized for single-precision arithmetic. The experimental evaluation is comprehensive and consistently demonstrates that the proposed formulation substantially improves robustness and gradient quality relative to the standard explicit complementarity formulation in single precision. The paper is also exceptionally well organized, with clear notation, informative figures, and a logical presentation.

My primary reservation concerns the theoretical justification of the proposed formulation. The paper repeatedly motivates the method by stating that the resulting linear system is "spectrally bounded" and therefore avoids the numerical instabilities of conventional IPMs. However, the paper does not provide a rigorous analysis of the spectrum or conditioning of the complete KKT system. While the varying diagonal block is indeed bounded by construction, this alone does not immediately imply that the eigenvalues or condition number of the entire saddle-point system remain bounded. Since improved numerical conditioning is the central motivation of the paper, I believe a more rigorous theoretical analysis, such as eigenvalue bounds, condition number estimates, or factorization stability results, would significantly strengthen the contribution.

I believe the paper occasionally overstates the scope of its contribution. For example, the title suggests a general differentiable interior-point method, whereas the proposed framework is developed and evaluated specifically for quadratic programs. Similarly, parts of the abstract and introduction may leave the impression that the method applies broadly to differentiable optimization, while the current theoretical development and experiments are limited to QPs. In addition, the paper presents the proposed formulation as yielding a "spectrally bounded" system, although this claim is not established through rigorous theoretical analysis of the complete KKT system. Moderating these claims and more clearly emphasizing the current scope of the work would better align the presentation with the actual technical contributions.

The empirical evaluation convincingly isolates the proposed idea by comparing the implicit and explicit complementarity formulations within the same implementation. However, I would have appreciated broader comparisons with modern differentiable optimization software and GPU-oriented solvers to better position the practical advantages of the proposed approach beyond the baseline implementation. In addition, the current work is restricted to quadratic programs, and a more detailed discussion of how the proposed formulation might extend to second-order cone or semidefinite programming would help clarify its broader applicability.

Overall, despite these reservations, I believe the paper presents a meaningful contribution to differentiable optimization. The numerical insight is interesting, the experimental evidence supports the practical claims within the scope considered, and the paper addresses a problem of growing importance for optimization layers in machine learning. Strengthening the theoretical analysis and moderating some of the novelty claims would further improve an already solid contribution.

Questions

1- The implementation employs a relatively simple barrier parameter update. Can the authors comment on how naturally the proposed formulation integrates with Mehrotra predictor-corrector or other state-of-the-art interior-point strategies? Are any modifications required to preserve the numerical advantages of the proposed formulation? 2- The proposed framework is developed for quadratic programs. Can the authors comment on whether the implicit complementarity formulation naturally extends to more general conic optimization problems (e.g., SOCPs and SDPs), and what the main theoretical or algorithmic challenges would be in doing so? 3- One motivation of the paper is enabling reliable single-precision interior-point methods. Another widely used approach for improving numerical stability in low precision is mixed-precision iterative refinement. Recently iterative refinement techniques have been developed for optimization as well. Could the authors discuss how iterative refinement would perform on the standard explicit formulation, and whether it could mitigate the numerical issues identified in this paper?

Limitations

The authors discuss several practical limitations of the current work. However, I believe the manuscript should also explicitly acknowledge a theoretical limitation. The central motivation of the paper is the improved numerical conditioning of the proposed KKT formulation, yet the paper does not provide rigorous theoretical guarantees (e.g., eigenvalue or condition number bounds, or other conditioning results) for the complete linear system. Since the claimed numerical stability is supported primarily through empirical evidence, I encourage the authors to explicitly identify the absence of such theoretical guarantees as a current limitation and an important direction for future work.

Formatting concerns

I did not notice any major formatting, anonymity, or policy violations.

1 comment
Authors · RebuttalOpenReview ↗
Rebuttal

We thank the reviewer for the detailed and constructive assessment. We address the three concerns — the conditioning claim, the scope of the contribution, and the breadth of the solver comparison — and then the three questions.

Conditioning of the complete KKT system (primary reservation, Limitations). The reviewer is right: the manuscript asserts more than it establishes. The sentence in Sec. 4.2 — "the eigenvalues of the linear system remain strictly bounded by the derivative range of the retraction map" — presents a property of one block as if it were a property of the whole system, without stating the assumptions the full claim needs. We will replace it with the argument below.

The starting point is the structure of the reduced system in Eq. (14): all blocks are fixed by the problem data, and the barrier parameter enters in exactly one place, the diagonal block Bκ(−v)B_\kappa(-v). The argument has three steps.

  • The system cannot blow up. The entries of that block always lie strictly between 0 and 1 (Eq. 11b), so the norm of the full matrix never exceeds that of its fixed part plus one, for every κ>0\kappa>0 and without further assumptions. This is precisely what fails in the standard formulation, whose corresponding block D(s⊘z)D(s\oslash z) grows without bound as κ→0\kappa\to0: no barrier-independent bound exists.
  • The system settles down. As κ→0\kappa\to0, the entries of the varying block tend to 0 on active and 1 on inactive inequality constraints, so the block converges to an indicator of the active set and the full matrix to a finite limit — the KKT matrix of the active-set system. Boundedness holds regardless; strict complementarity is what makes this limit sharp.
  • The limit is invertible. Under LICQ and the standard second-order sufficient condition, that limiting matrix is nonsingular; since the matrix approaches it continuously, its smallest singular value stays away from zero for small κ\kappa. With the first step, the condition number of the complete system is bounded uniformly in κ\kappa.

We are equally clear about what this does not give. It is a limiting argument, not a quantitative condition-number bound with explicit constants, and says nothing about factorization stability. It also removes only the complementarity-induced blow-up; ill-conditioning present in QQ, GG, AA is inherited, not cured. As the reviewer suggests, we will state the assumptions and list these missing guarantees as an explicit limitation and future direction.

We also produced direct empirical evidence, measuring the conditioning of the complete reduced KKT matrix along the interior-point trajectory of 150 QPs from the OSQP benchmark (the five classes used below, three sizes, 10 each), solved in f64 at tolerance 1e-5. Both formulations reduce to a symmetric three-block system of the same size N=nx+meq+mineqN=n_x+m_{\mathrm{eq}}+m_{\mathrm{ineq}} (110–4531 here), so their condition numbers are comparable. Per solve we report, as median [p95] over instances, the growth gcond=log⁡10(max⁡kcond2(Kk)/cond2(K0))g_{\mathrm{cond}}=\log_{10}(\max_k\mathrm{cond}_2(K_k)/\mathrm{cond}_2(K_0)) — degradation during the solve — and the worst value cmax⁡=log⁡10max⁡kcond2(Kk)c_{\max}=\log_{10}\max_k\mathrm{cond}_2(K_k).

Class implicit gcondg_{\mathrm{cond}} explicit gcondg_{\mathrm{cond}} implicit cmax⁡c_{\max} explicit cmax⁡c_{\max}
random_qp 2.04 [3.24] 8.13 [9.07] 4.34 [5.56] 9.86 [10.95]
portfolio 3.29 [3.50] 9.91 [10.40] 5.22 [5.54] 11.66 [12.18]
lasso 1.42 [1.65] 8.15 [9.17] 3.30 [3.72] 10.14 [11.17]
svm 1.36 [2.93] 8.13 [9.35] 3.33 [4.86] 9.08 [10.32]
control 0.04 [0.32] 7.29 [8.76] 3.92 [5.35] 11.05 [12.70]

Three points. (i) The separation is systematic, not class-specific: explicit degrades by 7.3–9.9 orders of magnitude during the solve against 0.04–3.3 for implicit, and its worst conditioning is 5.5–7.1 orders higher in every class. (ii) The absolute levels matter in low precision: implicit peaks at 103.310^{3.3}–105.210^{5.2}, leaving margin even in f32 (unit roundoff ≈10−7\approx10^{-7}), whereas explicit peaks at 109.110^{9.1}–1011.710^{11.7}, beyond what f32 can absorb — the failure mode its f32 success rates below exhibit. (iii) On control, implicit growth is essentially zero (0.04) — no iterate worse conditioned than the initialization, precisely the barrier-independence the argument predicts — while explicit reaches 101110^{11}. No solve of either formulation failed or went singular in f64. We keep this brief for space; if solicited, we are glad to share code and logs.

Scope: convex QPs, and what carries over to other cones (scope concern, Q2). We agree the framing is too general for what is developed. Sec. 1 restricts the scope — extensions to other convex cones are beyond the present work — but the abstract and contribution list do not, and we will make the convex-QP scope explicit there and in the introduction.

On the extension itself: the IPM design (Algorithm 1) and the differentiability pipeline (Algorithms 2–3) carry over to other symmetric cones unchanged; only the retraction map bκb_\kappa is cone-dependent.

  • SOCP. Replace componentwise complementarity by the Euclidean Jordan product z∘s=κez\circ s=\kappa e per block, and set z=bκ(v)z=b_\kappa(v), s=bκ(−v)s=b_\kappa(-v) with bκ(v)=12(v+v∘v+4κe)b_\kappa(v)=\tfrac12\bigl(v+\sqrt{v\circ v+4\kappa e}\bigr), the square root taken in the Jordan algebra, i.e. ϕκ(t)=12(t+t2+4κ)\phi_\kappa(t)=\tfrac12\bigl(t+\sqrt{t^2+4\kappa}\bigr) acting on the spectral values of vv. This preserves bκ(v)−bκ(−v)=vb_\kappa(v)-b_\kappa(-v)=v and bκ(v)∘bκ(−v)=κeb_\kappa(v)\circ b_\kappa(-v)=\kappa e, as in the QP case.
  • SDP. Replace it by X∘S=12(XS+SX)=κIX\circ S=\tfrac12(XS+SX)=\kappa I and set X=Bκ(V)X=B_\kappa(V), S=Bκ(−V)S=B_\kappa(-V) with V=X−SV=X-S and Bκ(V)=12(V+V2+4κI)B_\kappa(V)=\tfrac12\bigl(V+\sqrt{V^2+4\kappa I}\bigr), the principal matrix square root, i.e. ϕκ\phi_\kappa applied to the eigenvalues of VV.

The cost, however, does not carry over. The QP/LP retraction is diagonal and O(m)O(m); the SOCP retraction is linear in cone size but has a structured non-diagonal Jacobian; the SDP retraction is spectral, costing O(∑jnj3)O(\sum_j n_j^3) over PSD blocks. We therefore treat the QP case as the foundation rather than claiming the general conic result: the representation is cone-general, the efficient instantiation is not yet. We will add a compact discussion to the main text and detail in the appendix.

Comparison against modern differentiable and GPU solvers. We agree the controlled ablation does not position the method against external solvers. During the rebuttal we ran a new evaluation over the same OSQP benchmark classes at five sizes, 20 instances per size (500 QPs), also provided to Reviewer qWMt, adding cuclarabel (GPU interior-point) and boxosqp (GPU ADMM, differentiable) to the explicit baseline — separate implementations, so explicit remains the only fully controlled comparison. Every solution is re-verified externally in f64, and a solve succeeds only if the complete KKT residual meets the requested tolerance. In f64 all four solve 500/500 at every tolerance. In f32:

Tol implicit f32 explicit f32 cuclarabel f32 boxosqp f32
1e-3 500/500 (100%) 496/500 (99.2%) 498/500 (99.6%) 460/500 (92.0%)
1e-5 500/500 (100%) 272/500 (54.4%) 486/500 (97.2%) 460/500 (92.0%)
1e-6 497/500 (99.4%) 154/500 (30.8%) 413/500 (82.6%) 384/500 (76.8%)

As the tolerance tightens the gap widens: at 1e-6, implicit f32 succeeds on 497/500 (99.4%), against 413/500 for the best external solver and 154/500 for explicit, with a median relative objective error of 3.1e-8. Its three misses remain finite (worst external KKT residual 2.83e-6, no NaNs). We report the cost openly: it is 2.2–5.4× slower than explicit f32, largely implementation-bound. See our response to Reviewer qWMt for dimensions, timings, and full analysis; we will add a dedicated benchmark subsection.

Q1 — Mehrotra predictor–corrector and other IPM strategies. No modification is required to preserve the numerical properties. The corrector reuses the same matrix KκK_\kappa with a second right-hand side, and Bκ(−v)B_\kappa(-v) depends only on the iterate and κ\kappa, so centering and corrector heuristics change the right-hand side, not the spectrum of the factorized system, leaving the argument above unaffected. Sec. 5.1 already notes that the constant-σ\sigma update extends to adaptive schemes.

We did implement a Mehrotra-like predictor–corrector, with one observation worth recording: because zz and ss come from the retraction, an aggressive affine predictor targeting κ≈0\kappa\approx0 degrades the corrector step and stalls progress. With a less aggressive predictor it contributed little, so we removed it and kept the simple update; we will document this in the appendix.

Q3 — mixed-precision iterative refinement. Refinement would help the explicit formulation, but it targets a different failure mode. Factorizing in f32, evaluating the residual in f64, and repeatedly solving correction equations with the same factors reduces the error in solving a given linear system; it does not change D(s⊘z)D(s\oslash z), whose entries still tend to zero or infinity as κ→0\kappa\to0. Refinement can therefore delay the loss of accuracy, but stagnates once the f32 factorization is too inaccurate as a preconditioner, and cannot recover from overflow or underflow incurred while forming or applying the system — the regime in which explicit f32 returns outright NaNs in Fig. 1 (bottom row).

The two are thus complementary rather than competing: refinement corrects a computed solution, whereas our formulation removes the complementarity-induced spectral divergence in the first place, and the two can be combined. We will discuss this in the related work.

We hope this resolves the theoretical, scope, and evaluation concerns, and welcome further questions.

Reviewer qWMtOpenReview ↗
Rating
5/6
Confidence
4/5
Quality
3/4
Clarity
4/4
Significance
3/4
Originality
2/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

The paper addresses a timely and very relevant problem: How to better exploit hardware accelerators (more and more geared towards single precision) for optimization. In particular, they focus on the interior point method, which has typically relied on double precision because of instabilities close to the solution. For this, they use a different complementarity condition, bypassing the unstable numerics and obtaining a more stable algorithm suitable for single-precision hardware.

Strengths and weaknesses

Strengths:

  1. Very well written paper. It was extremely easy to understand and almost typos free. I appreciate a lot the effort the authors put to make this paper almost flawless from an exposition perspective, and the way to conduce their ideas so clearly.

  2. Very timely and well-motivated problem setting, with an elegant solution.

Weaknesses:

  1. Positioning cf. existing literature. Some works even briefly cited by the authors contain several of the ideas discussed in this work, and it is not clear to me what is the contribution of the authors. See e.g., https://arxiv.org/pdf/2604.00364.

  2. Clarity of the contributions. Related to the point above, it is not very clear what the contributions are.

  3. Experimental evidence. I was surprised to see the lack of any experiments along the lines of established evaluation methodologies for QPs. See eg the entire section 8 of the OSQP paper: https://arxiv.org/pdf/1711.08013. Rather, the paper chooses "examples" over extensive numerical assessments. From such a work, I would expect to see reported relative suboptimality, constraint violation, etc very clearly and over established benchmarks. See also the recent ICLR oral: https://arxiv.org/pdf/2508.10480.

Unfortunately the weaknesses make me judge the paper negatively from a contribution perspective, but if the authors could address these I would strongly reconsider my judgement as I believe the paper headline and exposition is admirable.

Questions
  1. Can the authors clearly position their work against existing literature? In particular wrt what has been done for single-precision methods, the implicit reformulation, and differentiable interior point methods. There seems to be very relevant work cited by the authors, so a better and more extensive positioning seems necessary.

  2. Can the author better motivate the part: "particularly when high-accuracy solutions are essential"? It is confusing, since it seemed the whole point of the paper is reducing to single precision. Now, there is a difference between tolerance and numerical precision, but nonetheless this part needs to be better outlined. More on this, the authors could better motivate the importance of using interior point methods in single precision by comparing to other methods, and ideally providing a class of problem where having single-precision interior point methods is superior to alternatives. Also, can the authors clarify the tolerances used? By inspecting the code it looks like there is a mismatch between f32 and f64, but I may have overlooked something. If the tolerances are 1e-3, this is not in line with the high-accuracy discussion above.

  3. Can the author provide more standard benchmark results? See the weaknesses above. I am interested, e.g., in relative suboptimality, constraint violation, wall-clock time. Moreover, the benchmarks (and the existing examples) should quantify precisely the number of optimization variables and equality-inequality constraints. This is very standard in optimization.

Other minor comments:

  1. relaxation.Importantly -> missing a space
  2. The tolerance-relaxation pairs in are -> I suppose something like "the ablation" or "the sweep" are missing after "in".
  3. In the introduction, it seems to me that the authors skip a possibly very important application of their method (and very related literature) in the context of differentiable layers in neural networks (e.g., https://arxiv.org/abs/1703.00443, https://arxiv.org/abs/2112.07464) and hard-constrained neural networks as convex solvers (e.g., https://arxiv.org/pdf/2508.10480). Perhaps these work should be mentioned and ideally compared to (to, e.g., motivate why interior point methods).
  4. the word "novel" in the contributions is unnecessary.
Limitations

Only very very briefly. I think the authors only mention the limitations related to the scope of applicability (quadratic programs, which was also the scope of a related work cited: https://arxiv.org/abs/2604.00364).

The authors may expand on:

  1. Computational cost / memory requirements: are there any tradeoffs stability-accuracy? If not, why not using this generally, not only in single precision.
  2. Explain more how this would be applied beyond QPs (an appendix outlining future work), or what does not work or if it is unclear how.

Currently, the work is also limited by experimental evidence (see above), although that limitation should be addressed in a revised version rather than outlined as limitation.

Final justification

The answers thoroughly address all my concerns. To be honest, I would love to see the revised manuscript to be absolutely confident of my score increase. I am uncertain between 4 and 5 for this reason, leaning to 5 because anyway this discussion will be public.

Formatting concerns

None

2 comments
Authors · RebuttalOpenReview ↗
Rebuttal

We thank the reviewer for the careful reading and constructive framing.

Positioning and contribution (Weaknesses 1–2, Q1). We agree that the manuscript cites the relevant literature but does not clearly separate the three research threads or delimit our contribution relative to each. We will add a dedicated related-work paragraph and revise the contribution statement.

  • Single- and mixed-precision optimization [46–49,56]. Prior work accelerates linear algebra, applies iterative refinement, or exploits GPU parallelism while retaining the conventional primal-dual complementarity condition. The conventional condensed system still contains the diverging D(s⊘z)D(s\oslash z) scaling as the barrier parameter approaches zero. We remove this barrier-dependent coefficient divergence and evaluate both the solver and its derivatives in native f32.
  • Implicit complementarity [50–52]. Reference [51] is the direct algorithmic foundation of this work: it introduced the softplus retraction and the bounded QP KKT formulation. We will make this dependence explicit. Relative to the exponential parameterization of [50], the softplus map has bounded derivatives; [52] targets nonconvex LCQPs rather than differentiable convex QP layers or single precision.
  • Differentiable IPMs [26–29]. OptNet and differentiable cone-programming layers established implicit differentiation through optimization; [29] introduced central-path relaxation for smooth derivatives. We claim neither implicit differentiation nor relaxation as new.

Our contribution lies at the intersection: an end-to-end differentiable interior-point pipeline that solves and differentiates convex QPs reliably in native single precision, while reusing the same implicit-complementarity KKT structure across the forward, relaxation, and backward solves.

Standard benchmark results (Weakness 3, Q3). We acknowledge that the paper's experiments focus primarily on the downstream consequences of computing gradients. We therefore ran a new forward-solve evaluation over five standard QP classes from the OSQP benchmark, spanning five problem sizes and 20 random instances per size, for a total of 500 QPs. We will add this as a dedicated subsection and report the exact dimensions of all existing examples.

Besides the controlled explicit baseline, we include two representative GPU-native implementations: cuclarabel (interior-point) and boxosqp (ADMM).

All returned solutions are reevaluated externally in f64 using the original problem data. A solve counts as successful only if the maximum of the recomputed primal-feasibility, dual-feasibility, relative duality gap, complementarity, and dual-nonnegativity residuals is below the requested tolerance. Median solve times are computed over all attempted instances, including runs that did not reach the requested tolerance, and exclude compilation. Every instance is solved at three tolerances—1e-3, 1e-5, and 1e-6. Problem dimensions:

Class Sizes Inst./size n_x m_eq m_ineq
random_qp 10, 15, 22, 33, 50 20 10–50 0 100–500
portfolio 5, 7, 9, 12, 15 20 505–1515 6–16 1000–3000
lasso 5, 7, 9, 12, 15 20 510–1530 500–1500 10–30
svm 10, 13, 17, 23, 30 20 1010–3030 0 2000–6000
control 10, 13, 17, 23, 30 20 160–480 110–330 320–960

We first verified that the benchmark is sound: in f64, all four solvers succeed on 500/500 instances at every tolerance. In f32:

Tol implicit f32 explicit f32 cuclarabel f32 boxosqp f32
1e-3 500/500 (100%) 496/500 (99.2%) 498/500 (99.6%) 460/500 (92.0%)
1e-5 500/500 (100%) 272/500 (54.4%) 486/500 (97.2%) 460/500 (92.0%)
1e-6 497/500 (99.4%) 154/500 (30.8%) 413/500 (82.6%) 384/500 (76.8%)

At tolerance 1e-6, implicit f32 succeeds on 497/500 problems (99.4%), compared with 154/500 (30.8%) for explicit f32. The three unsuccessful implicit runs remain finite, with a worst externally evaluated KKT residual of 2.83e-6 and no NaNs. Across all returned implicit f32 solutions, the median relative objective error is 3.1e-8, constraint violation 6.0e-8, and dual residual 1.2e-7. The largest differences between the implicit and explicit formulations occur on portfolio, SVM, and control: explicit solves 0/100 instances in each class, compared with 99/100, 100/100, and 98/100 for implicit.

Median f32 solve time at tol=1e-6, with the slowdown factor relative to explicit f32 in parentheses:

Class implicit f32 explicit f32 cuclarabel f32 boxosqp f32
random_qp 8.3 ms (2.3×) 3.6 ms 37.3 ms (10.4×) 726.7 ms (204×)
portfolio 177.2 ms (3.4×) 52.0 ms 73.7 ms (1.4×) 1405.6 ms (27×)
lasso 154.9 ms (2.2×) 71.9 ms 53.1 ms (0.7×) 2394.3 ms (33×)
svm 396.4 ms (5.4×) 73.5 ms 74.0 ms (1.0×) 3839.5 ms (52×)
control 50.0 ms (2.4×) 20.6 ms 44.3 ms (2.1×) 835.3 ms (41×)

The runtime and success results must be interpreted jointly. Explicit has the lowest median runtime on four of the five classes, but fails on most instances at tolerance 1e-6, where its runs terminate at the iteration cap rather than at a solution. cuclarabel is faster than the current implicit implementation on several classes, while attaining a lower f32 success rate at the tightest tolerance. boxosqp is substantially slower in this benchmark, with runs reaching its 20,000-iteration cap. These external-solver comparisons reflect both algorithmic and implementation differences; the controlled explicit–implicit comparison remains the direct ablation of complementarity handling.

If solicited, we are glad to share the detailed per-instance logs and the benchmark code through the official channel.

Tolerance mismatch (Q2). The reviewer is right that the settings differ, though the split is by formulation rather than by precision: in the safety-filter experiment the implicit solver uses solver_tol=1e-8 and κrelax=1e-4 in both f64 and f32, while the explicit baseline uses 1e-3 and 1e-3 in both, loosened so that the conventional formulation remains operational. In the gradient-quality experiments the tolerance does depend on precision (1e-8 in f64, 1e-4 in f32). We will state both settings and their motivation explicitly. The new benchmark removes the ambiguity by applying the same requested tolerances to every solver and verifying every returned solution externally.

Arithmetic precision vs. solution accuracy (Q2). These are distinct: f32 is the numerical format, while accuracy is measured by primal, dual, and complementarity residuals. An f32 solver can target tight tolerances provided that its underlying linear systems remain sufficiently well conditioned. In a conventional IPM, complementarity scaling increasingly ill-conditions the KKT system near the solution, causing f32 to stagnate before reaching an accuracy otherwise attainable in that format. Our formulation removes this source of barrier-dependent ill-conditioning. We will delete "particularly when high-accuracy solutions are essential" and instead describe the goal as retaining rapid IPM convergence and small primal-dual residuals within the numerical limits of f32.

Why an IPM in single precision, vs. alternatives (Q2, minor 3). We do not claim that IPMs are universally preferable. First-order methods remain appropriate for very large or loose-tolerance problems, while active-set methods can be effective for small, strongly warm-started QPs. Our target regime is batched, medium-scale QPs embedded in differentiable learning and control, where small residuals and reliable derivatives are valuable. In the new benchmark, boxosqp provides a representative first-order baseline: it is both slower and less reliable at the tightest tolerance. The safety-filter experiment additionally demonstrates the target application—a differentiable hard-constrained layer for which implicit f32 trains reliably and permits twice the f64 batch size. OptNet is already cited [27]; we will add the differentiable-layer and hard-constrained-network works suggested by the reviewer and expand the introduction accordingly.

Limitations.

  • Cost / stability tradeoff. At tol=1e-6, implicit misses 3/500 instances, but its successful runs meet the same externally checked criterion; the main observed tradeoff is runtime. It is 2.2–5.4× slower than explicit f32 on this metric, although explicit frequently fails, so the ratio is not accuracy-matched. Equation (14) can introduce Q−G⊤GQ-G^\top G fill-in, while the prototype uses dense LU and does not exploit problem structure. The gap therefore combines structural and implementation costs; improved sparse or tailored LDL$^\top$ linear algebra can reduce, but not eliminate, it — the dense LU can be replaced by a sparse solver (cuDSS) or a tailored LDL$^\top$ factorization in the spirit of OSQP, as discussed in [51]; this linear-solver engineering is out of scope. We will state this tradeoff explicitly in the main text.
  • Beyond QPs. As detailed to Reviewer H5vu, the three-stage architecture extends conceptually to symmetric cones, but the cone-specific retraction, its Jacobian, and the condensed KKT system must be re-derived. For SDPs the retraction is spectral and substantially costlier; an equally efficient and well-conditioned conic realization is not established here. We will add a compact discussion to the main text and a detailed treatment in the appendix.

Minor corrections (minors 1, 2, 4). We will fix the missing space in "relaxation.Importantly", complete the sentence to "…the solver tolerance and relaxation parameters used in the sweep are…" (Eqs. 51–52), and remove "novel" from the contributions.

Reviewer qWMt · CommentOpenReview ↗

Answer to authors

I thank the authors for their complete and convincing answer. I believe that these additions will substantially improve the paper and I will adjust my score accordingly.

Reviewer nJn8OpenReview ↗
Rating
4/6
Confidence
4/5
Quality
3/4
Clarity
3/4
Significance
2/4
Originality
2/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

This paper introduces a differentiable interior-point method in single precision. Special care is taken of the complimentarity constraints using an implicit formulation. Numerical examples include trajectory optimization and a multi-agent safety filter.

Strengths and weaknesses

Conclusion: Open questions remain, prior work not well cited. The algorithm is not well presented and not critically analyzed. Its limitations are not stated sufficiently.

Strengths:

  • The paper tackles an important problem of providing a differentiable solver that can be used in downstream machine learning tasks.

Weaknesses:

  • Prior work that does similar things is not properly cited. Only [50]-[52] are cited for that. Two of those are preprints. The oldest is from 2023
  • Other work that followed similar approach of replacing complementarity condition with a nonlinear function includes:
    • "FBstab: A proximally stabilized semi-smooth algorithm for convex quadratic programming" - Dominic Liao-McPherson, Ilya Kolmanovsky, Automatica 2020.
    • "A semi-smooth equation approach to the solution of nonlinear complementarity problems"
  • It should be discussed more cleanly what sensitivities are computed by stating the perturbed problem.
  • Limitation of problem class is not discussed:
    • First sentence of Sec 2.1 should say"convex" QP, instead of just QP.
    • In fact, the approach seems to be limited to strictly convex problems, as positive definiteness of the Hessian is assumed.
  • Difficulties of QP, such as indefiniteness and infeasibility are not discussed.
  • Does the semi-smooth approach result in the same convergence behavior as classic IPMs?
  • Other IPM QP solvers that do implement single precision are not mentioned. e.g. HPIPM.

Minor Points:

  • eq (6), maybe should mention that fraction to boundary has to be used. the maximum stepsize given in (6) results in non-negativity. But in IPMs actually positivity of s, z is needed.
  • "or rapidly changing active sets" - what does this mean? change from inactive to active is always nonsmooth.
  • "2. Relax the converged solution to a central path parameter κrelax ." -> how is this done from an exact QP solution? Not clear. Why is this 3 step approach used? What are benefits compared to directly using the smooth solution map + consistent solution sensitivities?
  • "Furthermore, the additional linear solves required for differentiation increase exposure to the same numerical instabilities, compounding the risk of inaccurate gradients or solver failure." -> Why should this be the case? If the corresponding linear system corresponding to sens. computation uses a larger value κ\kappa, it is less prone to this difficulty. The sentence seems to be added to give increase the importance of the contribution, without reasoning.
  • Line 143: inconsistent notation of diag matrix wrt previous section.
  • "(ii) all of its block components remain constant across iterations, with the sole exception of Bκ (−v)" -> not clear how this is/ can be exploited or relates to the second part of the sentence. The matrix needs to be factorized anyway.
  • Algorithm 1,2:
    • bit unclear, could be represented more cleanly, maybe without Algorithm environment.
    • Alg. 2, Step 7: If smooth solution is there, the algorithm as described exits without computing a relaxed one
    • should evaluate_residuals not compute the normal residuals in an IPM: (3), but the smoothed condition (4) instead of (3b)? should the function depend on κ\kappa?
    • linesearch via eq (6): if it is an explicit formula, I would not call it linesearch. Also, do you really go to 0, as stated in (6)? What does this result in for the "implicit" complementarity condition? In normal IPMs this would lead to ill-defined linear system.
    • In Algorithm 3, ∇xℓ\nabla_x \ell suddenly appears in the inputs, without being previously introduced.
  • Experiments: "we compare standard IPMs" -> what are standard IPMs? is it just using your own implementation or something else?
Questions
Limitations
  • "Justification: The main limitation is that our method, in its current form, is only applicable to QPs, which we clearly state in Section 1."
  • Should be convex QPs!
  • Potential downsides of implicit complementarity not mentioned.
  • There are various typos: e.g. "ation.Importantly," -- space missing.
Final justification

The rebuttal addresses most of my concerns, thus given the other positive reviews I am open to accept this paper, and raise my score accordingly, given that the authors carefully update the paper as promised.

Formatting concerns

none

2 comments
Authors · RebuttalOpenReview ↗
Rebuttal

We thank the reviewer for the detailed and critical reading.

Prior work and novelty. We will cite and discuss FBstab (Liao-McPherson and Kolmanovsky, 2020) and the semismooth-equation approach of De Luca et al. Both reformulate exact complementarity via nonsmooth NCP functions, including Fischer–Burmeister-type maps, solved by semismooth Newton methods; FBstab adds proximal stabilization. We instead parameterize the perturbed condition s⊙z=κ1s\odot z=\kappa\mathbf{1} by z=bκ(v)z=b_\kappa(v), s=bκ(−v)s=b_\kappa(-v): for every κ>0\kappa>0 this is smooth, preserves strict positivity, and replaces the unbounded si/zis_i/z_i scaling of the conventional condensed system with factors si/(si+zi)s_i/(s_i+z_i) and zi/(si+zi)z_i/(s_i+z_i) in (0,1)(0,1). Ours is therefore not the first nonlinear representation of complementarity, but one designed to remove complementarity-induced coefficient divergence in single-precision solution and differentiation.

We will also restructure the related work to separate the three threads the paper draws on — single- and mixed-precision optimization, implicit complementarity, and differentiable IPMs — delimiting our contribution against each, as detailed to Reviewer qWMt. We claim neither implicit differentiation, central-path relaxation, nor the softplus retraction as new; the contribution is the end-to-end pipeline that solves and differentiates convex QPs in native f32 using the same implicit-complementarity KKT structure throughout.

Strength of the conditioning claim. We should equally be precise about what those bounded factors establish: bounded entries in one block are not a statement about the complete system, and the manuscript asserts more than it proves. We will correct that sentence and state the assumptions for a uniform bound, detailed to Reviewer H5vu, together with measurements along the interior-point trajectory of 150 benchmark QPs: conditioning degrades during the solve by 0.04–3.3 orders of magnitude for implicit against 7.3–9.9 for explicit. It is a limiting argument, not a quantitative bound, and ill-conditioning in QQ, GG, AA is inherited, not cured. We will list these gaps as an explicit limitation.

Sensitivities being computed. The forward pass solves the original QP to a tight tolerance; the backward pass holds κrelax>0\kappa_{\mathrm{relax}}>0 fixed and computes the exact implicit sensitivities of

minimize⁡x,s>012x⊤Qx+q⊤x−κrelax∑ilog⁡sisubject toAx=b,Gx+s=h.\begin{aligned} \underset{x,s>0}{\operatorname{minimize}}\quad & \frac{1}{2}x^\top Qx+q^\top x -\kappa_{\mathrm{relax}}\sum_i\log s_i \\ \text{subject to}\quad & Ax=b,\qquad Gx+s=h. \end{aligned}

Its KKT conditions satisfy s⊙z=κrelax1s\odot z=\kappa_{\mathrm{relax}}\mathbf{1}, so the backward pass returns ∂xκrelax/∂θ\partial x_{\kappa_{\mathrm{relax}}}/\partial\theta with θ=(Q,q,A,b,G,h)\theta=(Q,q,A,b,G,h) and κrelax\kappa_{\mathrm{relax}} constant: exact sensitivities of the perturbed problem, not exact derivatives of the generally nonsmooth original-QP solution map.

Problem class and regularity assumptions. We will replace “QP” with “convex QP” where appropriate. The manuscript assumes Q⪰0Q\succeq0, not Q≻0Q\succ0, so strict convexity is not required. Unique classical sensitivities instead require nonsingularity of the perturbed KKT Jacobian: with AA of full row rank, that Q+G⊤D(z⊘s)GQ+G^\top D(z\oslash s)G be positive definite on null⁡(A)\operatorname{null}(A), which can hold even for singular QQ. When it fails, unique sensitivities require regularization or a selection rule. We will add these assumptions.

Indefinite QPs are outside scope, and the method assumes a feasible convex QP without infeasibility detection; we will state both limitations explicitly. As detailed to Reviewer H5vu, the three-stage architecture extends conceptually to other symmetric cones, but the cone-specific retraction, its Jacobian, and the condensed KKT system must be re-derived; an equally efficient and well-conditioned conic realization is not established here.

Convergence behavior. Ours is not a semismooth Newton method: for every κ>0\kappa>0, bκ(v)b_\kappa(v) is smooth and we take ordinary Newton steps within a primal-dual path-following scheme. For fixed κ>0\kappa>0 the parameterization is equivalent to the conventional perturbed condition, so both target the same central-path point and Newton iterations retain local quadratic convergence under the usual nonsingularity assumptions. The coordinate change nevertheless alters the iterates and globalization, so we claim neither identical global convergence nor the polynomial iteration-complexity guarantees of classical short-step IPMs. Further empirical observations, including a Mehrotra-like predictor–corrector, are reported to Reviewer H5vu.

Existing single-precision IPMs and external comparison. We agree HPIPM and other single-precision IPM implementations should be cited; we do not claim the first IPM capable of executing in f32.

The submitted evaluation does not position the method against external solvers, which we accept. We ran a new forward-solve evaluation over five standard OSQP benchmark classes (500 QPs, five sizes per class, three tolerances), adding cuclarabel (GPU interior-point) and boxosqp (GPU ADMM) to the controlled explicit baseline. Every solution is re-verified externally in f64, counting as successful only if the complete KKT residual meets the requested tolerance. In f64 all four solvers succeed on 500/500 at every tolerance. In f32:

Tol implicit f32 explicit f32 cuclarabel f32 boxosqp f32
1e-3 500/500 (100%) 496/500 (99.2%) 498/500 (99.6%) 460/500 (92.0%)
1e-5 500/500 (100%) 272/500 (54.4%) 486/500 (97.2%) 460/500 (92.0%)
1e-6 497/500 (99.4%) 154/500 (30.8%) 413/500 (82.6%) 384/500 (76.8%)

The three unsuccessful implicit runs remain finite (worst external KKT residual 2.83e-6, no NaNs). Dimensions and timings are given to Reviewer qWMt; we will add a dedicated benchmark subsection and can share code and logs.

Relaxation and the three-stage pipeline. The relaxation does not begin from an exact κ=0\kappa=0 solution: the forward IPM terminates at a strictly interior iterate with small positive κ⋆=(s⊤z)/p\kappa^\star=(s^\top z)/p, and the relaxation stage increases κ\kappa to κrelax\kappa_{\mathrm{relax}} while preserving s,z>0s,z>0 and s⊙z=κ1s\odot z=\kappa\mathbf{1}. A fully consistent smooth layer could return and differentiate xκrelaxx_{\kappa_{\mathrm{relax}}}; we instead return a high-accuracy approximation of the original QP solution while using the derivative of xκrelaxx_{\kappa_{\mathrm{relax}}} in the backward pass. This decouples forward accuracy from gradient smoothing, at the cost of a backward derivative that is deliberately a relaxed surrogate rather than the derivative of the returned solution. The reviewer is likewise right that the claim that differentiation solves are intrinsically more exposed to ill-conditioning is misleading — the system at larger κrelax\kappa_{\mathrm{relax}} is better conditioned — and we will remove it.

Algorithmic and presentation corrections.

  • Eq. (6) and interiority: we will use the fraction-to-boundary step α=min⁡(1,ηαmax⁡)\alpha=\min(1,\eta\alpha_{\max}) with η=0.99\eta=0.99, and call it a step-size rule rather than a line search. Interiority is structural: s,zs,z come from the retraction and stay positive for every κ>0\kappa>0, with Bκ(−v)∈(0,1)B_\kappa(-v)\in(0,1) by Eq. (11b), so the system does not become ill-defined; the rule is a conservative safeguard.
  • Residual evaluation: the pseudocode is ambiguous: Alg. 1, line 8 cites (3), which we will correct. We will define the Newton residual explicitly as (rt,re,ri,rz,rs,rκ)(r_t,r_e,r_i,r_z,r_s,r_\kappa), with rκ=κ−κtargetr_\kappa=\kappa-\kappa_{\mathrm{target}}. Algorithm 2 uses κtarget=κrelax\kappa_{\mathrm{target}}=\kappa_{\mathrm{relax}} in both the stopping test and Newton step, so it cannot exit before reaching the relaxed point; the unperturbed complementarity residual (3b) is not its stopping criterion.
  • Algorithms: we agree 1–2 are hard to read, and will restructure them as a compact description of the forward solve and relaxation with the shared linear system stated once. In Algorithm 3 we will define ℓ\ell as a downstream scalar loss and ∇xℓ\nabla_x\ell as its incoming adjoint, and use D(⋅)D(\cdot) consistently.
  • Factorization reuse: the changing block Bκ(−v)B_\kappa(-v) does require a new numerical factorization; the fixed sparsity pattern permits reuse of symbolic analysis and orderings, and the final factorization at κrelax\kappa_{\mathrm{relax}} is reused for the backward solve.
  • Wording: “rapidly changing active sets” becomes “parameters near active-set transitions, where the hard-QP derivative changes discontinuously”; “standard IPMs” becomes “the conventional explicit-complementarity primal-dual IPM baseline” — same framework, initialization, stopping criteria, precision, and differentiation pipeline, differing only in the complementarity representation. We will fix the identified typos.

Limitations. Eq. (14) contains Q−G⊤GQ-G^\top G, which can introduce fill-in when QQ and GG are sparse, and retains the pp-dimensional variable vv; it can therefore be larger and costlier to factorize than a conventional fully condensed system. As reported to Reviewer qWMt, the current implementation has a median solve time 2.2–5.4× that of explicit f32, though explicit fails on most instances at the tightest tolerance, so the ratio is not accuracy-matched. The observed gap combines structural fill-in with prototype implementation choices: improved sparse or tailored LDL$^\top$ linear algebra (cuDSS, or an LDLᵀ factorization) can reduce it, but cannot remove the fill-in intrinsic to this condensation. The method thus trades sparsity, factorization efficiency, and forward/backward derivative consistency for improved low-precision reliability. We will state this tradeoff, with the assumptions and gaps above, in the main text.

Reviewer nJn8 · CommentOpenReview ↗

I apologize for the late reply. The rebuttal addresses most of my concerns, thus given the other positive reviews I increase my score, given that the authors carefully update the paper as promised.

From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.

Missing a submission?

Loading the discussion…