NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Expressive Power of Graph Neural Networks for (Mixed-Integer) Quadratic Programs

Ziang Chen, Xiaohan Chen, Jialin Liu, Xinshang Wang, Wotao Yin

TL;DR

This paper provides the first rigorous theoretical proof that Graph Neural Networks (GNNs) can universally represent the fundamental properties of convex quadratic programs (QPs), including feasibility and optimal solutions. While GNNs are not universal for mixed-integer problems due to inherent graph symmetries, the authors identify "GNN-friendly" subclasses where these models remain provably effective, bridging the gap between recent empirical successes and deep learning theory.

What Problem Does This Paper Address?

Quadratic Programming (QP) is a cornerstone of modern optimization, used in everything from ride-hailing passenger matching to high-frequency financial trading. In these fields, speed is often more important than perfect precision. However, traditional solvers rely on computationally heavy matrix decompositions (scaling at $O(n^3)$) or iterative methods that struggle with ill-conditioned data.

Recently, researchers have turned to GNNs to either "warm-start" traditional solvers or replace them entirely. While these models show great empirical promise, a massive theoretical gap remained: Can a GNN actually "see" the optimal solution of a mathematical program? Because GNNs are limited by the Weisfeiler-Lehman (WL) isomorphism test—meaning they cannot distinguish between certain different graph structures—it was unclear if they possessed the "expressive power" to represent the complex logic required to solve a QP.

Methods

The authors tackle this theoretical gap by first defining an LCQP-graph: a bipartite graph where one set of nodes represents constraints, another represents variables, and edges encode the coefficients of the linear constraints and the quadratic objective matrix ($Q$).

Bipartite graph representation of a linearly constrained quadratic program (LCQP-graph).

To prove their results, the researchers employ several key theoretical frameworks:

  • Universal Approximation Theory: Using variants of the Stone-Weierstrass theorem, they show that GNNs can approximate any continuous function on these graphs, provided the GNN can distinguish between different problem instances.
  • The WL-Test Framework: They use the Weisfeiler-Lehman test to categorize which problems are "distinguishable" by a GNN.
  • Subclass Identification: For the harder Mixed-Integer (MI-LCQP) setting, they define two new categories:
  • GNN-analyzable: Problems where a GNN can reliably predict feasibility and the optimal objective value.
  • GNN-solvable: A stricter subset where the GNN can predict the exact optimal solution vector.

Datasets

The study validates its theory using a mix of synthetic and established benchmarks:

  • Synthetic LCQP/MI-LCQP: Randomly generated instances (10 constraints, 50 variables) used to test how embedding size affects error.
  • Portfolio Optimization & SVM: Structured QP tasks common in finance and machine learning.
  • Maros and Meszaros Problem Set: A classic "real-world" benchmark containing 138 challenging convex QP instances.
  • QPLib: A library of mixed-integer quadratic programming instances, from which they selected 73 "GNN-solvable" cases for testing.

Key Insights and Ideas

  • Convexity is the "Magic Ingredient": For continuous, convex QPs, the authors proved that the $L_2$-minimal optimal solution is unique and inherently tied to the graph structure. This allows GNNs to achieve universal approximation—a feat not possible for general non-convex graphs.
  • Symmetry is the Enemy: The reason GNNs fail on some mixed-integer problems is symmetry. If two variables in a problem look identical to the GNN's message-passing mechanism but require different integer assignments to be optimal, the GNN will inevitably fail.
  • The "Friendly" Majority: Interestingly, the paper shows that "GNN-friendly" instances (those without high degrees of symmetry) actually make up the majority of MI-QP problems in practice, explaining why GNNs work so well despite their theoretical limitations.
  • Numerical Verification: The authors provide a way to use the WL-test as a pre-processing tool to check if a specific dataset is even "learnable" by a GNN before a researcher spends days training a model.

Key Results

  • Theoretical Affirmation: The authors successfully proved that for any convex LCQP distribution, there exists a GNN that can classify feasibility and approximate optimal values/solutions with arbitrarily high accuracy.
  • Speed Superiority: In head-to-head tests against the popular OSQP solver, a trained GNN was significantly faster. For a batch size of 1,000, the GNN solved problems in 0.089 ms compared to 4.48 ms for OSQP—a roughly 50x speedup.
  • Scaling Laws: Experiments showed that relative error consistently drops toward zero as the GNN's hidden embedding size increases, directly validating the universal approximation theorems.
Relative error decreases as hidden embedding size increases, validating the universal approximation capabilities of the GNN.

Limitations and Future Work

  • Non-Convexity: The authors provide a counter-example showing that their proofs do not hold for non-convex QPs, where a GNN can be "tricked" by indistinguishable instances with wildly different optima.
  • MI-QP General Case: GNNs are not universal for all mixed-integer problems; they are fundamentally limited by the symmetry of the problem's graph representation.
  • Future Directions: The authors suggest extending this work to QCQPs (quadratically constrained) and higher-order polynomial optimization using hypergraph GNNs, which could capture even more complex variable interactions.

Summary updated

BibTeX
@inproceedings{chen2025expressive,
  author = {Ziang Chen and Xiaohan Chen and Jialin Liu and Xinshang Wang and Wotao Yin},
  title = {{Expressive Power of Graph Neural Networks for (Mixed-Integer) Quadratic Programs}},
  booktitle = {International Conference on Machine Learning},
  year = {2025},
  url = {https://openreview.net/forum?id=rcMeab1QVn},
}
Figure