TL;DR
Deep learning models usually try to solve massive routing problems in a single pass, handing their rough drafts off to classical search algorithms for a one-time cleanup. LSSL (Learning to Search, Searching to Learn) turns this one-way street into a continuous conversation: a neural network guides a classical search solver, and the solver's improved routes feed right back to re-condition the network. Because it operates on a clever sparse graph, LSSL can optimize routes across 100,000 locations on a single consumer GPU—outperforming gold-standard heuristics at a fraction of the compute time.
What Problem Does This Paper Address?
Imagine planning optimal delivery routes across 100,000 stops—a classic Vehicle Routing Problem (VRP). Exact math chokes at this scale, so logistics rely on decades-old, hand-engineered classical heuristics like LKH3 (for the Traveling Salesman Problem, TSP) and HGS (for Capacitated VRP, CVRP).
Recently, Neural Combinatorial Optimization (NCO) tried teaching neural networks to spot routing patterns directly from data. Scaling NCO to massive maps hits two walls:
- The Memory Wall: Looking at every possible connection between $N$ stops takes $O(N^2)$ memory. To survive on normal GPUs, models chop maps into smaller sub-problems ("divide-and-conquer"), sacrificing the global big picture needed for truly optimal routes.
- The One-Way Street: Neural models often rely on classical search to fix up their predictions, but only as a detached, one-shot post-processor. The neural model guesses, the heuristic repairs, and the two never speak again.
Methods
LSSL unifies a neural model and a classical heuristic backend (Guided-LKH for TSP, Guided-HGS for CVRP) into a closed feedback loop during both training and inference.
- Near-Linear $O(NK)$ Scaling: Instead of all $O(N^2)$ connections, LSSL restricts every stop to its $K$ nearest neighbors (e.g., $K=1000$). Combined with block-streamed online-softmax attention (which computes exact sparse attention in chunks without storing giant weight matrices), LSSL processes 100,000 nodes end-to-end on one 24GB RTX 4090 GPU without chopping up the map.
- Sparse Diffusion Transformer ($D_\theta$): Rather than outputting a rigid, valid route, $D_\theta$ denoises a guidance heatmap over candidate edges—essentially telling the search solver, "focus your energy on these promising local connections." (For CVRP, it also predicts a node-selection heatmap to anchor route start/end boundaries).
- Searching to Learn (Training): Instead of training on a single "perfect" route, the search backend generates multiple high-quality solutions per training map. LSSL aggregates them into a soft consensus heatmap, rewarding edges that consistently appear in good tours while preserving healthy uncertainty elsewhere. At massive scales where generating ground-truth labels is too slow, LSSL self-bootstraps: a smaller-scale model guides the solver to create training targets for the larger-scale model.
- Learning to Search (Inference): Starting from a random tour, LSSL runs $C$ alternating cycles. The current best tour is projected into a structural heatmap, denoised by the Transformer into fresh guidance, and handed back to the heuristic solver for another round of local search.
Datasets
No new benchmarks were introduced; LSSL was evaluated on established synthetic and real-world suites:
- Synthetic Data: Uniformly sampled 2D coordinates for TSP (100, 1K, 10K, and 100K nodes) and CVRP (100, 1K, and 10K nodes, plus a zero-shot 100K stress test).
- Real-World Generalization: Evaluated zero-shot (trained only on uniform synthetic data) on TSPLIB (50–1K nodes), VLSI chip layouts (up to 200K nodes), Art-TSP (100K–200K nodes), and CVRPLIB Set-X / Set-XL (100 to 10K nodes).
Key Insights and Ideas
- Don't force early feasibility ($\mathcal{H}$-space vs. $\mathbf{x}$-space): Standard diffusion solvers force intermediate steps to look like valid routes ($\mathbf{x}$-space), which shatters the search landscape into disconnected islands separated by capacity and tour constraints. Operating in relaxed heatmap probability space ($\mathcal{H}$-space) creates a smooth bridge to the optimum, letting the classical backend handle hard constraints effortlessly.
- Consensus beats hard labels: Training on soft consensus heatmaps from multiple good search trajectories roughly halves the optimality gap on TSP1K compared to training on a single hard reference tour.
- The "Goldilocks" refresh rate: Under a fixed time budget, refreshing neural guidance too rarely leaves the solver stuck with stale advice, while refreshing too often ($C=8$ cycles) starves the heuristic of the time it needs to exploit the current guidance. Just 2 to 4 cycles hits the sweet spot.
Key Results
Across scales, LSSL consistently outperforms standalone neural solvers (many of which run out of memory at $\ge 10\text{K}$ nodes) and beats its own classical reference solvers at a fraction of the compute:
- TSP10K & TSP100K: On TSP10K, LSSL beats LKH3 (
-0.006%gap) in 3.3 minutes vs. LKH3's 33.2 minutes (~$10\times$ speedup). On TSP100K, it matches LKH3 (0.000%gap) in 6.86 hours vs. 25 hours ($3.6\times$ speedup). - CVRP10K & CVRP100K: Beats the 1-hour HGS reference on CVRP10K by
-1.630%in just 8.5 minutes (~$7\times$ speedup). On a zero-shot CVRP100K stress test, it beats an 80.6-hour HGS run by-1.201%in 4.55 hours. - Real-World Transfer: Without ever training on non-uniform distributions, LSSL finds shorter average tours than the official published benchmark references on VLSI (
-0.299%on 2K–200K) and shrinks optimality gaps by $9.5\times$ over top neural baseline L2C-Insert on CVRPLIB Set-XL.
Limitations and Future Work
- Not a plug-and-play universal solver: Extending LSSL to new VRP variants (like time windows or pickup-and-delivery) isn't free. It requires constraint-aware input features, fresh training data, and a classical heuristic backend engineered to accept external edge priorities and warm-starts.
- Dependency on Euclidean sparsity: The $O(NK)$ trick relies on the assumption that optimal tours rarely use very long edges—true for Euclidean maps, potentially trickier for asymmetric or non-geometric cost matrices.
- Classical search is still doing the heavy lifting: As the authors note, LSSL isn't a standalone neural replacement for heuristics; its latency includes backend search calls, proving that neural priors shine brightest when steering classical search rather than trying to replace it.
Summary updated