A survey on deep learning-based algorithms for the traveling salesman problem

Jingyan Sui, Shizhe Ding, Xulin Huang, Yue Yu, Ruizhi Liu, Boyang Xia, Zhenxin Ding, Liming Xu, Haicang Zhang, Chungong Yu, Dongbo BuFrontiers of Computer Science 2025 · DOI

Abstract

The Traveling Salesman Problem (TSP) remains a cornerstone of combinatorial optimization. While classical exact solvers and hand-crafted heuristics have long dominated the field, recent advances in deep learning (DL) have introduced a new paradigm. This paper surveys the evolution of DL-based TSP solvers, categorizing them into four generations: end-to-end construction, iterative improvement, direct hybrid algorithms, and the emerging frontier of Large Language Model (LLM)-driven heuristic evolution. We evaluate these approaches based on their ability to balance computational speed with solution optimality, highlighting the current superiority of hybrid models that integrate neural intuition with classical search techniques.

Introduction

The Traveling Salesman Problem (TSP) asks for the shortest possible route visiting a set of cities exactly once. As an NP-hard problem, it serves as a benchmark for optimization algorithms. Traditionally, the field has been split between exact solvers like Concorde, which guarantee optimality but scale poorly, and heuristics like Lin-Kernighan-Helsgaun (LKH), which are fast but require significant manual design. Deep learning offers a "third way," aiming to automate solver design or solve instances directly through learned patterns.

Taxonomy of DL-Based Solvers

The landscape of DL-based TSP algorithms can be organized into a hierarchical taxonomy, reflecting the progression from simple "black-box" models to sophisticated hybrid systems.

Taxonomy of DL-based algorithms for the Traveling Salesman Problem.

1. End-to-End Construction

Models such as Pointer Networks and Transformers generate a tour in a single pass. While extremely fast, these "one-shot" models often produce suboptimal, "messy" solutions because they lack the iterative refinement necessary for complex instances.

2. End-to-End Improvement

Rather than building from scratch, these models learn to iteratively refine an existing tour. They often utilize Reinforcement Learning (RL) to select optimal edge swaps, effectively learning to perform $k$-OPT moves (such as 2-OPT or 3-OPT) without manual rule-setting.

Visualization of 2-OPT and 3-OPT reconnection types used in iterative improvement models.

3. Direct Hybrid Algorithms

Currently the state-of-the-art, hybrid algorithms use neural networks (typically Graph Convolutional Networks) to predict "heat maps" of high-probability edges. These predictions then guide classical search mechanisms like Beam Search or Monte Carlo Tree Search, combining neural "intuition" with mathematical rigor.

4. LLM-Based Hybrids

The newest frontier involves using Large Language Models (LLMs) to automate the design of heuristics. Instead of training on TSP instances, LLMs like GPT-4 are used to propose and refine algorithmic logic in a closed-loop "automated researcher" framework.

Key Insights and Performance

A critical finding in recent research is the "generalization gap": models trained on small instances (e.g., 50 cities) often fail on larger ones (e.g., 200+ cities). Hybrid models, such as NeuroLKH, mitigate this by using DL for high-level guidance while relying on classical search for local optimization. NeuroLKH has achieved an optimality gap of just 0.013% on the TSPLIB benchmark, nearly matching top-tier human-designed solvers.

Furthermore, exploiting problem symmetries—such as the fact that a tour's length is independent of the starting city—has proven vital. Models like POMO (Policy Optimization with Multiple Optima) leverage these symmetries to significantly enhance performance and robustness.

Conclusion and Future Directions

While DL-based solvers have made remarkable strides, challenges remain in scalability beyond 10,000 nodes and the interpretability of neural edge predictions. The future of the field likely lies in the fusion of LLMs and search, where LLMs provide high-level strategic guidance to low-level, mathematically sound search algorithms.

Summary updated

BibTeX
@article{sui2025survey,
  author = {Jingyan Sui and Shizhe Ding and Xulin Huang and Yue Yu and Ruizhi Liu and Boyang Xia and Zhenxin Ding and Liming Xu and Haicang Zhang and Chungong Yu and Dongbo Bu},
  title = {{A survey on deep learning-based algorithms for the traveling salesman problem}},
  journal = {Frontiers of Computer Science},
  year = {2025},
  doi = {10.1007/s11704-024-40490-y},
}
Figure