Fast Neural Combinatorial Optimization via Parallel Oracles

Ashkan Soleymani, Yifei Xu, Nikolaos Karalias, Akbar RafieyarXiv 2026

TL;DR

Neural networks love parallel computation, while discrete combinatorial algorithms usually insist on taking things one step at a time. This paper bridges that divide, introducing a self-supervised framework that uses parallel "oracles" to generate valid combinatorial solutions all at once on a GPU. The result is a label-free solver that scales effortlessly to graphs with millions of nodes while slashing runtime by orders of magnitude compared to existing neural approaches.

What Problem Does This Paper Address?

Combinatorial optimization—finding the best discrete arrangement out of an astronomical number of possibilities, like assigning facilities to locations or cutting a graph—is notoriously hard. Training neural networks to solve these problems usually requires optimal labels, which are prohibitively expensive to generate at scale. Self-supervised neural combinatorial optimization (NCO) avoids labels by using the problem's objective function directly as the training signal.

The catch? Neural networks output continuous numbers, which need gradients to learn, while combinatorial solutions are strictly discrete (e.g., 0 or 1) and bound by rigid rules. Recent "geometric" methods bridge this gap by decomposing a continuous neural output into a probability distribution over valid discrete solutions. However, these decompositions (like Frank–Wolfe) are inherently sequential: step two depends on the outcome of step one. This creates a massive computational bottleneck that leaves your GPU idling and forces awkward CPU–GPU communication during both training and inference.

Methods

Instead of building valid solutions one by one in a chain, the authors blow the bottleneck wide open by making candidate generation completely parallel.

Overview of the parallel training and inference pipeline.

Here is how the pipeline works:

  1. Parallel Query Generation: Given a problem instance, a neural network generates $m$ continuous "query directions" simultaneously.
  2. Parallel Oracles: Each query is fed independently and in parallel into a Linear Maximization Oracle (LMO)—a fast, standard algorithm (like greedy top-$k$ selection or weighted matching) that finds a valid discrete solution maximizing alignment with that query. No messy post-hoc "rounding" is needed; the oracle guarantees feasibility.
  3. Differentiable Surrogate via QP & KKT (The Novel Trick): You cannot backpropagate directly through a discrete oracle. Instead, the authors take the average of the continuous queries ($x_\theta$) and project it onto the convex hull of the $m$ generated discrete solutions using a regularized simplex-constrained Quadratic Program (QP). This assigns probability weights to each discrete solution, creating a smooth expected-value loss. Rather than unrolling the QP solver to get gradients, they use its Karush–Kuhn–Tucker (KKT) optimality conditions to compute exact gradients implicitly via a single, fast linear system solve.

At inference time, you drop the QP/KKT machinery entirely: just generate $m$ candidates in parallel, score them, and pick the winner.

Datasets

The authors train on synthetic instances and evaluate across four classic problems:

  • Maximum Cut (MaxCut): Trained on mixed random graphs; evaluated on 35 unweighted Gset benchmark graphs (800 to 10,000 vertices).
  • Quadratic Assignment Problem (QAP): Trained on synthetic QAP32 instances; evaluated on 14 classes from QAPLIB ($12 \le n \le 64$).
  • Maximum Coverage (MC): Trained on synthetic graphs; evaluated on Random500, Random1000, Rail, and Twitch datasets. They also test on GreedyTrap instances (designed specifically to fool greedy algorithms) and massive Random10000 and Random50000 datasets to test scaling.
  • Densest $k$-Subgraph (DKS): Trained on 500-vertex random graphs; evaluated at $k=100$ on 12 real-world SNAP networks, scaling up to millions of vertices (e.g., soc-LiveJournal1).

Key Insights and Ideas

  • Local Oracle Stability is a Feature, Not a Bug: Because discrete sets are finite, wiggling a continuous query slightly usually doesn't change which discrete vertex wins in the LMO. Because the generated vertices stay locally constant almost everywhere, the authors can treat them as fixed constants during the backward pass and differentiate cleanly with respect to the mean query.
  • No Full-Polytope Projection Required: Prior geometric methods require the neural network's output to sit strictly inside the feasible polytope before decomposing it—a nightmare for complex constraints. Here, the regularized QP works from anywhere in $\mathbb{R}^n$, projecting onto just the local slice spanned by the $m$ sampled candidates.
  • Training and Inference Harmony: Many neural solvers train with soft penalties and cross their fingers during discrete rounding at test time. Here, the exact same parallel LMO mechanism enforces hard feasibility during both training and inference.

Key Results

Across all four benchmarks, the method sits squarely on the quality–runtime Pareto frontier:

  • MaxCut: Achieves the lowest optimality gap among neural methods (0.87% to the specialized BLS reference) in 0.207s per graph—beating ANYCSP (0.95% gap) while running over 800$\times$ faster.

MaxCut quality vs. runtime trade-off on Gset. (Note: Corrected reference below) MaxCut quality vs. runtime trade-off on Gset.

Figure 2: MaxCut on 35 Gset graphs: mean gap to the BLS reference versus mean run- time (log scale), with equal weight per graph. BLS is additionally evaluated at fixed time budgets of 1 and 10 seconds. Lower and left are better.
  • QAP: Ties the state-of-the-art neural baseline FWNCO at a 26.4% mean optimality gap, while slashing inference time from 1.56s down to 0.036s (~43$\times$ faster).
Figure 3: QAPLIB: mean optimality gap across 14 classes versus reported mean in- ference time (log scale), with equal weight per class. Lower and left are better.
  • Maximum Coverage: Fastest across all settings (3.5–11.9 ms). Beats standard Greedy by 21–30% on GreedyTrap instances, and retains ~95–97% of Greedy's coverage on 50,000-node graphs in just 0.01% of the runtime (0.025s vs. 252.5s).
  • Densest $k$-Subgraph: With $m=1000$ queries, achieves the highest mean normalized objective (0.894) across 12 SNAP graphs in 13.22s—roughly 4.5$\times$ faster than FW-DL and over 100$\times$ faster than L-ADMM.

Limitations and Future Work

  • Oracle Dependency: The framework is only as applicable as its oracle. It requires problems with well-understood feasible polytopes that admit fast exact or approximate LMOs, limiting its out-of-the-box use on arbitrary, unstructured constraints.
  • No Approximation Guarantees: While the oracle guarantees every candidate is valid, it does not guarantee how close the final answer is to the true global optimum—and as seen on MaxCut and QAP, specialized non-neural metaheuristics (like BLS and RoTS) can still achieve tighter gaps given enough time. Extending the method to broader constraint families and proving theoretical approximation bounds are left for future work.

Summary updated

BibTeX
@misc{soleymani2026fast,
  author = {Ashkan Soleymani and Yifei Xu and Nikolaos Karalias and Akbar Rafiey},
  title = {{Fast Neural Combinatorial Optimization via Parallel Oracles}},
  year = {2026},
  eprint = {2611.35767},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.35767},
}
Figure