Unsupervised Diffusion Solver for Combinatorial Optimization via Combinatorial Adjoint Matching

Shengyu Feng, Tarun Suresh, Yiming Yang

Introduction

Combinatorial Optimization (CO) problems, such as the Traveling Salesman Problem (TSP), require finding the optimal solution from an astronomically large set of possibilities. Recently, diffusion models have emerged as a promising approach for CO, iteratively refining noise into high-quality solutions. However, a major bottleneck is their reliance on supervised training, which requires thousands of expensive, near-optimal ground-truth solutions. Existing unsupervised alternatives, often based on Reinforcement Learning (RL), suffer from high variance and struggle to learn long-term dependencies.

To address this, researchers have introduced Combinatorial Adjoint Matching (CAM), a novel unsupervised framework that trains diffusion models using stable, low-variance signals without requiring a library of perfect solutions. By treating the solution-generation process as a controllable dynamical system, CAM achieves state-of-the-art performance on massive graphs, even outperforming traditional specialized solvers.

Methodology: Combinatorial Adjoint Matching

CAM bridges the gap between generative modeling and Stochastic Optimal Control. The authors model the discrete "flipping" of bits (e.g., deciding if a node is part of a set or a city is next in a route) as a continuous-time process using Continuous-Time Markov Chains (CTMCs). This formulation enables the application of trajectory optimization mathematics to discrete domains.

A core innovation is the introduction of Discrete Adjoint Dynamics. In continuous physics, adjoint methods calculate how to adjust an initial state to achieve a desired final state. The discrete adaptation of this concept allows the model to backpropagate the "quality" of the final solution through every intermediate step of the diffusion process.

To make this computationally tractable, the authors developed a "lean" adjoint estimate. This simplification allows the model to learn from a single sampled trajectory by comparing its current state to a slightly improved version, often found via local search heuristics like 2-OPT. Consequently, instead of receiving a sparse, high-variance scalar reward at the end of generation, the model receives a structured "gradient" at every step, providing precise feedback on exactly which bits to flip to improve the final outcome.

Experimental Setup

The researchers evaluated CAM across four classic NP-hard combinatorial optimization problems:

  • Maximum Independent Set (MIS): Tested on Revised Model B (RB) and Erdos–Rényi (ER) graphs, scaling up to massive 11,000-node instances.
  • Traveling Salesman Problem (TSP): Evaluated on instances with 500 and 1,000 cities.
  • Maximum Cut (Max Cut): Tested on Barabási–Albert graphs with up to 1,200 nodes.
  • Capacitated Vehicle Routing Problem (CVRP): A complex variant of TSP incorporating vehicle capacity constraints.

Key Insights and Results

The fundamental insight of CAM is that propagating a vector signal (the adjoint path gradient) through the trajectory is significantly more stable than propagating a single scalar reward. This structured feedback prevents the divergence issues commonly seen in previous unsupervised models. Furthermore, CAM learns effectively from suboptimality; it does not need to see a perfect solution, but rather learns the "path of least resistance" to a better version of its own generated path.

Empirically, CAM demonstrates exceptional performance:

  • State-of-the-Art on MIS: On large ER graphs (9,000–11,000 nodes), CAM achieved a remarkable 0.00% optimality gap, actually outperforming KaMIS, a powerful traditional specialized solver.
  • Competitive with Supervised Models: On TSP-1000, CAM not only outperformed other unsupervised methods by a wide margin but also remained highly competitive with strong supervised models.
  • Inference-Time Scaling: Because CAM learns the underlying dynamics of optimization, giving the model more time (more diffusion steps) during inference leads to continuous improvements in solution quality, eventually hitting a zero optimality gap on certain benchmarks.
  • High Efficiency: For a 50-step diffusion process, CAM requires evaluating the objective gradient only once at the end, whereas competing RL-based methods require evaluations at every single step.

Limitations and Future Directions

Despite its strong performance, CAM has a few limitations. For general routing problems like TSP, it currently relies on simple local improvement operators (e.g., 2-OPT) to help define the direction of improvement. Eliminating this dependency on hand-designed heuristics is a primary goal for future research.

Additionally, the theoretical proofs rely on idealized "low-temperature" limits and unique minimizers that may not perfectly capture the rugged landscapes of all NP-hard problems. Finally, like many diffusion-based solvers, handling extremely rigid global constraints—where flipping a single bit invalidates the entire solution—remains an ongoing challenge. Future work will likely focus on developing more generalized path-gradient estimators that operate independently of problem-specific local search heuristics.

Summary updated

BibTeX
@inproceedings{feng2026unsupervised,
  author = {Shengyu Feng and Tarun Suresh and Yiming Yang},
  title = {{Unsupervised Diffusion Solver for Combinatorial Optimization via Combinatorial Adjoint Matching}},
  booktitle = {International Conference on Machine Learning},
  year = {2026},
  url = {https://openreview.net/forum?id=y6LGSCnNOz},
}
Figure