Introduction
Neural combinatorial optimization (NCO) has emerged as a promising alternative to traditional heuristics for solving NP-hard routing problems like the Traveling Salesman Problem (TSP) and Vehicle Routing Problem (VRP). However, a significant "scale gap" persists: models trained on small-scale instances (e.g., 100 nodes) often fail to generalize to large-scale problems (e.g., 1,000+ nodes). This paper introduces the Instance-Conditioned Adaptation Model (ICAM), a framework designed to bridge this gap by making neural solvers inherently scale-aware.
Methodology
ICAM addresses the limitations of standard Multi-Head Attention (MHA) architectures, which are memory-intensive and lack explicit spatial awareness. The framework introduces three core innovations:
1. Instance-Conditioned Adaptation Function
The authors propose a function $f(N, d_{ij}) = -\alpha \cdot \log_2 N \cdot d_{ij}$ that modulates the model's internal bias based on the total number of nodes ($N$) and the pairwise distances ($d_{ij}$). This allows the model to dynamically adjust its focus according to the problem's density and scale.
2. Adaptation Attention Free Module (AAFM)
To overcome the $O(N^2)$ complexity of MHA, ICAM utilizes an AAFM based on the Attention Free Transformer (AFT). By embedding the adaptation function directly into this module, the model is forced to prioritize local geometric structures, which are more consistent across different scales than global patterns.
3. Three-Stage Training Scheme
The training process is divided into three phases:
- Warm-up: Initial training on 100-node instances.
- Multi-scale Training: Exposure to varying scales (100 to 500 nodes) to foster flexibility.
- Top-k Elite Training: A refinement stage that optimizes the loss function based on the highest-quality trajectories, sharpening the model's decision-making.
Experimental Results
ICAM was evaluated on synthetic datasets and established benchmarks like TSPLIB and CVRPLIB.
Performance and Generalization
On TSP1000, ICAM achieved an optimality gap of just 1.58% in under four minutes, significantly outperforming baseline models like POMO, which exhibited gaps exceeding 25%. The model also demonstrated robust performance on the CVRPLIB Set-XXL, handling instances with up to 7,000 nodes.
Efficiency
By replacing MHA with the AAFM, ICAM drastically reduces GPU memory consumption. For a 1,000-node TSP instance, ICAM required approximately 51MB of memory, compared to 108MB for standard MHA-based architectures.
Discussion
A key insight from the study is that ICAM's node embeddings closely align with the actual distance matrices of the problems, whereas standard solvers often produce noisy embeddings. This suggests that scale-conditioned adaptation helps the model truly learn the underlying spatial structure of routing problems.
While ICAM shows state-of-the-art generalization, future work could involve extending the framework to handle more complex real-world constraints, such as time windows or heterogeneous vehicle fleets, and integrating it with advanced search strategies like Monte Carlo Tree Search (MCTS).
Summary updated