Symmetry-preserving graph attention network to solve routing problems at multiple resolutions

Cong Dao Tran, Thong Bach, Truong Son HySubmission to ICLR 2024 · Withdrawn

TL;DR

This paper introduces mEGAT (Multiresolution Equivariant Graph Attention Network), a neural routing solver for Travelling Salesperson (TSP) and Vehicle Routing Problems (VRP). By combining geometric equivariance (invariance to rotations, translations, reflections, and scaling) with a multi-level hierarchical training scheme, mEGAT achieves superior solution quality and remarkable zero-shot generalization across problem sizes and spatial distributions.

What Problem Does This Paper Address?

Deep reinforcement learning models (such as Pointer Networks and Attention Models) have emerged as fast alternatives to classical heuristics and exact solvers for NP-hard routing problems. However, existing learning-based methods suffer from two major flaws:

  1. Ignoring geometric symmetries: Routing problems in 2D Euclidean space are fundamentally invariant to geometric transformations—rotating, translating, or uniformly scaling city coordinates does not change the optimal tour. Standard architectures lack built-in equivariance, leading to brittle predictions under simple coordinate transformations.
  2. Locality bias and myopic search: Most graph neural networks rely on localized message passing, missing long-range hierarchical structure and frequently getting trapped in local optima on larger instances.

Methods

The authors propose mEGAT, which addresses both challenges through an equivariant architecture and multiresolution training:

  • Equivariant Graph Attention Encoder: Replaces the standard Transformer/GNN encoder with equivariant layers (adapting operators from Equiformer). The encoder maps 2D coordinates into representations that commute with permutation ($S_n$), 2D rotation ($SO(2)$), translation, and uniform scaling. The decoder retains the autoregressive attention architecture from standard Attention Models.
  • Multiresolution Graph Construction: The input graph $G$ is hierarchically structured using GPU-accelerated $K$-means clustering ($L=2$ levels in experiments):
  • Sub-graphs (Local context): Induced sub-graphs corresponding to node clusters, capturing dense local spatial interactions.
  • Coarsened high-level graphs (Global context): A high-level graph where each cluster centroid becomes a super-node with Euclidean inter-cluster edge weights.
  • Joint Multi-Scale Training: Instead of heuristically stitching sub-tours at inference time, the model is trained jointly across all resolutions (original graph, sub-graphs, and coarsened graph) using shared network weights and a combined REINFORCE objective (leveraging POMO's multi-start rollout baseline).

Datasets

  • Synthetic Uniform Euclidean Instances: 2D coordinates uniformly sampled in $[0, 1]^2$ for TSP and Capacitated VRP (CVRP) at sizes $n \in \{20, 50, 100\}$ (10,000 evaluation instances per size).
  • Synthetic Clustered and Mixed Distributions: Datasets generated with $n \in \{20, 50, 100\}$ nodes distributed around $n_c \in \{3, 5, 10\}$ cluster centroids (pure cluster or 50/50 uniform-cluster mix).
  • Real-World Benchmark (TSPLIB): 34 standard 2D Euclidean instances ranging from 50 to 400 nodes (e.g., berlin52, kroA100, pr226) to evaluate cross-distribution and scale-up generalization.

Key Insights and Ideas

  • Invariance via Architecture beats Data Augmentation: Rather than relying on data augmentation or test-time symmetry averaging (like Sym-NCO), baking exact transformation equivariance directly into the neural layers guarantees consistent tour generation regardless of coordinate frame shifts or rotations.
  • Shared Representation Across Problem Scales: By exposing the same network weights to both small sub-problems and coarse global graphs, the model simultaneously learns fine-grained neighborhood tour construction and broad inter-cluster topology.
  • Eliminating Fragile Merging Heuristics: Traditional divide-and-conquer neural approaches often fail because merging sub-tours is error-prone. mEGAT uses sub-graphs purely to regularize and enrich multi-scale feature learning, allowing the end-to-end decoder to output full global tours directly.

Key Results

  • Synthetic TSP & CVRP Benchmarks: On TSP100 with sampling decoding (1,280 samples), mEGAT achieves an optimality gap of 0.25%, outperforming POMO (0.48%) and Sym-NCO (0.39%). For CVRP100, mEGAT achieves a 1.21% gap compared to POMO's 1.67% and Sym-NCO's 1.46%.
  • Generalization to Variable Sizes: A model trained only on TSP100 generalizes to smaller sizes with minimal degradation: a 0.27% gap on TSP20 (vs. 1.06% for POMO) and 0.18% on TSP50 (vs. 0.71% for POMO).
  • Real-World TSPLIB Evaluation: When evaluated zero-shot on 34 TSPLIB instances (50–400 nodes), mEGAT achieves an average optimality gap of 1.23%, significantly outperforming POMO (2.11%) and Sym-NCO (1.90%).
  • Robustness to Transformations: When evaluated under 90° rotations, translations, and scaling, baseline models suffer noticeable performance degradation, whereas mEGAT exhibits stable, flat error curves.

Limitations and Future Work

  • Fixed Cluster Hyperparameters: In the current setup, $K$ is treated as a static hyperparameter and the multiresolution hierarchy is restricted to two levels ($L=2$); dynamic or adaptive clustering depth based on instance complexity is left unexplored.
  • Scaling to Very Large Graphs: While the model exhibits improved transfer to instances up to 400 nodes, evaluating on graphs with thousands of nodes (where quadratic attention becomes a computational bottleneck) was not investigated.
  • Extension to Broader Combinatorial Domains: The authors suggest applying the multi-scale equivariant paradigm to other NP-hard graph optimization problems beyond Euclidean routing.

Summary updated

Abstract

Travelling Salesperson Problems (TSPs) and Vehicle Routing Problems (VRPs) have achieved reasonable improvement in accuracy and computation time with the adaptation of Machine Learning (ML) methods. However, none of the previous works completely respects the symmetries arising from TSPs and VRPs including rotation, translation, permutation, and scaling. In this work, we introduce the first-ever completely equivariant model and training to solve combinatorial problems. Furthermore, it is essential to capture the multiscale structure (i.e. from local to global information) of the input graph, especially for the cases of large and long-range graphs, while previous methods are limited to extracting only local information that can lead to a local or sub-optimal solution. To tackle the above limitation, we propose a Multiresolution scheme in combination with Equivariant Graph Attention network (mEGAT) architecture, which can learn the optimal route based on low-level and high-level graph resolutions in an efficient way. In particular, our approach constructs a hierarchy of coarse-graining graphs from the input graph, in which we try to solve the routing problems on simple low-level graphs first, then utilize that knowledge for the more complex high-level graphs. Experimentally, we have shown that our model outperforms existing baselines and proved that symmetry preservation and multiresolution are important recipes for solving combinatorial problems in a data-driven manner. Our source code is publicly available at [anonymous url].
BibTeX
@misc{tran2023symmetry,
  author = {Cong Dao Tran and Thong Bach and Truong Son Hy},
  title = {{Symmetry-preserving graph attention network to solve routing problems at multiple resolutions}},
  year = {2023},
  eprint = {2310.15543},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2310.15543},
}
Figure