arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2405.20042cs.LG
收藏

CycleFormer:基于语言建模的旅行商问题求解器

CycleFormer : TSP Solver Based on Language Modeling

Jieun Yook, Junpyo Seo, Joon Huh, Han Joon Byun, Byung-ro Moon

AI总结:

针对TSP节点集合动态无限的特点,提出融合二维位置编码、循环位置编码及编解码器特殊连接方式的CycleFormer模型,在多规模TSP上性能超越现有SOTA,TSP-500最优性差距缩小约2.8倍。

摘要:

我们提出了一种用于求解旅行商问题(TSP)的新型Transformer模型,命名为CycleFormer。我们明确了将传统Transformer模型应用于TSP时需要考虑的独有特征,并致力于将这些要素充分整合到面向TSP的专用Transformer中。与典型语言模型中有限且静态的词元集合不同,TSP中的词元(节点)集合是无限且动态的。为充分利用这一特性,我们将编码器输出与解码器线性层等同起来,并将编码器的上下文向量直接连接到解码器编码中。此外,我们为编码器词元添加了反映TSP二维特性的位置编码,还为解码器词元设计了考虑路径循环属性的循环位置编码。通过整合这些思路,CycleFormer在TSP-50到TSP-500的问题规模上均优于现有最先进(SOTA)的TSP Transformer模型。值得注意的是,在TSP-500问题上,与现有SOTA模型相比,其最优性差距从3.09%降至1.10%,缩小了约2.8倍。代码将发布于https://github.com/Giventicket/CycleFormer。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑