arXiv:2610.17192cs.AIOct 2026

Manuscript Offprint

arXiv:2610.17192

Size Generalization for Diffusion Routing Solvers

Barak Itzchak Davidovitch, Eli Meirom, Ethan Fetaya, Gal Chechik

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

Routing problems, like the Traveling Salesman Problem (TSP) and the Capacitated Vehicle Routing Problem (CVRP), are NP-hard and slow to solve for large instances. Diffusion-based solvers can be trained in a supervised way using sets of optimal solutions, and then quickly solve new test instances. However, for large instances, optimal solutions are hard to find, and diffusion models fail to generalize to instance sizes outside their training distribution. Here we describe ResizeCO, a label-free size-generalization approach that addresses both the change in statistical properties of larger instances, and the computational challenge of solving them quickly. It uses reinforcement learning on large-scale instances to adapt a diffusion model trained on small instances. Specifically, we adapt GRPO to this problem, using route length as the training signal. ResizeCO also formulates k-opt as a tree search, solved by a beam search on the GPU. In size-generalization experiments on TSP and CVRP instances with up to 10000 nodes, ResizeCO achieves a Pareto front over route quality and time that dominates learned solvers, and also outperforms other solvers at short run times, setting a new state of the art.

1 INTRODUCTION

Combinatorial optimization (CO) problems, and specifically routing problems, appear in many real-world systems, from logistics and supply-chain planning to chip design and scheduling. Among these, probably the most well-studied and widely deployed are the Traveling Salesman Problem (TSP) and the Capacitated Vehicle Routing Problem (CVRP), both NP-hard. For small instances, heuristic approaches can efficiently find near-optimal solutions for these problems, but solving large instances could take hours. Solving within seconds would open new possibilities for real-world problems like on-the-fly routing, interactive “what-if” planning, and large-scale routing, like coordinating deliveries within a city.

Supervised learning methods offer a promising approach for fast combinatorial optimization, because the long training cost is amortized over many new instances, each solved quickly at inference (Joshi et al., 2019; Luo et al., 2023). Diffusion-based generative solvers, trained by adding noise to precomputed optimal solutions, now match or beat hand-designed heuristics when tested on in-distribution instances (Li et al., 2025; Chen et al., 2026). Unfortunately, supervised training on large instances may be prohibitively expensive because it requires creating a large number of near-optimal solutions as labels. This effect is quantified in Appendix D.1 for TSP and CVRP. At the same time, current supervised approaches also fail at size generalization, namely, diffusion models trained on small instances perform poorly on large instances. Together, scaling supervised training to large instances is challenging.

Here we describe ResizeCO, a label-free size-generalization approach, designed to generalize from small to large instances. ResizeCO trains a diffusion model on small instances and then fine-tunes the model using reinforcement learning (RL) on large-scale instances. ResizeCO tackles the two main challenges of size generalization: the fact that statistical properties of instances may change with size, and the efficiency challenge of optimizing larger instances. ResizeCO addresses these using an integrative approach that handles architecture, fine-tuning and inference. (1) Architecture: We design a variant of Graph Transformer to generalize better across instance sizes. (2) RL fine-tuning: We adapt GRPO to provide label-free fine-tuning of a diffusion model trained on small instances. Specifically, we use a node-walk decoder, which provides a better estimate of a trajectory probability given the model. (3) Inference: We design a new and efficient beam k-opt search that runs in parallel on the GPU, which improves inference quality.

We evaluate ResizeCO on TSP and CVRP and in several size-generalization setups, comparing to both machine-learning and fast non-learned approaches. ResizeCO achieves a new state-of-the-art (SoTA) quality for short run times for several size-generalization setups, and dominates learning-based methods over the full Pareto front.

Our main contributions are: (1) ResizeCO is the first diffusion solver trained on small instances and adapted to large instances without labels, becoming the first diffusion solver trained for CVRP instances of size 10000. (2) Using node-walk decoding, we introduce an exact probability model over the routes sampled from a masked diffusion solver, then used to weight GRPO trajectories. (3) An efficient formulation of k-opt as a tree search and a beam-search approach that can be run on the GPU to solve it efficiently. (4) A new SoTA in size generalization on both CVRP and TSP for short durations, and Pareto-domination over learning-based methods in terms of time vs. solution quality.

References (38)