AGDN: Learning to Solve Traveling Salesman Problem with Anisotropic Graph Diffusion Network
About
The Traveling Salesman Problem (TSP) is a cornerstone of combinatorial optimization and arises in many practical scenarios. Although graph-based learning approaches have been explored for TSP, the question of how to exploit graph structure more effectively remains open. We present the Anisotropic Graph Diffusion Network (AGDN), a new Graph Neural Network framework designed to solve TSP. Our method tackles two central difficulties: (1) the lack of informative topological prior in fully connected TSP graphs, and (2) losing connected nodes in the optimal solution after the commonly used graph sparsification techniques. To overcome these issues, we construct a MixScore transition matrix that merges node similarity with pairwise distance, and we develop an anisotropic graph diffusion strategy that supports efficient information exchange across multiple hops. Comprehensive experiments spanning diverse instance sizes and node distributions show that AGDN consistently outperforms existing methods while keeping computation time competitive. Furthermore, AGDN generalizes well to problem sizes and distributions beyond those seen during training. The implementation is publicly available at: https://github.com/LabRAI/AGDN.
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| Traveling Salesman Problem | TSP-500 (test) | Gap0.64 | 110 | |
| Traveling Salesman Problem | TSP-1000 (test) | Optimality Gap0.96 | 71 | |
| Traveling Salesperson Problem | TSPLIB pcb442 | Tour Length13.5 | 27 | |
| Traveling Salesman Problem | Explosion TSP-1000 | Baseline Optimality Gap2.6 | 17 | |
| Traveling Salesperson Problem | TSP1000 | Optimality Gap0.96 | 17 | |
| Traveling Salesman Problem | TSP500 | Optimality Gap0.64 | 16 | |
| Traveling Salesman Problem | TSP N=200 (test) | Gap (%)0.05 | 16 | |
| Traveling Salesman Problem | TSP-100 Cluster (test) | Performance Gap0.01 | 12 | |
| Traveling Salesman Problem | TSP200 | Solution Gap (%)0.05 | 10 | |
| Traveling Salesman Problem | TSP100 Uniform (test) | Optimality Gap0.00e+0 | 8 |