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

Learning to Solve Quadratic Unconstrained Binary Optimization in a Classification Way

Ming Chen, Jie Chun, Shang Xiang, Luona Wei, Yonghao Du, Qian Wan, Yuning Chen, Yingwu Chen

Solving Quadratic Unconstrained Binary Optimization (QUBO) is a cornerstone of combinatorial optimization, with applications ranging from financial analysis to quantum computing. However, because QUBO is NP-hard, finding optimal solutions for large-scale problems is notoriously difficult. While deep learning has recently entered the fray, most existing models treat the problem as a sequential decision-making process—flipping bits one by one—which becomes painfully slow as the number of variables grows.

A new paper proposes a radical shift: stop treating optimization as a sequence and start treating it as a classification problem.

TL;DR

The researchers introduce the Value Classification Model (VCM), a neural solver that predicts the entire binary solution vector for a QUBO problem in a single forward pass. By replacing slow, sequential Reinforcement Learning (RL) with a graph-based classification approach and a novel self-training regime, they achieve near-optimal solutions (0.362% gap) in milliseconds, even on problems with thousands of variables.

What Problem Does This Paper Address?

QUBO involves finding a binary vector $x$ that maximizes or minimizes a quadratic function defined by a matrix $Q$. Most modern "Neural Combinatorial Optimization" (NCO) methods use Reinforcement Learning to train agents that build a solution step-by-step.

This sequential approach has two major flaws:

  1. Computational Overhead: Evaluating the objective function at every single step to "see how we're doing" is expensive.
  2. Scalability: Models like Pointer Networks or standard Graph Neural Networks (GNNs) often struggle with memory or time complexity when the number of variables ($n$) reaches the thousands.

The authors sought a way to generate high-quality solutions "at once" without the baggage of a Markov Decision Process (MDP).

Methods

Comparison between traditional sequential MDP-based models and the proposed one-shot VCM architecture.

The VCM architecture abandons the sequential MDP approach in favor of three innovative components:

  1. Depth Value Network (DVN): This is the "feature extractor." It treats the $Q$ matrix as an adjacency matrix of a graph. Unlike standard GCNs, which can suffer from "over-smoothing" (where all node features become identical) as they get deeper, the DVN uses a tailored iteration process that exploits the symmetry of the $Q$ matrix to refine variable features.
  2. Value Classification Network (VCN): This is the "classifier." It takes the features from the DVN and maps them directly to a binary output (0 or 1) for every variable simultaneously. This reduces the complexity from $O(n^2)$ or worse in sequential models to a much more manageable $O(n^2)$ for the initial matrix-vector product, followed by parallel classification.
  3. Greedy-guided Self Trainer (GST): Training a classifier usually requires "ground truth" optimal labels, which are hard to get for NP-hard problems. The GST circumvents this by using a Batch Greedy Flip (BGF) algorithm. The model essentially "competes" against its own best-found solutions, using a historical best set to provide high-quality labels for self-supervised learning.

Key Insights and Ideas

  • Optimization as Classification: The most profound insight is that a well-trained GNN can learn the "likelihood" of a variable being 1 or 0 based on its local and global context in the $Q$ matrix, allowing for one-shot inference.
  • The "Depth" Hack: One of the most surprising findings is that a VCM trained at a certain depth (e.g., 40 layers) can perform even better if you simply increase the number of layers at test time (e.g., to 300 layers). The DVN acts like an iterative refiner; more iterations lead to sharper binary clusters in the latent space.
  • Extreme Generalization: A model trained on tiny problems (only 10 variables) can still produce near-optimal solutions for problems with 7,000 variables. This suggests the DVN is learning fundamental structural properties of QUBO rather than just memorizing patterns.

Key Results

Performance comparison of VCM against baseline algorithms on large-scale QUBO benchmarks.

The authors evaluated VCM on a diverse range of instances, including randomly generated sets, standard ORLIB benchmarks (up to 2,500 variables), and massive 7,000-variable problems.

  • Speed: VCM generates solutions for 2,500-variable problems in milliseconds. In contrast, traditional solvers or sequential NCO models can take seconds or even minutes.
  • Accuracy: On the B2500 benchmarks, VCM achieved an average optimality gap of 0.362%. By extending the DVN depth at test time, this gap narrowed to a staggering 0.034%.
  • Efficiency: VCM-BGF (the model combined with a quick greedy refinement) outperformed state-of-the-art sequential models like S2V-DQN and DRLH while being thousands of times faster. It even rivaled the commercial solver Gurobi (limited to 1s runtime) in solution quality on very large instances.

Limitations and Future Work

While VCM is a massive leap forward, the authors note a few areas for improvement:

  • Feature Utilization: The VCN (the classifier part) might not be fully exploiting the rich features provided by the DVN. More sophisticated classification architectures could potentially close the remaining 0.034% gap.
  • Constraint Handling: This paper focuses on unconstrained optimization. Adapting this classification approach to constrained problems (like the Knapsack problem or Traveling Salesperson) would require a way to ensure the "one-shot" output doesn't violate problem rules.

In summary, VCM proves that for certain NP-hard problems, we don't need to "think" sequentially. By framing optimization as a high-dimensional classification task, we can get the best of both worlds: the speed of deep learning and the precision of classical heuristics.

Summary updated

BibTeX
@inproceedings{chen2024learning,
  author = {Ming Chen and Jie Chun and Shang Xiang and Luona Wei and Yonghao Du and Qian Wan and Yuning Chen and Yingwu Chen},
  title = {{Learning to Solve Quadratic Unconstrained Binary Optimization in a Classification Way}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=p43ObIwJFW},
}
Figure