atlas

Research map / Learning theory and algorithms / Combinatorial and search optimization

Differentiation Through Black-Box Quadratic Programming Solvers

NeurIPS 2025 · Learning theory and algorithms › Combinatorial and search optimization · approach: Learning branch-and-cut for MILP · 1 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Introduces dQP, a solver-agnostic differentiable QP layer that uses the active set to reduce the KKT system to a symmetric equality-constrained solve for both solution and derivatives, usable with any black-box QP solver via qpsolvers.

Problem

Differentiating the solution of quadratic programs with respect to their parameters is tied to specific integrated solvers, limiting use in neural layers and bi-level optimization, especially for large sparse problems.

Approach

Once the active inequality set is identified from any solver's primal solution, the QP is locally equivalent to an equality-constrained QP, so both the primal-dual solution and its derivatives follow from explicit linear systems sharing one symmetric KKT matrix; this decouples solving from differentiation.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use dQP with the best-performing QP solver selected per problem instead of the compared differentiable QP methodsDifferentiable QP solving on the Maros-Meszaros dataset · Maros-Meszaros (MM), 129 sparse problemsproblems solved: 129 vs 77 (QPLayer), 55 (SCQPTH), and 38 (OptNet)Helped
Use dQP with the best-performing QP solver selected per problem instead of the compared differentiable QP methodsDifferentiable QP solving on the Maros-Meszaros dataset · Maros-Meszaros (MM), full datasetAvg Total [ms]: 1467 vs 15721 (QPLayer), 22895 (SCQPTH), and 41468 (OptNet)Helped
Use dQP with the best-performing QP solver selected per problem instead of the compared differentiable QP methodsDifferentiable QP solving on the Maros-Meszaros dataset · Maros-Meszaros (MM), full datasetduality gap: 7.39 \times 10^{-6} vs 2.21 \times 10^{-2} (QPLayer), 2.36 \times 10^{-3} (OptNet), and 1.81 \times 10^{-2} (SCQPTH)Helped
Use dQP instead of OptNet for probability simplex projectionDifferentiable QP projection · Probability simplex projection, large problem sizesTime [ms]: 476.64 vs 70856.43 at size 10000 (OptNet); OptNet failed at size 100000Helped
Use dQP instead of OptNet for chains projectionDifferentiable QP projection · Chains projection, size 10000Time [ms]: 224.89 vs 571710.06Helped
Use dQP instead of OptNet for chains projectionDifferentiable QP projection · Chains projection, size 10000Accuracy: 4.29 \times 10^{-5} vs 1.98 \times 10^{-7}Mixed

Surprising findings

Limitations

Experimental setup

Datasets: Maros-Meszaros

Benchmarks: Maros-Meszaros QP Benchmark

Metrics: total forward+backward time duality gap solved count

Baselines: OptNet QPLayer SCQPTH CVXPYLayers BPQP

Builds on: OptNet qpsolvers CVXPYLayers QPLayer BPQP

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy