A GREAT Architecture for Edge-Based Graph Problems Like TSP

Attila Lischka, Jiaming Wu, Morteza Haghir Chehreghani, Balázs Kulcsár · DOI

Introduction

Combinatorial optimization problems, such as the Traveling Salesman Problem (TSP), are foundational to logistics and supply chain management. Traditionally, neural approaches to these problems treat them as sets of points in a 2D Euclidean plane. However, real-world routing is rarely so simple. Factors like one-way streets, varying traffic patterns, and elevation changes introduce asymmetry and non-Euclidean costs, where the distance from point $A$ to $B$ is not equal to the distance from $B$ to $A$.

Standard Graph Neural Networks (GNNs) and Transformers often struggle in these scenarios because they are node-centric, aggregating information at the node level and potentially overlooking the directional nuances of the edges. To address this, researchers have introduced GREAT (Graph Edge Attention Network), a novel architecture that elevates edges to "first-class citizens."

The GREAT Architecture

The core innovation of GREAT is its shift from node-focused processing to direct edge-to-edge interaction. By processing edge features directly, the model can more accurately capture the directional costs inherent in asymmetric routing problems.

Edge-to-Edge Attention

Unlike traditional Graph Attention Networks (GATs) that use edges primarily to update node features, GREAT employs an attention mechanism where an edge "attends" to all other edges sharing a common endpoint. This allows the model to learn the relative importance of paths based on their connectivity and cost.

Figure 1: Illustration of the edge-to-edge attention mechanism in GREAT, where edges interact directly based on shared endpoints.

The authors propose two primary variants of the architecture:

  1. GREAT NF (Node-Free): A purely edge-focused model that operates without explicit node features.
  2. GREAT NB (Node-Based): This variant uses temporary node features as "mailboxes" to aggregate edge information before redistributing it to the next edge layer, facilitating broader information flow.

Training Framework

GREAT serves as an encoder within a reinforcement learning framework. It is paired with a multi-pointer network decoder that constructs solutions step-by-step. To handle scaling, the researchers utilized Curriculum Learning (CL), fine-tuning the model on progressively larger problem sizes (from 100 to 500 nodes).

Experimental Evaluation

The model was tested against a variety of synthetic and real-world benchmarks to assess its versatility and performance.

Datasets and Problem Types

The evaluation covered three major routing problem variants:

  • Traveling Salesman Problem (TSP): Finding the shortest tour visiting all nodes.
  • Capacitated Vehicle Routing Problem (CVRP): Routing vehicles with limited capacity to serve customers.
  • Orienteering Problem (OP): Maximizing collected prizes within a fixed distance limit.
Figure 2: Examples of routing problem instances (TSP, CVRP, and OP) solved using the GREAT architecture.

Benchmarks included synthetic distributions—Euclidean (EUC), Asymmetric with triangle inequality (TMAT), and Extremely Asymmetric (XASY)—as well as standard libraries like TSPLIB, CVRPLIB, and OPLIB.

Key Results and Insights

GREAT demonstrated significant improvements over existing methods, particularly in non-Euclidean settings.

  • State-of-the-Art Performance: GREAT outperformed MatNet, the previous benchmark for non-Euclidean problems, across multiple asymmetric TSP and CVRP instances.
  • Generalization: The GREAT NB variant showed impressive "zero-shot" generalization. When trained on 100-node instances, it remained competitive on graphs with up to 1,000 nodes without additional training.
  • Structural Learning: Visualization of node encodings revealed that the model learns to represent nodes similarly if they are connected by "promising" edges—those likely to be part of an optimal solution. This structural understanding guides the decoder effectively.

Conclusion and Future Work

By focusing on edges rather than nodes, GREAT provides a robust solution for the complexities of real-world routing. While it is more computationally intensive during training than some node-centric models, its superior performance on asymmetric tasks and fast inference times make it a compelling choice for practical applications.

Future research will focus on integrating GREAT into "divide-and-conquer" strategies for even larger-scale problems and exploring its utility in other edge-centric fields, such as power grid analysis and molecular chemistry.

Summary updated

BibTeX
@misc{lischka2024great,
  author = {Attila Lischka and Jiaming Wu and Morteza Haghir Chehreghani and Balázs Kulcsár},
  title = {{A GREAT Architecture for Edge-Based Graph Problems Like TSP}},
  year = {2024},
  eprint = {2408.16717},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2408.16717},
}
Figure