Fast T2T: Optimization Consistency Speeds Up Diffusion-Based Training-to-Testing Solving for Combinatorial Optimization

Yang Li, Jinpei Guo, Runzhong Wang, Hongyuan Zha, Junchi Yan

Diffusion models have taken the AI world by storm, moving from generating photorealistic images to tackling some of the toughest nuts in computer science: Combinatorial Optimization (CO). Problems like the Traveling Salesman Problem (TSP) are NP-hard, meaning finding the perfect solution is computationally exhausting. While neural solvers based on diffusion have recently set new state-of-the-art (SOTA) benchmarks, they suffer from a "sampling tax"—requiring hundreds of iterative denoising steps to reach a solution.

A new paper from researchers at Shanghai Jiao Tong University and MIT, titled "Fast T2T," introduces a way to bypass this bottleneck. By applying "consistency training" to the optimization landscape, they’ve created a solver that can generate high-quality solutions in a single step, achieving speedups of up to 80x over previous diffusion-based methods.

TL;DR

Fast T2T adapts the concept of "consistency models" to combinatorial optimization, allowing neural solvers to map random noise directly to optimal solutions in just one or a few steps. It outperforms existing diffusion solvers while being tens of times faster, and even beats legendary heuristics like LKH when time is strictly limited.

What Problem Does This Paper Address?

Combinatorial Optimization involves finding the best solution from a finite set of possibilities (e.g., "What is the shortest route to visit these 100 cities?"). Traditional solvers like Gurobi or LKH are powerful but can be slow or require manual heuristic design.

Recently, Diffusion Models emerged as a powerful alternative. They work by starting with a "noisy" version of a solution and gradually cleaning it up. However, this "cleaning" (denoising) is an iterative process. If you need 100 steps to solve one problem, and each step requires a pass through a large Graph Neural Network (GNN), the time adds up quickly. This makes diffusion models less practical for real-time applications where speed is as critical as accuracy.

The authors introduce two major innovations to solve the speed-accuracy trade-off:

1. Optimization Consistency Training

In standard image diffusion, the model learns to move from noise level $t$ to $t-1$. In Fast T2T, the model is trained to map any noise level directly to the optimal solution ($x^*$).

Fast T2T Pipeline
  • The Goal: Ensure that regardless of the starting trajectory or noise level, the model "consistently" points toward the same global optimum.
  • The Benefit: This allows for single-step inference. You feed in random noise, and the model outputs a high-quality solution estimate immediately.

To bridge the gap between training (on historical data) and testing (on a brand-new, unseen instance), the authors use a Training-to-Testing (T2T) framework.

  • During the test phase, they don't just take the model's first guess. They use the gradient of the actual objective function (e.g., the total length of the tour) to nudge the model’s internal probabilities toward a better score.
  • Because they use consistency mappings, this search is much more efficient than searching through a standard diffusion manifold.

Key Insights and Ideas

  • The "Shortcut" Philosophy: Standard diffusion is like walking down a winding mountain path to reach a village. Consistency modeling is like learning to jump directly from any point on the mountain to the village square.
  • Trading Time for Quality: The model is flexible. If you need a solution in milliseconds, use one step. If you have a few seconds, use "multi-step consistency sampling" or the gradient search to refine the result.
  • Zero-Shot Generalization: One of the most impressive findings was that a model trained on 50-node TSPs could still perform remarkably well on 1,000-node TSPs, showing that the "consistency" the model learns is a fundamental property of the problem structure, not just a memorized pattern.

Key Results

The researchers evaluated Fast T2T on two classic CO benchmarks: the Traveling Salesman Problem (TSP) and Maximal Independent Set (MIS). The performance gains are dramatic across both:

Performance Comparison on TSP
  • Massive Speedup: On TSP-100, Fast T2T achieved an 82.8x speedup over the previous SOTA diffusion solver (DIFUSCO) while actually improving solution quality by 5.7%.
  • Beating the Gold Standard: When given a very tight time budget (e.g., <1 second), Fast T2T outperformed LKH3, which is widely considered the best traditional heuristic for TSP.
  • Efficiency in Search: Fast T2T with just one step of gradient search outperformed other diffusion models that used hundreds of steps.
  • Real-World Performance: On the TSPLIB benchmark, Fast T2T achieved a mean optimality gap of just 0.28%, significantly better than other neural approaches.

Limitations and Future Work

While Fast T2T is a leap forward, the authors note a few hurdles:

  • Training Overhead: Training a consistency model is more computationally expensive than a standard diffusion model (roughly 2x the cost) because it requires evaluating two different noise levels for every training step.
  • Diminishing Returns on Scale: As the number of nodes increases (e.g., to 10,000+), the time spent on data processing and GNN overhead begins to outweigh the savings from fewer denoising steps.
  • Future Directions: The authors suggest combining Fast T2T with more efficient traditional local search strategies to handle even larger, industrial-scale problems.

Paper Citation: Yang Li, et al. "Fast T2T: Optimization Consistency Speeds Up Diffusion-Based Training-to-Testing Solving for Combinatorial Optimization." 38th Conference on Neural Information Processing Systems (NeurIPS 2024). Link to Code

Summary updated

BibTeX
@inproceedings{li2024fast,
  author = {Yang Li and Jinpei Guo and Runzhong Wang and Hongyuan Zha and Junchi Yan},
  title = {{Fast T2T: Optimization Consistency Speeds Up Diffusion-Based Training-to-Testing Solving for Combinatorial Optimization}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=xDrKZOZEOc},
}
Figure