Skip to main content
QUICK REVIEW

[Paper Review] Reinforcement Learning-based Non-Autoregressive Solver for Traveling Salesman Problems

Yubin Xiao, Di Wang|arXiv (Cornell University)|Aug 1, 2023
Vehicle Routing Optimization MethodsEngineering3 citations
TL;DR

This paper proposes NAR4TSP, the first non-autoregressive (NAR) reinforcement learning (RL)-based solver for the Traveling Salesman Problem (TSP), which jointly optimizes a learnable starting-node pointer and edge scores via a graph neural network (GNN) while enforcing TSP constraints during both training and inference. The method achieves state-of-the-art solution quality, faster inference, and superior generalization by integrating self-critical RL with NAR decoding, outperforming existing models on synthetic and real-world TSP instances.

ABSTRACT

The Traveling Salesman Problem (TSP) is a well-known combinatorial optimization problem with broad real-world applications. Recently, neural networks have gained popularity in this research area because as shown in the literature, they provide strong heuristic solutions to TSPs. Compared to autoregressive neural approaches, non-autoregressive (NAR) networks exploit the inference parallelism to elevate inference speed but suffer from comparatively low solution quality. In this paper, we propose a novel NAR model named NAR4TSP, which incorporates a specially designed architecture and an enhanced reinforcement learning strategy. To the best of our knowledge, NAR4TSP is the first TSP solver that successfully combines RL and NAR networks. The key lies in the incorporation of NAR network output decoding into the training process. NAR4TSP efficiently represents TSP encoded information as rewards and seamlessly integrates it into reinforcement learning strategies, while maintaining consistent TSP sequence constraints during both training and testing phases. Experimental results on both synthetic and real-world TSPs demonstrate that NAR4TSP outperforms five state-of-the-art models in terms of solution quality, inference speed, and generalization to unseen scenarios.

Motivation & Objective

  • To address the limitations of existing non-autoregressive (NAR) models for TSP, which suffer from low solution quality, poor generalization, and inconsistent training-inference constraints.
  • To develop a novel NAR model that integrates reinforcement learning (RL) with a GNN architecture to eliminate dependency on expensive ground-truth labels from exact solvers.
  • To enforce Hamiltonian cycle constraints consistently during both training and inference, ensuring feasible and high-quality TSP solutions.
  • To improve sample efficiency and reduce computational cost in RL training by replacing the standard two-module RL setup with a single, optimized module.
  • To demonstrate that NAR models can achieve competitive solution quality with significantly faster inference, making them suitable for real-time decision-making.

Proposed method

  • Proposes a modified GNN architecture that takes node coordinates and inter-node distances as input, outputs edge scores and a learnable pointer to the starting node, enabling dynamic route initiation.
  • Introduces a decoding strategy that enforces TSP sequential constraints (i.e., visiting each node exactly once in a cycle) during both training and inference, ensuring feasibility.
  • Employs a self-critical reinforcement learning (RL) strategy where the model's own predicted solution is used as a baseline to compute policy gradients, improving training stability and performance.
  • Enhances the standard RL framework by replacing two identical sub-modules with a single module, reducing memory usage and training time while maintaining or improving solution quality.
  • Uses the total path length of the decoded TSP tour as the reward signal, directly optimizing for solution quality in an end-to-end differentiable manner.
  • Applies greedy decoding during inference, leveraging the one-shot nature of NAR networks to achieve high-speed solution generation.

Experimental results

Research questions

  • RQ1Can a non-autoregressive model trained with reinforcement learning achieve superior solution quality compared to supervised learning baselines for TSP?
  • RQ2Does enforcing TSP constraints during training, rather than only during inference, lead to more consistent and higher-quality solutions?
  • RQ3Can a learnable starting-node pointer significantly improve solution quality compared to fixed starting points?
  • RQ4How does the proposed enhanced RL strategy compare to the standard two-module RL setup in terms of efficiency and performance?
  • RQ5To what extent does the NAR4TSP model generalize to unseen TSP instances of varying sizes and distributions?

Key findings

  • NAR4TSP achieves an average solution length of 5.752 on TSP50 instances, outperforming the SOTA NAR model [13] by 11.23% in solution quality (6.398 vs. 5.752).
  • Removing the learnable pointer mechanism results in a 6.34% relative performance drop, demonstrating its critical role in route optimization.
  • The solution length using the model-determined starting node is within 0.06% of the best possible starting node across 10,000 instances, indicating near-optimal selection.
  • The enhanced RL strategy reduces GPU memory usage by 9.89% and training time by 26.36% compared to the original two-module RL setup, while improving solution quality by 0.48%.
  • NAR4TSP achieves an 8.7-fold speedup over the SOTA NAR model [13] in inference, despite similar solution quality, due to its one-shot decoding nature.
  • The model generalizes well to unseen TSP instances, demonstrating robustness across diverse problem distributions and sizes.

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.