mlsanityData to 7 Oct 2026

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

arXiv 2403.17159 ↗First posted 25 Mar 2024cs.LG cs.AIcited by 6

Not on the map. Why?

Abstract (arXiv)

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.

Key facts. Cited by 6 papers in the map (data through 7 Oct 2026). Builds on 27 of its 36 references that are in the map. First posted on arXiv 25 Mar 2024.

Builds on

27 of 36 references.

References · 27

  1. 2017Attention Is All You Needcited by 59,932
  2. 2016Semi-Supervised Classification with Graph Convolutional Networkscited by 11,282
  3. 2017Graph Attention Networkscited by 8,854
  4. 2018How Powerful are Graph Neural Networks?cited by 4,355
  5. 2019A Comprehensive Survey on Graph Neural Networkscited by 2,906
  6. 2019Fast Graph Representation Learning with PyTorch Geometriccited by 2,414
  7. 2018Weisfeiler and Leman Go Neural: Higher-order Graph Neural Networkscited by 878
  8. 2021How Attentive are Graph Attention Networks?cited by 818
  9. 2018Attention, Learn to Solve Routing Problems!cited by 646
  10. 2020POMO: Policy Optimization with Multiple Optima for Reinforcement Learningcited by 341
  11. 2018Reinforcement Learning for Solving the Vehicle Routing Problemcited by 327
  12. 2019An Efficient Graph Convolutional Network Technique for the Travelling Salesman Problemcited by 265
15 more
  1. 2018Learning to Perform Local Rewriting for Combinatorial Optimizationcited by 183
  2. 2019Learning Improvement Heuristics for Solving Routing Problemscited by 162
  3. 2020Generalize a Small Pre-trained Model to Arbitrarily Large TSP Instancescited by 161
  4. 2022DIMES: A Differentiable Meta Solver for Combinatorial Optimization Problemscited by 127
  5. 2021Learning to Delegate for Large-scale Vehicle Routingcited by 108
  6. 2021NeuroLKH: Combining Deep Learning Model with Lin-Kernighan-Helsgaun Heuristic for Solving the Traveling Salesman Problemcited by 102
  7. 2020Learning 2-opt Heuristics for the Traveling Salesman Problem via Deep Reinforcement Learningcited by 100
  8. 2020Multi-Decoder Attention Model with Embedding Glimpse for Solving Vehicle Routing Problemscited by 100
  9. 2021Deep Policy Dynamic Programming for Vehicle Routing Problemscited by 94
  10. 2021Learning Collaborative Policies to Solve NP-hard Routing Problemscited by 86
  11. 2019Combinatorial Optimization by Graph Pointer Networks and Hierarchical Reinforcement Learningcited by 78
  12. 2021Graph Neural Network Guided Local Search for the Traveling Salesperson Problemcited by 70
  13. 2023Unsupervised Learning for Solving the Travelling Salesman Problemcited by 57
  14. 2023Pointerformer: Deep Reinforced Multi-Pointer Transformer for the Traveling Salesman Problemcited by 49
  15. 2022Learning to Solve Routing Problems via Distributionally Robust Optimizationcited by 31

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 1; 2025: 2; 2026: 3.

6 papers.