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

Graph Neural Networks for Binary Programming

Moshe Eliasof, Eldad HaberarXiv 2024 · DOI

Abstract

Binary Programming (BP) is a fundamental challenge in combinatorial optimization, often surfacing in complex decision-making tasks like portfolio management and supply chain logistics. Because these problems are NP-complete, traditional solvers rely on computationally expensive heuristics that must be re-run for every new instance. This paper introduces QUBO-GNN, a novel Graph Neural Network architecture that frames Quadratic Unconstrained Binary Optimization (QUBO) as a heterophilic node classification task. By leveraging reaction-diffusion dynamics and "QUBO-aware" features, the model provides fast, high-quality approximations that generalize to unseen problem instances.

Introduction

Finding exact solutions for Binary Programming problems becomes intractable as the number of variables grows. While heuristics like Tabu Search are effective, they are "instance-specific," requiring a full optimization cycle for every new problem. Recent attempts to apply Graph Neural Networks (GNNs) have often failed to generalize or required per-instance training. The authors propose a GNN-based solver capable of learning the underlying logic of a QUBO problem family, enabling near-instantaneous solutions for new instances.

Methodology: The QUBO-GNN Framework

The proposed QUBO-GNN framework is built upon three core pillars:

  1. Graph Interpretation: The QUBO objective function, $f(x) = x^\top Ax + x^\top b$, is mapped directly onto a graph where matrix $A$ represents the adjacency (variable interactions) and vector $b$ provides the input node features.
  2. Reaction-Diffusion Architecture: Standard GNNs typically act as low-pass filters, smoothing features across neighbors. However, QUBO solutions are often heterophilic, where neighboring nodes have different binary labels. QUBO-GNN uses a backbone inspired by reaction-diffusion equations to generate the complex, non-smooth spatial structures required for these solutions.
  3. QUBO-Aware Features: The model injects a "nodal residual"—a measure of a node's contribution to the objective loss—directly into the layers. This allows the network to track the optimization goal during the forward pass.
Algorithm 1: The QUBO-GNN Layer architecture incorporating reaction-diffusion dynamics and QUBO-aware features.

The training process utilizes a self-supervised data generation strategy. Instead of solving for $x$ given $b$, the authors select a solution $x$ first and analytically derive a vector $b$ that makes $x$ the minimizer, creating a diverse and scalable training set.

Key Insights

A critical theoretical contribution is the Piecewise Constant Insight. Sensitivity analysis reveals that the optimal solution $x$ is piecewise constant relative to the input vector $b$. This stability suggests that the mapping from problem to solution is learnable by neural networks. Furthermore, by identifying QUBO as a heterophilic classification task, the authors explain why traditional GNNs (like GCN or GAT) underperform—they tend to "smooth away" the high-frequency patterns essential to the correct binary solution.

Results and Performance

The researchers evaluated QUBO-GNN on synthetic datasets ranging from small ($k=10$) to large ($k=1024$).

  • Accuracy and Speed: QUBO-GNN achieved up to 98% accuracy on small tasks, significantly outperforming GCN (~70%) and GAT (~71%). For large problems, it provides approximations in approximately 10 milliseconds, compared to over 4 seconds for classical heuristics like Tabu Search.
  • Ablation Study: The inclusion of QUBO-aware features was pivotal. As shown in the training curves, these features halved the relative objective error and improved convergence speed.
Comparison of training and validation loss with and without QUBO-aware features, demonstrating significantly faster convergence and lower error.

Conclusion

QUBO-GNN represents a significant step toward bridging combinatorial optimization and deep learning. By combining the approximation power of GNNs with classical heuristic refinement (e.g., using GNN output as a starting point for Tabu Search), the authors achieve state-of-the-art results with minimal computational overhead. Future work aims to extend this architecture to handle variable graph structures (changing matrix $A$) and hard-constrained optimization problems.

Summary updated

BibTeX
@misc{eliasof2024graph,
  author = {Moshe Eliasof and Eldad Haber},
  title = {{Graph Neural Networks for Binary Programming}},
  year = {2024},
  eprint = {2404.04874},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2404.04874},
}
Figure