An Efficient Unsupervised Framework for Convex Quadratic Programs via Deep Unrolling

Linxin Yang, Bingheng Li, Tian Ding, Jianghua Wu, Akang Wang, Yuyi Wang, Jiliang Tang, Ruoyu Sun, Xiaodong Luo · Submission to ICLR 2025 · Withdrawn

TL;DR

This paper introduces PDQP-Net, an algorithm-unrolled neural network that mirrors the matrix-free Primal-Dual Hybrid Gradient algorithm for convex Quadratic Programs (PDQP). By pairing this architecture with an unsupervised, KKT-informed loss function, the method bypasses the need for costly solver-generated training labels and avoids the massive duality gaps typical of supervised learning. Using PDQP-Net's predictions to warm-start the PDQP solver accelerates convergence by up to 45% on in-distribution benchmarks and up to 31% on out-of-distribution instances.

What Problem Does This Paper Address?

Convex Quadratic Programs (QPs) appear everywhere—from portfolio optimization and control engineering to machine learning (like SVMs). Classic second-order interior-point methods struggle to scale to massive problems due to the computational bottleneck of factorizing large matrices. First-order methods like PDQP are truly matrix-free and scale much better, but they often suffer from a "long tail" requiring thousands of iterations to converge.

While learning-to-optimize (L2O) frameworks have attempted to predict initial solutions to warm-start solvers, existing approaches are almost entirely supervised. This poses two major roadblocks:

  1. Label generation is expensive: Running high-precision solvers over large datasets to get training targets is computationally prohibitive.
  2. The "near-solution, massive-gap" trap: In QPs, even if a predicted solution is geometrically close to the optimum in $\ell_2$ distance, the quadratic objective term ($\frac{1}{2}x^\top Q x$) can drastically inflate the primal-dual optimality gap, rendering the warm start ineffective.

Methods

The authors introduce an end-to-end unsupervised pipeline combining neural architecture unrolling with optimization theory:

  • PDQP-Net Architecture: Rather than using a generic black-box Graph Neural Network (GNN), the authors unroll the iterations of the accelerated PDQP algorithm into layers of a neural network.
  • Channel Expansion: Primal and dual vectors ($x^k, y^k$) are lifted to higher-dimensional matrices ($X^k, Y^k$) via learnable weights, significantly boosting representation capacity while remaining agnostic to problem dimension.
  • Neural Projections: Standard projection operators onto box bounds are reformulated using shift and ReLU operations, making them fully differentiable and GPU-friendly.
  • KKT-Informed Unsupervised Loss: Instead of penalizing distance to a ground-truth label, the loss directly penalizes violations of the Karush-Kuhn-Tucker (KKT) optimality conditions: $$\mathcal{L} = \hat{r}_{\text{primal}} + \hat{r}_{\text{dual}} + \hat{r}_{\text{gap}}$$ where normalized terms capture primal constraint/bound violations, stationarity/dual violations, and the relative primal-dual gap (adjusted with a reduced-cost correction for variable bounds).

  • Theoretical Guarantees: The authors prove that a specific parameter assignment allows PDQP-Net to replicate PDQP iterates exactly. Furthermore, an unrolled network with only $\mathcal{O}(\log(1/\epsilon))$ neurons achieves $\epsilon$-accuracy while inheriting the solver's linear convergence rate.

Datasets

  • QPLIB: Standard continuous convex QP benchmarks (QPLIB-8845, QPLIB-3547, QPLIB-8559), augmented by perturbing coefficients to create training and test splits (9:1 ratio).
  • Synthetic Random QPs (SYN): Generated convex QPs of varying sizes (up to 5,000 variables and 20,000 constraints) with controllable sparsity and feasibility.
  • Maros–Mészáros Collection: A classic benchmark suite of diverse QP problems from varied application domains used strictly to test out-of-distribution (OOD) zero-shot generalization.

Key Insights and Ideas

  • Why supervised learning fails for QPs: Proposition 3.2 formalizes that the primal-dual gap is bounded by terms proportional to $\|Q\| \cdot \|x - x^*\|^2$. When the Hessian $Q$ has large eigenvalues, minor Euclidean prediction errors lead to massive duality gaps. Supervised models minimize $\ell_2$ distance, leaving the primal-dual gap unconstrained.
  • Unsupervised loss as a regularizer: Directly incorporating normalized KKT residuals forces the network to find primal-dual pairs that are mutually consistent, shrinking the primal-dual gap up to 1,000× compared to supervised models.
  • Negligible inference overhead: Because PDQP-Net is matrix-free and implemented in standard tensor operations, inference requires less than 1% of the subsequent solver time, ensuring that the warm-start gains translate to net wall-clock speedups.

Key Results

  • Solution Quality: On QPLIB-8559, unsupervised PDQP-Net achieved a relative primal-dual gap of 0.0015, compared to 1.2052 for supervised learning. Primal residuals consistently remained below 10% across datasets.
  • Warm-Starting PDQP:
  • Solving Time: Achieved a 30.6% to 45.5% time reduction across QPLIB and synthetic datasets over standard PDQP.
  • Iteration Count: Reduced iteration counts by up to 49.05% on synthetic benchmarks and up to 25.38% on QPLIB-8845.
  • Out-of-Distribution Generalization: Evaluated on unseen problem distributions from the Maros–Mészáros benchmark, achieving average runtime speedups of roughly 20% (up to 31.61% on QSHIP04L).
  • Comparison with Standard GNNs: Outperformed conventional GNN baselines across all benchmark datasets in both primal and dual residual metrics.

Limitations and Future Work

  • Degradation on Small Instances: On very small problems (e.g., DUAL4 in the Maros–Mészáros suite), warm-starting slightly increased runtime ($-2.12\%$), as default PDQP converges fast enough that warm-start initialization yields minimal benefit.
  • OOD Expressiveness: While OOD results are promising, the authors note that generalization to drastically different problem structures can still be limited by the parameter capacity of the MLPs within the unrolled architecture.

Summary updated

BibTeX
@misc{yang2024efficient,
  author = {Linxin Yang and Bingheng Li and Tian Ding and Jianghua Wu and Akang Wang and Yuyi Wang and Jiliang Tang and Ruoyu Sun and Xiaodong Luo},
  title = {{An Efficient Unsupervised Framework for Convex Quadratic Programs via Deep Unrolling}},
  year = {2024},
  eprint = {2412.01051},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2412.01051},
}
Figure