Solving the Traveling Salesman Problem with Positional Encoding
Pierre Pereira, Frédéric Giroire, Emanuele Natale
TMLR, 2025
Abstract. We propose transformer-based neural solvers for the Euclidean Traveling Salesman Problem (TSP) that rely on positional encodings rather than coordinate projections. By adapting ALiBi and RoPE, modern positional encodings originally developed for large language models, to the Euclidean setting, our Positional Encoding-based Neural Solvers (PENS) inherit useful invariances and locality biases. To address the increased density of large instances, we introduce a simple yet effective rescaling of city coordinates that further boosts performance. Trained only on TSP-100, PENS achieves state-of-the-art results on up to 10 000 cities, a scale that was previously dominated by methods requiring graph sparsification. These findings demonstrate that positional encodings provide effective inductive biases for neural combinatorial optimization.
Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.
Claim this paperedit · history
Loading the discussion…