Introduction
Routing problems, such as the Traveling Salesman Problem (TSP) and the Capacitated Vehicle Routing Problem (CVRP), are foundational challenges in logistics, chip design, and bioinformatics. Given their NP-hard nature, researchers have traditionally relied on hand-crafted heuristics. Recently, Deep Reinforcement Learning (DRL) has emerged as a promising alternative, training neural networks to "learn" these heuristics. While DRL solvers offer rapid inference, they frequently suffer from a significant "generalization gap." A model trained on 100 cities often fails when applied to 1,000 cities (cross-size generalization) or when the spatial distribution of cities changes (cross-distribution generalization).
In this work, the authors introduce INViT (Invariant Nested View Transformer), a scale-invariant architecture designed to bridge this gap by focusing on local relational structures rather than global coordinates.
The Challenges of Scale: Aliasing and Interference
The authors identify two primary technical hurdles that prevent standard Transformers from scaling to large routing problems:
- Embedding Aliasing: In dense regions of large-scale problems, neural networks struggle to distinguish between nodes that are geographically close, leading to suboptimal decision-making.
- Interference: Standard Transformers utilize global attention, where every node attends to every other node. In large instances, the cumulative "noise" from thousands of distant, irrelevant nodes drowns out the critical signals from immediate neighbors.
Methodology: The INViT Architecture
INViT addresses these challenges by shifting the model's focus from a global map to Invariant Nested Local Views. The architecture consists of three core components:
Nested View Encoders
Instead of processing the entire graph, INViT constructs multiple subgraphs based on $k$-nearest neighbors (e.g., one view for the 15 closest neighbors and another for the 35 closest). This sparsification effectively removes interference from distant nodes, ensuring the model only processes relevant local context.
The Invariant Layer
This layer is the "secret sauce" for generalization. It performs local coordinate normalization, re-scaling the views so the model perceives the same relative patterns regardless of the absolute scale of the problem. Additionally, it uses a projection mechanism to ensure the starting depot remains within the model's "field of vision," even when the current node is far away.
Multi-view Decoder
The model employs a decoder that concatenates features from different nested views. This allows INViT to integrate fine-grained local details with a slightly broader context before determining the next node in the sequence. The model is trained using a modified REINFORCE policy gradient algorithm, supplemented by data augmentation (rotations and reflections) to enhance robustness.
Experimental Evaluation
The authors evaluated INViT using both a new synthetic benchmark and classic public datasets:
- MSVDRP (Multi-Scale Various-Distribution Routing Problem): A new dataset featuring four distributions (Uniform, Clustered, Explosion, and Implosion) with scales reaching up to 10,000 nodes for TSP and 5,000 nodes for CVRP.
- TSPLIB & CVRPLIB: Standard real-world benchmarks used to verify performance on non-synthetic data.
Key Results and Insights
INViT demonstrates dominant performance on large-scale tasks, effectively solving the cross-size generalization issue:
- Massive Scaling: On TSP-10,000, INViT achieved an average optimality gap of approximately 6-9%. In contrast, previous state-of-the-art (SOTA) models like POMO or PointerFormer either exceeded memory limits or produced gaps as high as 70-100%.
- Zero-Shot Distribution Shift: Even when trained exclusively on uniform distributions, INViT generalized to clustered and "explosion" distributions with significantly lower error rates than its competitors.
- Real-World Robustness: On the TSPLIB dataset, the INViT-3V variant maintained a consistent ~9% gap even for instances exceeding 10,000 nodes, while other neural solvers saw their performance degrade rapidly as size increased.
Conclusion
The success of INViT suggests a "less is more" philosophy in neural routing: by intentionally limiting the model's view to local, normalized neighborhoods, it becomes significantly more robust to changes in scale and distribution. While INViT faces some computational overhead due to its multi-view encoders and is slightly less specialized for very small-scale problems (where global attention is less noisy), its ability to handle massive, real-world instances marks a significant step forward for neural combinatorial optimization. Future research may extend this invariant nested view logic to other domains, such as job-shop scheduling or bin packing.
Summary updated