H-TSP: Hierarchically Solving the Large-Scale Travelling Salesman Problem

Xuanhao Pan, Yan Jin, Yuandong Ding, Mingxiao Feng, Li Zhao +2 more
4/19/2023
cs.AI

No official code found. Best implementation: Learning4Optimization-HUST/H-TSP (58 stars, MIT, PyTorch, last commit 2025-03-21).

Abstract

We propose an end-to-end learning framework based on hierarchical reinforcement learning, called H-TSP, for addressing the large-scale Travelling Salesman Problem (TSP). The proposed H-TSP constructs a solution of a TSP instance starting from the scratch relying on two components: the upper-level policy chooses a small subset of nodes (up to 200 in our experiment) from all nodes that are to be traversed, while the lower-level policy takes the chosen nodes as input and outputs a tour connecting them to the existing partial route (initially only containing the depot). After jointly training the upper-level and lower-level policies, our approach can directly generate solutions for the given TSP instances without relying on any time-consuming search procedures. To demonstrate effectiveness of the proposed approach, we have conducted extensive experiments on randomly generated TSP instances with different numbers of nodes. We show that H-TSP can achieve comparable results (gap 3.42% vs. 7.32%) as SOTA search-based approaches, and more importantly, we reduce the time consumption up to two orders of magnitude (3.32s vs. 395.85s). To the best of our knowledge, H-TSP is the first end-to-end deep reinforcement learning approach that can scale to TSP instances of up to 10000 nodes. Although there are still gaps to SOTA results with respect to solution quality, we believe that H-TSP will be useful for practical applications, particularly those that are time-sensitive e.g., on-call routing and ride hailing service.

View on arXivView PDF

Code Implementations(1)

PyTorchMIT

Official implementation of H-TSP (AAAI2023)

5818Shell, Python1 years agoMIT
deep-learninghierarchical-reinforcement-learningpytorchreinforcement-learningtsp-problem

Similar Papers

Cite this paper

@article{pan2023htsp,
  title  = {H-TSP: Hierarchically Solving the Large-Scale Travelling Salesman Problem},
  author = {Xuanhao Pan and Yan Jin and Yuandong Ding and Mingxiao Feng and Li Zhao and Lei Song and Jiang Bian},
  year   = {2023},
  eprint = {2304.09395},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2304.09395v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2304.09395.svg)](https://codeofpaper.com/paper/2304.09395)

Discussion