[Paper Review] Learning to Optimise General TSP Instances
This paper proposes NETSP-Net, a deep learning model combining CNN and RNN architectures to learn general heuristics for diverse TSP instances beyond Euclidean spaces. Trained on easy, uniformly distributed Euclidean TSP instances, the model generalizes effectively to non-Euclidean, non-uniform, and larger-scale TSP problems, achieving competitive performance on benchmark datasets including TSPLIB and random instances.
The Travelling Salesman Problem (TSP) is a classical combinatorial optimisation problem. Deep learning has been successfully extended to meta-learning, where previous solving efforts assist in learning how to optimise future optimisation instances. In recent years, learning to optimise approaches have shown success in solving TSP problems. However, they focus on one type of TSP problem, namely ones where the points are uniformly distributed in Euclidean spaces and have issues in generalising to other embedding spaces, e.g., spherical distance spaces, and to TSP instances where the points are distributed in a non-uniform manner. An aim of learning to optimise is to train once and solve across a broad spectrum of (TSP) problems. Although supervised learning approaches have shown to achieve more optimal solutions than unsupervised approaches, they do require the generation of training data and running a solver to obtain solutions to learn from, which can be time-consuming and difficult to find reasonable solutions for harder TSP instances. Hence this paper introduces a new learning-based approach to solve a variety of different and common TSP problems that are trained on easier instances which are faster to train and are easier to obtain better solutions. We name this approach the non-Euclidean TSP network (NETSP-Net). The approach is evaluated on various TSP instances using the benchmark TSPLIB dataset and popular instance generator used in the literature. We performed extensive experiments that indicate our approach generalises across many types of instances and scales to instances that are larger than what was used during training.
Motivation & Objective
- Address the limitation of existing learning-to-optimize methods that fail to generalize across different TSP instance types, especially non-Euclidean and non-uniformly distributed instances.
- Overcome the challenge of generating diverse and hard training data by training on easy, fast-to-solve Euclidean TSP instances with known optimal solutions.
- Enable a single model to generalize across varying problem sizes, edge-weight types, and embedding spaces (e.g., spherical distances) without retraining.
- Demonstrate that a model trained on small, simple TSP instances can produce high-quality solutions for larger and more complex instances.
- Provide a scalable, general-purpose deep learning framework for combinatorial optimization that is transferable beyond TSP to other NP-hard problems.
Proposed method
- Design a hybrid neural architecture combining Convolutional Neural Networks (CNNs) to extract spatial patterns from city coordinates and Recurrent Neural Networks (RNNs), specifically LSTMs, to generate the tour sequence step-by-step.
- Train the model using supervised learning on a large dataset of small-sized (e.g., TSP20, TSP50) Euclidean TSP instances with ground-truth optimal solutions obtained via Concorde.
- Leverage the CNN’s ability to learn local spatial dependencies among cities, enabling the model to generalize to instances with different distance metrics (e.g., Haversine for spherical distances).
- Use a pointer network mechanism within the RNN decoder to predict the next city to visit in the tour, ensuring valid permutations of cities.
- Apply data augmentation by generating diverse TSP instances with varying distributions and edge-weight types during training to improve robustness.
- Evaluate generalization by testing on held-out instances from TSPLIB, random generators, and non-Euclidean instances (e.g., Bays29 using great-circle distances).
Experimental results
Research questions
- RQ1Can a model trained exclusively on easy, uniformly distributed Euclidean TSP instances generalize to harder, non-uniform, and non-Euclidean TSP instances?
- RQ2To what extent does the CNN-RNN architecture improve generalization across different problem sizes and edge-weight types compared to prior learning-to-optimize models?
- RQ3Does training on small-scale instances (e.g., TSP20–TSP100) enable effective solution prediction for larger-scale TSP instances (e.g., TSP200, TSP500) without retraining?
- RQ4How does the proposed model compare in performance to state-of-the-art learning-based TSP solvers on diverse benchmark datasets and instance types?
- RQ5Can the model learn heuristics that are robust to variations in city distribution and distance metrics, such as spherical distances?
Key findings
- NETSP-Net generalizes effectively to non-Euclidean TSP instances, such as Bays29 (computed using the Haversine formula), outperforming baseline methods despite being trained only on Euclidean data.
- The model achieves comparable average tour lengths to state-of-the-art methods on TSP20, TSP50, and TSP100, with no statistically significant difference found in paired t-tests (p > 0.05).
- Even when trained only on small instances (e.g., TSP20, TSP50), NETSP-Net produces feasible and high-quality solutions for larger test instances (e.g., TSP100, TSP200), demonstrating strong zero-shot generalization.
- The CNN component enables the model to learn spatial patterns independent of distance metric, allowing it to generalize across different edge-weight types, including Euclidean, random, and spherical distances.
- In cross-instance evaluations, NETSP-Net outperforms or matches the performance of prior models like AM [9] across multiple training and test size combinations, especially when training data is limited.
- Empirical results show that the model’s performance remains stable and competitive across diverse TSP instance types, including hard instances like Berlin52 and uniformly distributed ones like TSP50.
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.