Skip to main content
QUICK REVIEW

[Paper Review] H-TSP: Hierarchically Solving the Large-Scale Travelling Salesman Problem

Xuanhao Pan, Yan Jin|arXiv (Cornell University)|Apr 19, 2023
Transportation and Mobility InnovationsEngineering4 citations
TL;DR

H-TSP proposes a hierarchical deep reinforcement learning framework that solves large-scale TSP by first selecting a small subset of cities via an upper-level policy and then solving a sub-TSP on those cities using a lower-level policy, achieving near-state-of-the-art solution quality in under 4 seconds for 10,000-node instances—reducing inference time by up to two orders of magnitude compared to SOTA search-based methods.

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.

Motivation & Objective

  • Address the challenge of solving large-scale TSP instances efficiently, especially in time-sensitive applications like on-call routing and ride-hailing.
  • Overcome the limitations of existing learning-based methods that struggle with scalability due to large action spaces or high training/inference costs.
  • Develop an end-to-end, scalable deep reinforcement learning framework that generalizes to TSP instances up to 10,000 nodes without relying on iterative search.
  • Enable a flexible trade-off between solution quality and inference speed by allowing replacement of the learned lower-level policy with a high-quality solver like LKH-3 during inference.

Proposed method

  • Decompose TSP solution construction into two hierarchical levels: upper-level policy selects a small subset (up to 200) of unvisited cities to include in the next sub-tour.
  • Lower-level policy constructs a TSP tour for the selected subset and merges it into the current partial route starting from the depot.
  • Train both policies jointly using deep reinforcement learning to optimize for solution quality and convergence speed.
  • Use a divide-and-conquer strategy to reduce the effective problem size at each step, enabling scalability to 10,000-node instances.
  • Employ a warm-up training strategy and joint training with k-NN and visited fragment features to stabilize training and improve performance.
  • Integrate LKH-3 as a substitute for the learned lower-level policy during inference to boost solution quality while retaining fast inference speed.

Experimental results

Research questions

  • RQ1Can a hierarchical deep reinforcement learning framework scale to TSP instances with up to 10,000 nodes while maintaining competitive solution quality?
  • RQ2How does the performance of the hierarchical approach compare to state-of-the-art search-based and learning-based TSP solvers in terms of solution quality and inference time?
  • RQ3What is the relative contribution of the upper-level and lower-level policies to the overall solution quality, and can they be independently improved or replaced?
  • RQ4To what extent does the proposed training strategy—featuring warm-up and joint training—enhance model stability and performance?
  • RQ5Can the framework be adapted for practical deployment by substituting the learned lower-level policy with a high-quality heuristic solver like LKH-3 without sacrificing speed?

Key findings

  • H-TSP achieves an optimality gap of 3.42% on 10,000-node TSP instances, comparable to the SOTA Att-GCN+MCTS method (3.22% gap), while reducing inference time from 395.85 seconds to just 3.32 seconds.
  • The framework generalizes well to unseen TSP instances, maintaining a gap of 7.10% on 50,000-node instances, with performance stable across 1,000 to 50,000 nodes.
  • Ablation studies show that the lower-level policy has a greater impact on solution quality than the upper-level policy, with the warm-up stage being the most critical training component.
  • Replacing the learned lower-level policy with LKH-3 improves solution quality (e.g., gap drops from 7.32% to 5.57% on 10,000-node instances), while still maintaining fast inference (27.94s vs. 395.85s for Att-GCN+MCTS).
  • The absence of warm-up training increases the optimality gap by 20.29 percentage points (from 6.76% to 27.05%), highlighting its importance for training stability.
  • The combination of k-NN and visited fragment features improves performance by 0.93 and 0.66 percentage points respectively, demonstrating their value in representation learning.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.