mlsanityData to 14 Oct 2026

CycleFormer : TSP Solver Based on Language Modeling

arXiv 2405.20042 ↗First posted 30 May 2024cs.LGcited by 0

Not on the map. Why?

Abstract (arXiv)

We propose a new transformer model for the Traveling Salesman Problem (TSP) called CycleFormer. We identified distinctive characteristics that need to be considered when applying a conventional transformer model to TSP and aimed to fully incorporate these elements into the TSP-specific transformer. Unlike the token sets in typical language models, which are limited and static, the token (node) set in TSP is unlimited and dynamic. To exploit this fact to the fullest, we equated the encoder output with the decoder linear layer and directly connected the context vector of the encoder to the decoder encoding. Additionally, we added a positional encoding to the encoder tokens that reflects the two-dimensional nature of TSP, and devised a circular positional encoding for the decoder tokens that considers the cyclic properties of a tour. By incorporating these ideas, CycleFormer outperforms state-of-the-art (SOTA) transformer models for TSP from TSP-50 to TSP-500. Notably, on TSP-500, the optimality gap was reduced by approximately 2.8 times, from 3.09% to 1.10%, compared to the existing SOTA. The code will be made available at https://github.com/Giventicket/CycleFormer.

Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 18 of its 37 references that are in the map. First posted on arXiv 30 May 2024.

Builds on

18 of 37 references.

References · 18

  1. 2017Attention Is All You Needcited by 60,361
  2. 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 13,028
  3. 2020End-to-End Object Detection with Transformerscited by 7,414
  4. 2022Hierarchical Text-Conditional Image Generation with CLIP Latentscited by 6,585
  5. 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,703
  6. 2023FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioningcited by 2,598
  7. 2015Pointer Networkscited by 895
  8. 2018Attention, Learn to Solve Routing Problems!cited by 656
  9. 2022DeepSpeed Inference: Enabling Efficient Inference of Transformer Models at Unprecedented Scalecited by 407
  10. 2020POMO: Policy Optimization with Multiple Optima for Reinforcement Learningcited by 348
  11. 2019An Efficient Graph Convolutional Network Technique for the Travelling Salesman Problemcited by 269
  12. 2023DIFUSCO: Graph-based Diffusion Solvers for Combinatorial Optimizationcited by 221
6 more
  1. 2017The Reversible Residual Network: Backpropagation Without Storing Activationscited by 217
  2. 2021Learning to Iteratively Solve Routing Problems with Dual-Aspect Collaborative Transformercited by 108
  3. 2021The Transformer Network for the Traveling Salesman Problemcited by 59
  4. 2023Pointerformer: Deep Reinforced Multi-Pointer Transformer for the Traveling Salesman Problemcited by 50
  5. 2020BARD: A structured technique for group elicitation of Bayesian networks to support analytic reasoningcited by 14
  6. 2023Retention Is All You Needcited by 1

Built on by

Not cited yet.