Revisit the Algorithm Selection Problem for TSP with Spatial Information Enhanced Graph Neural Networks

Ya Song, Laurens Bliek, Yingqian ZhangICAART 2023

TL;DR

This paper introduces GINES, a novel Graph Neural Network (GNN) for the Traveling Salesperson Problem (TSP) algorithm selection task. GINES directly processes TSP instances as graphs, learning spatial information without requiring handcrafted features or image conversions, and outperforms existing CNN-based and feature-based methods.

What Problem Does This Paper Address?

The "algorithm selection problem" aims to predict which algorithm will perform best for a given instance of an optimization problem. For the well-studied Traveling Salesperson Problem (TSP), traditional approaches rely on handcrafted features derived from domain expertise. While Convolutional Neural Networks (CNNs) have emerged as a feature-free alternative, they require converting TSP instances into multiple images, which can be cumbersome, introduce irrelevant parameters, and potentially lose crucial information. This paper addresses the need for a more direct, efficient, and generalizable method for TSP algorithm selection that avoids these limitations.

Methods

The core contribution is GINES (GINE with Spatial information), a Graph Neural Network (GNN) designed for TSP algorithm selection. Unlike previous methods, GINES treats TSP instances directly as graphs, where cities are nodes and connections are edges.

Key innovations include:

  • Graph Representation: TSP instances are represented as graphs where node features are city coordinates and edge features are Euclidean distances.
  • Spatial Information Enhancement: GINES incorporates a local neighborhood feature extractor that explicitly calculates the difference between a node's coordinates and its neighbors' coordinates. This helps capture local spatial relationships, similar to techniques used in point cloud processing.
  • Flexible Aggregators: GINES allows for the use of multiple aggregators (MAX, SUM, and a novel SD aggregator) to combine neighborhood information. The SD (Standard Deviation) aggregator is particularly relevant as it relates to TSP instance hardness.
  • Feature-Free Approach: GINES takes raw coordinates and distances as input, eliminating the need for manual feature engineering or image generation.

Datasets

The paper evaluates GINES on two public TSP algorithm selection datasets:

  • TSP-ISA dataset: Contains 1330 TSP instances with 100 cities each, divided into seven groups based on instance characteristics. This dataset is used for binary classification (predicting which of two algorithms is better).
  • TSP-CNN dataset: Contains 1000 TSP instances with 1000 cities each. This dataset is designed such that instances are easy for one algorithm and hard for another, and it is used for evaluating performance with larger instances.

Key Insights and Ideas

  • Graphs are Natural for TSP: Representing TSP instances as graphs is a more direct and efficient approach than converting them to images, avoiding the loss of information and introduction of irrelevant parameters associated with image generation.
  • Spatial Information is Key: Explicitly capturing local spatial relationships between cities (e.g., distances and relative positions) is crucial for effective algorithm selection.
  • SD Aggregator's Relevance: The Standard Deviation (SD) of distances is a known indicator of TSP instance hardness. Incorporating an SD aggregator in the GNN can leverage this insight for better performance.
  • GNNs Outperform CNNs and Feature-Based Methods: The proposed GNN architecture, GINES, demonstrates superior performance, suggesting that graph-based learning is a powerful paradigm for this task.

Key Results

  • Superior Accuracy: GINES consistently outperforms traditional feature-based methods (like Random Forest) and CNN-based approaches on both datasets.
  • TSP-ISA Performance: GINES achieves an accuracy of 98.87% (with MAX and SUM aggregators), significantly higher than the best feature-based RF model (95.79%) and CNN (93.38%).
  • TSP-CNN Performance: On the larger TSP-CNN dataset, GINES achieves 72.60% accuracy with the SD aggregator, slightly outperforming CNN (71.80%) and significantly better than feature-based RF models.
  • SD Aggregator Advantage: For the TSP-CNN dataset, the SD aggregator in GINES shows a slight advantage over MAX and SUM aggregators.

Limitations and Future Work

  • Generalization to Other Problems: While GINES is designed to be more generalizable than CNNs, its direct application to other complex routing problems like Asymmetric TSP (ATSP) or Vehicle Routing Problem (VRP) might require modifications, such as adding node features to distinguish depots from customers or adapting edge features for non-Euclidean metrics.
  • Future Directions: The authors plan to explore GINES architectures for more complex problems like ATSP and VRP, and to test them on real-world instances. They also suggest that this work can serve as a foundation for algorithm selection or instance hardness prediction for other graph-defined combinatorial optimization problems.

Summary updated

BibTeX
@inproceedings{song2023revisit,
  author = {Ya Song and Laurens Bliek and Yingqian Zhang},
  title = {{Revisit the Algorithm Selection Problem for TSP with Spatial Information Enhanced Graph Neural Networks}},
  booktitle = {ICAART},
  year = {2023},
  url = {https://openreview.net/forum?id=7dVe6so8HB},
}
Figure