[Paper Review] Unsupervised Learning for Solving the Travelling Salesman Problem
UTSP trains a Graph Neural Network with an unsupervised surrogate loss to produce a heat map of edge probabilities, then uses local search guided by the heat map to solve TSP with high efficiency and accuracy, outperforming prior data-driven methods.
We propose UTSP, an unsupervised learning (UL) framework for solving the Travelling Salesman Problem (TSP). We train a Graph Neural Network (GNN) using a surrogate loss. The GNN outputs a heat map representing the probability for each edge to be part of the optimal path. We then apply local search to generate our final prediction based on the heat map. Our loss function consists of two parts: one pushes the model to find the shortest path and the other serves as a surrogate for the constraint that the route should form a Hamiltonian Cycle. Experimental results show that UTSP outperforms the existing data-driven TSP heuristics. Our approach is parameter efficient as well as data efficient: the model takes $\sim$ 10\% of the number of parameters and $\sim$ 0.2\% of training samples compared with reinforcement learning or supervised learning methods.
Motivation & Objective
- Motivate solving Euclidean TSP with a data-efficient unsupervised learning approach.
- Develop a GNN-based framework that produces an edge heat map guiding solution construction.
- Introduce a differentiable surrogate loss to minimize tour length while enforcing Hamiltonian Cycle constraints.
- Couple heat-map generation with a best-first local search to produce final tours.
- Demonstrate superior performance and efficiency compared to RL/SL baselines on large TSP instances.
Proposed method
- Construct a distance matrix D from city coordinates and build an adjacency weighting W with W_{i,j}=exp(-D_{i,j}/tau).
- Use a Scattering Attention GNN (SAG) to produce a transition matrix T by applying a column-wise Softmax to the GNN output S.
- Build a heat map H = T V T^T, where V is the Sylvester shift matrix, to encode edge participation probabilities in a Hamiltonian Cycle.
- Train with an unsupervised loss L combining (i) row-wise constraint on T, (ii) no self-loops in H, and (iii) minimizing the expected tour length using D and H.
- Employ a two-phase pipeline: (a) heat-map construction from T, (b) best-first local search guided by H to obtain the final TSP tour.
- Update the heat map during search using a backprop-like rule that strengthens edges leading to better solutions, and inject randomness to diversify exploration.
Experimental results
Research questions
- RQ1Can an unsupervised surrogate loss enable a GNN to produce informative edge heat maps that guide TSP solvers without labeled optimal tours?
- RQ2Does using a SAG (with band-pass filters) yield more expressive heat maps than a standard GCN, improving search-space reduction and solution quality?
- RQ3How does UTSP balance inference-time heat-map construction with local-search exploration to achieve competitive or superior results on large-scale TSP instances?
- RQ4To what extent does the learned heat-map reduce the search space and improve solution quality compared to traditional data-driven baselines?
Key findings
- On large TSP instances (n=200, 500, 1000), UTSP achieves gaps of 0.0918%, 0.8394%, and 1.1770% respectively, with faster total runtimes than baselines.
- UTSP requires far fewer training samples (2,000) and far fewer parameters (e.g., 44,392) than RL/SL approaches, while converging faster.
- The Scattering Attention GNN (SAG) produces a more discriminative, non-smooth heat map H than a GCN, enabling better edge prioritization and local search performance.
- The prediction edge set Pi guided by UTSP covers ~98% of ground-truth edges after modest training (eta ≈ 98% after ~10 epochs, ~99.76% with SAG after 100 epochs; ~33.9% with GCN).
- Heat-map-based surrogate loss reduces the search space from 4,950 edges to ~583 edges on average, aiding faster and more accurate search.
- Compared to exact solvers and other learning baselines, UTSP achieves competitive or superior solution quality with substantially reduced training data and time.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.