An Efficient Graph Convolutional Network Technique for the Travelling Salesman Problem

Chaitanya K. Joshi, Thomas Laurent, Xavier BressonarXiv 2019

Abstract

This paper introduces a new learning-based approach for approximately solving the Travelling Salesman Problem on 2D Euclidean graphs. We use deep Graph Convolutional Networks to build efficient TSP graph representations and output tours in a non-autoregressive manner via highly parallelized beam search. Our approach outperforms all recently proposed autoregressive deep learning techniques in terms of solution quality, inference speed and sample efficiency for problem instances of fixed graph sizes. In particular, we reduce the average optimality gap from 0.52% to 0.01% for 50 nodes, and from 2.26% to 1.39% for 100 nodes. Finally, despite improving upon other learning-based approaches for TSP, our approach falls short of standard Operations Research solvers.

Introduction

The Travelling Salesman Problem (TSP) is a fundamental challenge in combinatorial optimization and the "poster child" of NP-hard problems. While exact solvers like Concorde provide optimal solutions, their computational cost scales poorly as the number of cities grows. Recent research has explored Deep Learning (DL) to find high-quality approximate solutions quickly. Most existing DL methods are autoregressive, constructing tours node-by-node. This sequential nature limits GPU parallelization and increases inference time. This paper proposes a non-autoregressive alternative: using a deep Graph Convolutional Network (GCN) to predict the entire tour structure simultaneously as an edge probability heat-map.

Methodology

The proposed architecture treats the TSP as a graph-to-graph problem. The pipeline consists of four main stages:

  1. Input Representation: 2D coordinates are converted into a $k$-nearest neighbor graph to emphasize local geometric relationships.
  2. Deep GCN Architecture: A 30-layer GCN updates both node and edge embeddings. It employs an anisotropic diffusion mechanism (edge gating) to learn the relative importance of neighboring nodes.
  3. Edge Classification: A Multi-layer Perceptron (MLP) processes the final edge embeddings to produce a probability matrix representing the likelihood of each edge being part of the optimal tour.
  4. Decoding: A parallelized Beam Search converts the heat-map into a valid Hamiltonian cycle.
The GCN-based pipeline for solving the TSP, from input graph to valid tour.

The model is trained via Supervised Learning (SL) on one million optimal solutions generated by the Concorde solver for fixed graph sizes (TSP20, TSP50, and TSP100). This approach proves more sample-efficient than Reinforcement Learning (RL) by providing direct gradients from ground-truth labels.

Experimental Results

The GCN approach was evaluated on 10,000 test instances for each problem size. The results demonstrate a significant improvement over previous learning-based solvers. For TSP50, the model achieved an optimality gap of just 0.01%, down from the previous best of 0.52%. For TSP100, the gap was reduced from 2.26% to 1.39%.

Comparative results showing the GCN model's performance against traditional solvers and state-of-the-art learning-based approaches.

In terms of efficiency, the non-autoregressive nature allows for massive parallelization. The GCN model processed 10,000 TSP100 instances in approximately 40 minutes, outperforming sequential RL models. However, as shown in the results table, traditional Operations Research solvers like LKH3 and Concorde still maintain a lead in pure solution quality, albeit with different computational trade-offs.

Discussion and Conclusion

A key finding is that model depth and capacity are critical; the 30-layer GCN significantly outperformed shallower graph attention models. However, the approach faces a "generalization trade-off." While highly effective for fixed-size graphs, performance degrades when the model is applied to problem sizes different from its training set. This suggests the network learns structural patterns specific to the graph scale rather than a universal TSP heuristic.

Future work aims to address these generalization issues through transfer learning and hybrid training regimes. Despite current limitations in scaling, this work establishes GCNs as a powerful tool for high-speed, high-quality combinatorial optimization.

Summary updated

BibTeX
@misc{joshi2019efficient,
  author = {Chaitanya K. Joshi and Thomas Laurent and Xavier Bresson},
  title = {{An Efficient Graph Convolutional Network Technique for the Travelling Salesman Problem}},
  year = {2019},
  eprint = {1906.01227},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1906.01227},
}
Figure