TL;DR
This paper introduces a non-autoregressive (NAR) neural approach to the Traveling Salesman Problem (TSP) that generates high-quality solutions in a single forward pass. By utilizing unsupervised Self-Improvement Learning (SIL) and a novel edge-selection strategy, the model achieves near-optimal results without relying on heavy post-processing search techniques like MCTS or 2-opt.
What Problem Does This Paper Address?
The Traveling Salesman Problem (TSP) is the "Hello World" of combinatorial optimization: find the shortest possible route that visits every city exactly once and returns to the start. Because it is NP-hard, traditional exact solvers (like Concorde) become computationally prohibitive as the number of cities ($N$) grows.
Recent neural approaches fall into two camps:
- Autoregressive (AR): These build a tour step-by-step. They are accurate but slow because they require $N$ passes through a neural network.
- Non-Autoregressive (NAR): These predict a "heatmap" of edge probabilities in one pass. While fast, their raw output is usually messy, requiring expensive post-processing search (like Monte Carlo Tree Search) to find a valid, high-quality tour.
The authors argue that heavy post-processing obscures the model’s true capability. They set out to prove that a NAR model can be trained to be accurate enough to solve the TSP "in one-shot"—simply by picking the top-predicted edges—without the search-based "crutch."
Methods
The authors utilize a standard Transformer Encoder-Decoder architecture, similar to the one used in the famous "Attention, Learn to Solve Routing Problems!" paper, but adapted for NAR edge prediction.
Key Innovations:
- Self-Improvement Learning (SIL): Instead of needing expensive "expert" labels from a solver like Concorde, the model is trained via unsupervised learning. It generates several candidate solutions using its own current weights, picks the best one (the shortest tour), and uses that as a "pseudo-label" to train itself.
- Sequential Edge Selection (Algorithm 1): During training, the authors found that building tours by selecting edges (rather than nodes) leads to better results. They iteratively select the highest-probability edges that don't violate TSP constraints (degree $\le 2$ and no premature cycles).
- Parallel One-Shot Inference: For the final evaluation, the model simply selects the top two edges per node from the heatmap in parallel. This is the "one-shot" decoding that eliminates sequential bottlenecks.
- Geometric Augmentation: The model exploits the fact that a TSP solution is invariant to rotation and reflection, using these transformations to expand the training data and improve generalization.
Datasets
The model was trained and evaluated on Euclidean TSP instances where city coordinates are sampled uniformly from a $[0, 1]^2$ unit square.
- Training: A single unified model was trained on mixed graph sizes ($N \in \{20, 50, 100, 200, 500\}$).
- Evaluation: Standard benchmarks from prior literature, including 10,000 instances for smaller sizes ($N=20, 50, 100$) and 128 instances for larger scales ($N=200, 500$).
- Out-of-Distribution (OOD): The authors also tested on unseen sizes (up to $N=600$) and different distributions (Clustered, Explosion, and Implosion).
Key Insights and Ideas
- The "Context" Myth: The authors challenge the idea that a model needs the context of a "partially constructed tour" to make the next right move. Because the optimal TSP tour is a cycle, the "first step" from any node must be optimal. Therefore, predicting all optimal edges in parallel is theoretically sound.
- Data Scale > Label Quality: Surprisingly, the unsupervised SIL approach outperformed Supervised Learning (SL). The authors attribute this to scale: while SL is limited by the size of a pre-labeled dataset, SIL can learn from a practically infinite stream of unlabeled data.
- Raw Capability Metrics: The paper introduces new metrics—Optimal Edges, Valid Tours, and Optimal Tours—to measure how often the model's raw, one-shot output is actually correct. This provides a much clearer picture of neural performance than traditional "Gap" metrics that include post-processing.
Key Results
- Near-Optimality in One-Shot: On TSP20, the model achieved a 98.23% valid tour rate and 86.28% optimal tours using only one-shot decoding. This significantly outperforms previous NAR baselines like Att-GCN (65.79% optimal).
- Competitive Performance: When using the model's heatmap as a guide for a simple greedy search (GE), the model achieved an optimality gap of just 0.011% on TSP20 and 0.415% on TSP100.
- Efficiency: Because the decoding is parallelizable, the inference time is extremely low (e.g., 0.01s for TSP20) compared to AR methods that scale linearly with $N$.
- Generalization: The model showed "excellent generalization" to unseen problem sizes and non-uniform distributions, proving it isn't just memorizing specific patterns.
Limitations and Future Work
- The Scalability Wall: While the model performs exceptionally well on small-to-medium graphs, the "Valid Tour" rate drops as $N$ increases (e.g., 70.24% for TSP100). For very large graphs, some form of sequential fallback or post-processing is still currently necessary to guarantee a valid Hamiltonian cycle.
- Euclidean Focus: The current work is focused on 2D Euclidean TSP. The authors suggest that extending this one-shot approach to more complex problems like the Vehicle Routing Problem (VRP) is a key next step.
- Constraint Satisfaction: The model still occasionally predicts edges that form sub-tours or exceed node degrees, suggesting room for improvement in how the model internalizes global graph constraints.
Summary updated