TL;DR
This paper bridges the gap between the empirical success and theoretical understanding of Graph Neural Networks (GNNs) for solving quadratic programs (QPs). The authors prove that standard message-passing GNNs can universally approximate key properties—such as feasibility, optimal objective values, and optimal solutions—for convex continuous QPs. For the more challenging mixed-integer setting, they show that while GNNs are not universal approximators in general, they can reliably solve a precisely defined "GNN-friendly" subclass of problems.
What Problem Does This Paper Address?
Quadratic programming (QP) is a cornerstone of mathematical optimization, deeply embedded in real-time applications like robotics, financial portfolio management, and ride-hailing driver-passenger matching. Traditional algorithms rely on computationally heavy operations like matrix decomposition or preconditioned conjugate gradient methods, which struggle to meet strict real-time constraints for large problem instances.
Recently, researchers turned to GNNs to either directly predict approximate solutions or guide traditional solvers. While these empirical approaches showed massive speedups, their theoretical boundaries remained unmapped. It was fundamentally unknown what types of QP problems a GNN could theoretically represent or where they would inevitably fail. This paper establishes the theoretical foundations for Linearly Constrained QPs (LCQPs) and Mixed-Integer LCQPs (MI-LCQPs).
Methods
The authors construct a bipartite-like graph representation called the LCQP-graph. This graph maps an optimization instance by splitting it into two distinct node types: constraint nodes and variable nodes. The coefficients of the linear constraints and the quadratic objective matrix are encoded directly as edge weights.
To analyze the expressive power of GNNs on these graphs, the authors leverage the mathematical equivalence between standard message-passing GNNs and the Weisfeiler-Lehman (WL) graph isomorphism test. By analyzing whether the WL test can distinguish between different QP instances, and applying variants of the Stone-Weierstrass theorem, they prove whether a GNN has the capacity to universally approximate the target optimization mappings.
Datasets
The authors evaluated their theoretical findings using both synthetic and real-world datasets:
- Synthetic Datasets: Randomly generated generic LCQP and MI-LCQP instances (10 constraints, 50 variables), alongside structured instances mimicking portfolio optimization and Support Vector Machine (SVM) problems.
- Real-World Benchmarks:
- The Maros and Meszaros Problem Set, containing 138 challenging convex LCQPs.
- QPLib, a well-known library of quadratic programming instances, from which 73 GNN-solvable mixed-integer instances were extracted.
Key Insights and Ideas
- Convexity is Mandatory for Universality: In continuous settings, GNNs are universal approximators only if the objective function is convex. The authors present a striking non-convex counterexample where a convex and a non-convex QP produce identical graph structures (making them indistinguishable to a GNN) but yield completely different optimal solutions.
- Symmetry is the Enemy in Mixed-Integer Tasks: GNNs are not universal approximators for general mixed-integer QPs. If an optimization problem possesses high structural symmetry, the message-passing mechanism updates symmetric variable nodes identically. If the true integer solution requires these symmetric variables to take different values, a standard GNN will fail.
- Generic Problems are "GNN-Friendly": Despite the mixed-integer limitation, the authors prove that generic MI-LCQPs sampled from continuous distributions are structurally asymmetric and thus "GNN-solvable" almost surely. Hard, failure-inducing instances typically arise from manual, highly structured engineering rather than random distributions.
Key Results
- Near-Zero Fitting Errors: Across synthetic, portfolio, and SVM datasets, increasing the GNN's hidden embedding size consistently reduced relative fitting errors for both objective values and optimal solutions to near zero, validating the universal approximation theorems.
- Orders-of-Magnitude Speedups: When compared against the popular OSQP solver, a trained GNN leveraging GPU parallelization achieved an average solving time of 0.089 ms (at a batch size of 1,000), compared to OSQP's 4.48 ms per instance, while maintaining a highly accurate relative error of $\sim 6.31 \times 10^{-4}$.
Limitations and Future Work
The primary limitation of standard message-passing GNNs lies in their inability to handle non-convex objectives and highly symmetric mixed-integer structures.
To overcome these boundaries, the authors point toward several promising future directions:
- Symmetry Breaking: Introducing random node features or utilizing higher-order GNN architectures (like $k$-hop GNNs) to distinguish structurally identical nodes.
- Hypergraph Extensions: Unifying linear, quadratic, and higher-order polynomial optimization problems under a single theoretical framework using hypergraph GNNs.
- Size Complexity Bounds: Leveraging the algorithm-unrolling framework to explicitly bound the number of layers and parameters required for a GNN to achieve a target optimization accuracy.
Summary updated