TL;DR
ResizeCO is a novel framework that allows diffusion-based neural solvers to tackle massive routing problems (like the Traveling Salesman Problem) with up to 10,000 nodes. By combining a locality-aware Graph Transformer with label-free reinforcement learning, it successfully adapts models trained on small graphs to solve much larger ones, setting a new state-of-the-art for fast, high-quality routing.
What Problem Does This Paper Address?
Routing problems, such as the Traveling Salesman Problem (TSP) and the Capacitated Vehicle Routing Problem (CVRP), are the bread and butter of logistics and supply chain management. However, they are NP-hard, meaning they become exponentially harder to solve as the number of locations (nodes) increases.
While recent "neural solvers" using diffusion models have shown great promise, they face two major hurdles:
- The Label Bottleneck: Supervised learning requires "optimal" solutions to train on. For instances with 10,000 nodes, finding these labels is computationally prohibitive.
- The Size Gap: A model trained to solve 100-node problems usually fails when suddenly asked to solve a 1,000-node problem because the statistical properties of the graph change.
The authors introduce ResizeCO to bridge this gap, allowing models to "size-generalize" from small to large instances without needing expensive ground-truth labels for the big problems.
Methods
The ResizeCO pipeline consists of three innovative stages, as illustrated in Figure 1:
- Architecture (Graph Transformer): Standard Transformers often lose track of local details on large graphs. ResizeCO uses a variant of the Graph Transformer that incorporates a Message Passing Neural Network (MPNN) extractor. This forces the model to maintain a "locality preference"—paying more attention to nearby nodes—which is a property that remains consistent even as the total number of nodes grows.
- RL Fine-tuning (Label-Free Adaptation): Instead of needing optimal labels for large graphs, the authors use Group Relative Policy Optimization (GRPO). They fine-tune the model on large instances using only the final route length as a reward signal. To make this stable, they developed a node-walk decoder that allows the model to calculate exact probabilities for the routes it samples.
- Inference (GPU Beam k-opt): To "polish" the final solution, the authors implemented a parallelized version of the $k$-opt local search (a classic heuristic) that runs entirely on the GPU. This allows the solver to explore many potential edge-swaps simultaneously, significantly improving route quality in seconds.
Datasets
The researchers evaluated ResizeCO on both synthetic and real-world benchmarks:
- Synthetic Data: TSP and CVRP instances ranging from 100 to 10,000 nodes, following standard generation protocols.
- Real-World Benchmarks: The well-known TSPLIB and CVRPLIB libraries, which contain non-uniform, practical routing instances.
- Baselines: They compared against classical solvers (Concorde, LKH-3, HGS) and a wide array of recent neural solvers (MaskCO, DIFUSCO, etc.).
Key Insights and Ideas
- Locality is the Secret Sauce: As shown in Figure 2, standard Transformers lose their focus on nearby nodes when moving from 100 to 1,000 nodes. ResizeCO’s Graph Transformer maintains this focus, which is essential for generalization.
- RL as a Bridge: You don't need to know the perfect answer to learn. By simply rewarding the model for finding shorter paths on large graphs, the RL stage successfully adapts the "intuition" learned on small graphs to the new scale.
- Exact Probabilities for RL: Most neural solvers use "greedy" decoding, which makes it hard to calculate the exact probability of a route. By switching to a sequential "node-walk" approach, the authors could use more mathematically rigorous RL techniques (like GRPO) that were previously difficult to apply to diffusion routing.
Key Results
ResizeCO achieved a new state-of-the-art (SoTA) for size generalization:
- Dominating the Pareto Front: In almost every test, ResizeCO provided better solutions in less time than other learned solvers.
- Beating the "Experts": On CVRP-10000, ResizeCO actually found better solutions (a negative gap of -0.096%) than the HGS reference solver, which was given four hours to run. ResizeCO reached this quality in about 50 minutes.
- Real-World Success: It outperformed other learned solvers on real-world TSPLIB and CVRPLIB instances, proving that its synthetic training generalizes to practical, non-uniform node distributions.
Limitations and Future Work
While ResizeCO is a major step forward, the authors note some areas for improvement:
- Training Cost: Although inference is fast, the RL fine-tuning stage still requires significant GPU time (device hours).
- Distribution Shifts: The model is primarily trained on uniform distributions. While it performed well on real-world benchmarks, extreme "clumpiness" in node distribution might still pose a challenge.
- Beyond Routing: The framework is currently tailored for TSP and CVRP; extending these label-free "resize" techniques to other combinatorial problems like scheduling or bin packing is a promising future direction.
Summary updated