Efficiently Solving the TSP in One-Shot Without Post-Processing

Debarpan Debnath, Praveen ParuchuriOpenReview 2026 · Submission to ICLR 2026 · Rejected

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:

  1. Autoregressive (AR): These build a tour step-by-step. They are accurate but slow because they require $N$ passes through a neural network.
  2. 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

Abstract

Neural approaches relying on autoregressive (AR) solution construction for solving the Travelling Salesman Problem (TSP) — a cornerstone challenge in Combinatorial Optimization (CO) — can be computationally expensive during both training and inference, as each step of the solution construction requires a pass through the neural network. While non-autoregressive (NAR) methods promise efficient solution generation in just a single pass through the network, prior works have often required post-processing search techniques such as Monte Carlo Tree Search (MCTS), active search, beam search and 2-opt to achieve near-optimal performance. However, these techniques not only inflate inference times but have also drawn criticism for potentially overshadowing the model's intrinsic capability and raised questions about the contribution of the neural component in the solution generation pipeline. To address these concerns, we demonstrate that high-quality solutions can be generated in one-shot using the NAR approach by producing highly accurate heatmaps without requiring sophisticated post-processing techniques. During inference, we decode the tour by selecting the top two edges per node based on the heatmap — a process which can be performed in parallel. Unlike most prior NAR approaches, which depend on costly expert solutions for supervised learning, our approach is trained with Self-Improvement Learning (SIL) which is entirely unsupervised. Trained as a unified model across graph sizes, our approach achieves near-optimal results. In addition, we introduce new metrics quantifying edge prediction precision and tour validity in the NAR setting, which emphasize the model's raw capabilities.
BibTeX
@misc{debnath2026efficiently,
  author = {Debarpan Debnath and Praveen Paruchuri},
  title = {{Efficiently Solving the TSP in One-Shot Without Post-Processing}},
  year = {2026},
  url = {https://openreview.net/forum?id=VrXOym8iiA},
  howpublished = {OpenReview},
  note = {Submitted to ICLR 2026},
}
Figure