Test-Time Augmentation for Traveling Salesperson Problem
Ryo Ishiyama, Takahiro Shirakawa, Seiichi Uchida, Shinnosuke Matsuo
TL;DR
This paper addresses solving the Traveling Salesperson Problem (TSP) by introducing Test-Time Augmentation (TTA) to a Transformer-based solver. It represents instances as an $N\times N$ distance matrix and generates $M$ variant inputs via random city permutations, solving each variant with a sequence-to-sequence model and selecting the best tour. The approach yields shorter tours than recent ML solvers on TSP50 and TSP100, with the optimality gap decreasing monotonically as $M$ grows, and shows strong instance-level improvements. Ablation studies confirm the necessity of the distance-matrix representation and TTA, while also noting limitations such as fixed city count $N$ and pointing to future work on trainable/TTA strategies and variable-$N$ handling.
Abstract
We propose Test-Time Augmentation (TTA) as an effective technique for addressing combinatorial optimization problems, including the Traveling Salesperson Problem. In general, deep learning models possessing the property of invariance, where the output is uniquely determined regardless of the node indices, have been proposed to learn graph structures efficiently. In contrast, we interpret the permutation of node indices, which exchanges the elements of the distance matrix, as a TTA scheme. The results demonstrate that our method is capable of obtaining shorter solutions than the latest models. Furthermore, we show that the probability of finding a solution closer to an exact solution increases depending on the augmentation size.
