LocalEscaper: A Weakly-supervised Framework with Regional Reconstruction for Scalable Neural TSP Solvers

Junrui Wen, Yifei Li, Bart Selman, Kun HearXiv 2025 · DOI

Introduction

The Traveling Salesman Problem (TSP) remains a benchmark challenge in combinatorial optimization. While Neural Combinatorial Optimization (NCO) has emerged as a fast alternative to exact solvers, it faces a significant "scalability wall." Most neural solvers struggle to generalize beyond 1,000 nodes due to the high cost of generating optimal labels for supervised learning and the $O(n^2)$ complexity of standard Transformer architectures. This paper introduces LocalEscaper, a weakly-supervised framework that scales to 100,000 cities by leveraging iterative refinement and a novel regional reconstruction technique.

The Scalability Challenge

NCO solvers typically fall into two categories: Supervised Learning (SL) and Reinforcement Learning (RL). SL models are efficient but require massive datasets of high-quality labels, which are computationally prohibitive to produce for large-scale instances. RL models avoid labels but often suffer from sparse rewards and become trapped in local optima—suboptimal solutions that appear correct locally but are globally inefficient. Furthermore, the memory requirements of dense attention mechanisms in Transformers explode as the number of cities ($n$) increases.

The LocalEscaper Framework

LocalEscaper overcomes these limitations through a three-pronged architectural approach designed for both efficiency and global optimization.

The LocalEscaper architecture and task flow.

1. Weakly-Supervised Label Bootstrapping

Instead of requiring expert labels, LocalEscaper starts with low-quality initial solutions (e.g., generated via random insertion). It employs an Improver to iteratively refine these labels. A Constructive Model is then trained on this evolving dataset. This "bootstrapping" process creates a virtuous cycle where the model and the data quality improve in tandem.

2. Regional Reconstruction

A key innovation of LocalEscaper is its "regional reconstruction" strategy. Traditional local search methods often fail because they cannot break long-range connections. LocalEscaper identifies a spatial region using $k$-nearest neighbors, removes the edges within that area, and uses an RL-trained policy to decide how to reconnect the resulting fragments. By focusing on spatial topology rather than just sequence segments, the model can fix structural "cross-overs" and escape deep local optima.

3. Lightweight Attention Mechanism

To address $O(n^2)$ complexity, the framework utilizes a pruned attention mechanism. During decoding, the model only considers the $k_d$ nearest neighbors of the current city. This ensures that the computational cost per step remains constant, enabling the solver to handle extreme-scale problems on a single consumer GPU.

Experimental Evaluation

The authors evaluated LocalEscaper across synthetic datasets, the standard TSPLIB benchmark, and new extreme-scale test sets of up to 100,000 cities.

Ablation study and performance metrics.

Key Results

  • State-of-the-Art Performance: On TSP10K (Uniform), LocalEscaper achieved an optimality gap of 1.62%, significantly outperforming recent solvers like DIFUSCO (2.56%) and GLOP (4.89%).
  • Benchmark Robustness: On TSPLIB, the framework achieved the lowest average optimality gap across all categories, ranging from 0.33% for small instances to 2.74% for large instances.
  • Extreme Scalability: LocalEscaper successfully solved 100,000-city instances in approximately 33 minutes with a 4.74% gap. In contrast, most existing neural solvers encounter "Out of Memory" (OOM) errors or require days of computation at this scale.

Conclusion

LocalEscaper demonstrates that neural TSP solvers can achieve massive scalability without relying on expensive expert labels. By prioritizing spatial topology through regional reconstruction and maintaining computational efficiency via sparse attention, the framework provides a robust path forward for solving large-scale combinatorial optimization problems. Future research will explore extending this weakly-supervised approach to more complex variants, such as the Vehicle Routing Problem (VRP).

Summary updated

BibTeX
@misc{wen2025localescaper,
  author = {Junrui Wen and Yifei Li and Bart Selman and Kun He},
  title = {{LocalEscaper: A Weakly-supervised Framework with Regional Reconstruction for Scalable Neural TSP Solvers}},
  year = {2025},
  eprint = {2502.12484},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2502.12484},
}
Figure