TL;DR
This paper introduces a linear-complexity cross-attention mechanism and a Self-Improved Training (SIT) algorithm that allow Transformer-based models to solve Vehicle Routing Problems (VRPs) with up to 100,000 nodes. By overcoming the quadratic scaling bottleneck of standard attention, the method achieves state-of-the-art results on massive instances, even outperforming specialized classical solvers on large-scale benchmarks.
What Problem Does This Paper Address?
The Vehicle Routing Problem (VRP) is a cornerstone of logistics, but it is notoriously NP-hard. While Neural Combinatorial Optimization (NCO) methods have shown great promise in learning to solve these problems, they hit a hard wall when scaling up to real-world sizes.
Most current NCO models rely on standard self-attention, which has a computational and memory complexity of $\mathcal{O}(n^2)$. For a problem with 100,000 nodes, this quadratic growth makes training and inference practically impossible due to memory exhaustion. Furthermore, training on large-scale instances is difficult because high-quality labels (optimal solutions) are scarce, and reinforcement learning (RL) struggles with sparse rewards and massive memory overhead on large graphs.
Methods
The authors propose two major innovations to bridge the scalability gap:
1. Lightweight Cross-Attention
Instead of every node attending to every other node, the authors introduce "representative nodes" (specifically the first and last nodes of a partial tour). In each step, representative nodes attend to all instance nodes to update their embeddings, and then instance nodes attend back to these representative nodes. This reduces complexity from $\mathcal{O}(n^2)$ to $\mathcal{O}(2n)$, enabling the model to handle massive graphs efficiently.
2. Self-Improved Training (SIT)
To train on large instances without needing expert labels, the authors use an iterative self-improvement loop. The model starts with a basic solution (e.g., from a simple heuristic). It then iteratively "reconstructs" partial segments of the solution to improve them. These improved segments serve as "pseudo-labels" for supervised training, allowing the model to learn from its own increasingly better solutions without relying on expensive external solvers.
Datasets
The model was evaluated on:
- Synthetic Benchmarks: Traveling Salesman Problem (TSP) and Capacitated VRP (CVRP) instances ranging from 1,000 (1K) to 100,000 (100K) nodes.
- Real-world Benchmarks: Symmetric instances from TSPLIB and CVRPLIB with more than 1,000 nodes.
- Small-scale Benchmarks: TSP and CVRP with 300, 500, and 700 nodes for comparison with existing NCO baselines.
Key Insights and Ideas
- Linear Scaling is Non-Negotiable: By moving to a cross-attention mechanism, the authors achieved a massive speedup and memory reduction compared to standard Transformers, preventing the Out-Of-Memory (OOM) errors that plague baselines at 10K+ nodes.
- Representative Nodes are Sufficient: Using just the first and last visited nodes as "representatives" effectively captures the dynamic state of a partial tour, providing enough context for the model to make high-quality routing decisions.
- The Model as its Own Teacher: The SIT algorithm demonstrates that local search (reconstruction) can generate high-quality training signals, bypassing the need for expensive solvers like LKH3 or Concorde to provide ground-truth labels for large instances.
Key Results
The proposed method consistently outperformed existing NCO methods and even challenged specialized classical solvers at unprecedented scales:
- 100K Node Scalability: The model successfully solved TSP and CVRP instances with 100,000 nodes, a scale where almost all prior NCO methods fail due to memory limits.
- Beating Specialized Solvers: On massive datasets like CVRP50K and CVRP100K, the method achieved better objective values (negative optimality gaps) than the highly-regarded HGS solver, while remaining computationally efficient.
- Superior Efficiency: Compared to state-of-the-art NCO models like LEHD, this method is significantly faster and uses a fraction of the memory, with the advantage growing exponentially as the problem size increases.
Limitations and Future Work
- Training Iterations: The SIT process requires multiple iterations of reconstruction and training to generate high-quality pseudo-labels, which can be time-consuming upfront.
- Fixed Sampling Size: The current method uses a predefined range for sampling partial solutions during training. The authors suggest that an adaptive strategy for setting these sizes could further improve efficiency.
- Generalization to other COPs: While highly effective for VRPs, the cross-attention and SIT framework has yet to be tested on other combinatorial problems like scheduling or bin packing.
Summary updated