arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2403.17159cs.LGcs.AI
收藏

Less Is More —— 稀疏化对TSP的Transformer和图神经网络的重要性

Less Is More -- On the Importance of Sparsification for Transformers and Graph Neural Networks for TSP

Chalmers University of Technology(查尔姆斯理工大学);Volvo Group Trucks Technology(沃尔沃集团卡车技术部门)

Attila Lischka, Jiaming Wu, Rafael Basso, Morteza Haghir Chehreghani, Balázs Kulcsár

AI总结:

针对机器学习求解TSP时编码器在全图聚合信息的问题,提出图稀疏化与注意力掩码的数据预处理方法及多级集成策略,显著提升了GNN性能,并设计了达到SOTA的transformer编码器,大幅缩小了模型与最优解的差距。

摘要:

近期大多数利用机器学习解决旅行商问题(TSP)等路由问题的研究,都使用基于transformer或图神经网络(GNN)的编码器架构。然而,其中许多研究应用这些编码器的方式过于朴素,即允许它们在整个TSP实例上聚合信息。相反,我们提出了一种数据预处理方法,使编码器仅关注TSP实例中最相关的部分。具体而言,我们针对传递给GNN的TSP图表示提出了图稀疏化,并针对传递给transformer的TSP实例提出了注意力掩码,其中掩码对应于稀疏TSP图表示的邻接矩阵。此外,我们提出了不同稀疏化级别的集成方法,使模型能够聚焦于最有前景的部分,同时允许TSP实例所有节点之间的信息流动。在实验研究中,我们表明对于GNN,适当的稀疏化以及不同稀疏化级别的集成会带来整体架构性能的大幅提升。我们还设计了一种结合注意力掩码集成的新型最先进transformer编码器。对于规模为100的TSP实例,这些transformer将模型性能差距从0.16%降至0.10%;对于规模为50的TSP实例,则从0.02%降至0.00%。

英文摘要:

Most of the recent studies tackling routing problems like the Traveling Salesman Problem (TSP) with machine learning use a transformer or Graph Neural Network (GNN) based encoder architecture. However, many of them apply these encoders naively by allowing them to aggregate information over the whole TSP instances. We, on the other hand, propose a data preprocessing method that allows the encoders to focus on the most relevant parts of the TSP instances only. In particular, we propose graph sparsification for TSP graph representations passed to GNNs and attention masking for TSP instances passed to transformers where the masks correspond to the adjacency matrices of the sparse TSP graph representations. Furthermore, we propose ensembles of different sparsification levels allowing models to focus on the most promising parts while also allowing information flow between all nodes of a TSP instance. In the experimental studies, we show that for GNNs appropriate sparsification and ensembles of different sparsification levels lead to substantial performance increases of the overall architecture. We also design a new, state-of-the-art transformer encoder with ensembles of attention masking. These transformers increase model performance from a gap of $0.16\%$ to $0.10\%$ for TSP instances of size 100 and from $0.02\%$ to $0.00\%$ for TSP instances of size 50.

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

↑