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

NeuralQP: A General Hypergraph-based Optimization Framework for Large-scale QCQPs

Zhixiao Xiong, Fangyu Zong, Huigen Ye, Hua XuarXiv 2024 · DOI

Abstract

NeuralQP is a novel machine learning framework designed to solve massive Quadratically Constrained Quadratic Programs (QCQPs) with significantly greater efficiency than industry-standard solvers. By representing optimization problems as hypergraphs and utilizing a specialized Graph Neural Network (UniEGNN), NeuralQP predicts high-quality initial solutions. These predictions are then refined through a parallel neighborhood optimization strategy coupled with a McCormick relaxation-based repair mechanism. Experimental results demonstrate that NeuralQP achieves solution quality comparable to solvers like Gurobi and SCIP while requiring less than 10% of the computation time.

Introduction

Quadratic optimization (QCQP) is a cornerstone of modern engineering, appearing in fields ranging from financial portfolio management to robotic path planning and power grid stability. However, these problems are notoriously difficult (NP-hard) because they are often non-convex and involve complex interactions between variables. Traditional solvers like Gurobi and SCIP are powerful but struggle to scale as problems grow into the tens of thousands of variables. NeuralQP addresses these challenges by providing a general framework that scales efficiently using small-scale sub-solvers guided by neural predictions.

Methodology

NeuralQP operates in two distinct stages to bridge the gap between deep learning and mathematical optimization.

1. Hypergraph-based Neural Prediction

Instead of a standard bipartite graph, NeuralQP utilizes a variable relational hypergraph. In this setup, a "hyperedge" can connect multiple nodes at once, perfectly capturing the mathematical structure of quadratic terms (e.g., $x_i \cdot x_j$) and complex constraints. This representation preserves the high-order relationships inherent in quadratic equations that are often lost in traditional graph mappings.

Mapping a QCQP instance to its hypergraph and bipartite graph representations.

A specialized Graph Neural Network called UniEGNN processes this hypergraph to predict the likely values of the optimal solution. Theoretically, the authors prove that the UniEGNN architecture is equivalent to one iteration of the Interior-Point Method (IPM), providing a rigorous theoretical foundation for the neural approach.

2. Parallel Neighborhood Optimization and Repair

The neural network’s prediction serves as a high-quality starting point. To ensure feasibility and optimality, the framework fixes most variables based on the neural prediction and optimizes small "neighborhoods" of variables in parallel.

The complete NeuralQP pipeline, from hypergraph-based neural prediction to iterative neighborhood optimization.

To handle potential constraint violations during the merging of parallel solutions, the authors introduced Q-Repair, a McCormick relaxation-based strategy. This allows the system to quickly identify and fix "illegal" variable assignments, turning an infeasible guess into a valid, high-quality solution.

Experimental Evaluation

The framework was evaluated on three distinct problem types: the Quadratic Multiple Knapsack Problem (QMKP), Random QCQPs (RandQCP), and the real-world QPLIB library. Instances ranged from small scales to large-scale problems with 10,000 variables.

Key Results

  • Massive Speedups: On large-scale instances, NeuralQP reached the same solution quality as Gurobi and SCIP in less than 10% of the time.
  • Superior Performance Under Constraints: When all solvers were given the same fixed time limit, NeuralQP consistently found significantly better objective values than the baselines.
  • Strong Generalization: Models trained on problems with only 1,000 variables effectively solved problems with 10,000 variables, suggesting the network learns fundamental structural patterns rather than specific problem sizes.

Conclusion and Future Work

NeuralQP represents a significant advancement in combining deep learning with mathematical optimization. By leveraging hypergraph representations and parallel refinement, it overcomes the scalability limits of traditional solvers for large-scale QCQPs. While currently focused on continuous and binary variables, future work aims to extend the framework to general integer variables and expand theoretical proofs to the full non-convex QCQP domain.

Summary updated

BibTeX
@misc{xiong2024neuralqp,
  author = {Zhixiao Xiong and Fangyu Zong and Huigen Ye and Hua Xu},
  title = {{NeuralQP: A General Hypergraph-based Optimization Framework for Large-scale QCQPs}},
  year = {2024},
  eprint = {2410.03720},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2410.03720},
}
Figure