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

DIFUSCO: Graph-based Diffusion Solvers for Combinatorial Optimization

Zhiqing Sun, Yiming Yang

TL;DR

DIFUSCO is a novel framework that applies denoising diffusion models—the technology behind state-of-the-art AI image generators—to solve NP-complete combinatorial optimization problems like the Traveling Salesman Problem. By treating solution generation as an iterative denoising process on a graph, it significantly outperforms previous neural solvers and scales effectively to problems with up to 10,000 nodes.

What Problem Does This Paper Address?

Combinatorial Optimization (CO) involves finding the best solution from a finite set of possibilities (e.g., finding the shortest route through 500 cities). Many of these problems are NP-complete, meaning they are computationally intractable to solve perfectly as they grow in size.

Traditional solvers rely on hand-crafted heuristics or heavy integer programming. Recent "neural solvers" have tried to learn these solutions, but they face a trilemma:

  1. Autoregressive models (building a solution step-by-step) are too slow for large graphs.
  2. Non-autoregressive models (predicting everything at once) often fail to capture complex dependencies between variables (e.g., "if I pick this road, I cannot pick that one").
  3. Reinforcement Learning (RL) models are notoriously difficult and unstable to train due to sparse rewards.

DIFUSCO aims to bridge these gaps using Diffusion Models, which can generate high-quality, complex outputs in parallel through iterative refinement.

Methods

The authors introduce DIFUSCO (Graph-based DIFfUsion Solvers for Combinatorial Optimization). The core idea is to represent a solution as a binary vector (e.g., "is this edge in the tour? 0 or 1") and use a diffusion process to "clean" a noisy version of that vector.

Key Technical Components

  • Graph-based Denoising: The backbone is an Anisotropic Graph Neural Network (GNN). Unlike standard GNNs, this architecture uses "edge gating," allowing it to better model the relationships between nodes and edges—critical for problems like the Traveling Salesman Problem (TSP).
  • Discrete vs. Continuous Diffusion: The researchers compared two noise types:
  • Gaussian (Continuous): Treating the 0/1 values as real numbers and adding continuous "blur."
    • Bernoulli (Discrete): Randomly flipping bits (0 to 1 or vice versa).
  • Cosine Inference Schedule: They devised a schedule that spends more time in the "low-noise" regime during inference, which helps the model fine-tune the final solution details.
Cosine vs Linear Schedule
  • Decoding Strategies: Since diffusion models output probabilities (heatmaps), the authors use Greedy search, 2-opt heuristics, or Monte Carlo Tree Search (MCTS) to ensure the final output is a valid, feasible solution.

Datasets

The model was evaluated on two classic NP-complete problems:

  1. Traveling Salesman Problem (TSP): Tested on instances ranging from 50 to 10,000 nodes.
  2. Maximal Independent Set (MIS): Tested on the SATLIB benchmark (graphs derived from logic problems) and Erdős-Rényi (ER) random graphs.

The training data used "ground truth" labels from high-quality traditional solvers like Concorde (for small TSP) and LKH-3 (for large TSP).

Key Insights and Ideas

  • Discrete is Better for CO: One of the most significant findings is that discrete diffusion (Bernoulli noise) consistently outperforms continuous diffusion (Gaussian noise) for combinatorial tasks. This suggests that "flipping bits" is a more natural way to model discrete choices than adding continuous noise.
Performance Drop Comparison
  • Capturing Multimodality: Standard neural solvers often struggle when a graph has multiple equally good solutions. Diffusion models naturally handle this "multimodality," allowing the solver to explore different high-quality regions of the solution space.
  • Zero-Shot Scaling: A model trained on small graphs (e.g., TSP-50) generalizes remarkably well to much larger graphs (e.g., TSP-500 or even TSP-10,000), suggesting the GNN learns fundamental structural properties of the problem rather than just memorizing sizes.

Key Results

DIFUSCO set new state-of-the-art (SOTA) benchmarks for neural CO solvers:

  • TSP-500: Reduced the performance gap (the distance from the optimal solution) from 1.76% to 0.46%.
  • TSP-1000: Reduced the gap from 2.46% to 1.17%.
  • TSP-10000: Outperformed previous neural solvers by reducing the gap from 3.19% to 2.58%.
  • MIS: On the challenging SATLIB benchmark, DIFUSCO achieved an optimality gap of just 0.21%, outperforming the previous best neural solver (0.63%).

Limitations and Future Work

  • Feasibility Guarantee: Like most generative models, DIFUSCO doesn't inherently "know" the strict rules of the game (e.g., that a TSP tour must be a single connected loop). It relies on post-processing (decoding) to fix invalid solutions.
  • Training Data Dependency: The model currently requires high-quality solutions from traditional solvers to train (Supervised Learning). The authors suggest exploring Reinforcement Learning to remove this dependency.
  • Broader Problem Sets: While TSP and MIS are standard, the authors hope to extend this to Mixed Integer Programming (MIP), which would make the tool applicable to a much wider range of industrial logistics and scheduling problems.

Summary updated

BibTeX
@inproceedings{sun2023difusco,
  author = {Zhiqing Sun and Yiming Yang},
  title = {{DIFUSCO: Graph-based Diffusion Solvers for Combinatorial Optimization}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=JV8Ff0lgVV},
}
Figure