Computing Steiner Trees using Graph Neural Networks

Abu Reyan Ahmed, Md Asadullah Turja, Faryad Darabi Sahneh, Mithun Ghosh, Keaton Hamm, Stephen G. KobourovarXiv 2021

Introduction

The Steiner Tree Problem (STP) is a fundamental challenge in combinatorial optimization with applications ranging from circuit layout to network design. Given a graph and a subset of "terminal" nodes, the goal is to find a minimum-cost tree that connects all terminals. Because STP is NP-complete, researchers typically rely on approximation algorithms, such as the standard 2-approximation heuristic.

A sample graph illustrating the Steiner Tree Problem. Nodes A, B, and C could be terminals, with D serving as a potential Steiner point to minimize total edge weight.

Unlike a Minimum Spanning Tree (MST), which must connect every node in the graph, the STP allows for the inclusion of "Steiner points"—additional non-terminal nodes that can act as hubs to reduce the overall path length. Identifying the optimal set of Steiner points is the core difficulty of the problem.

Methodology

This research explores whether Graph Neural Networks (GNNs) can improve upon classical heuristics by learning to identify high-quality Steiner point candidates. The study evaluates four neural architectures: Feed-forward Neural Networks (FFNN), Graph Neural Networks (GNN), Graph Convolutional Networks (GCN), and Graph Attention Networks (GAT).

The GCN/GAT network architecture used in the study, featuring multiple graph layers followed by linear MLP layers and ReLU/Dropout activations.

The models were deployed in two distinct frameworks:

  1. The Black-Box Method: The neural network directly predicts the nodes belonging to the Steiner tree, which are then connected via an induced MST.
  2. The Learning-Assisted Heuristic: A hybrid approach where the GNN acts as a "candidate generator." It identifies potential Steiner points, which are then added to the terminal set before applying the classical 2-approximation algorithm. This method leverages the pattern-recognition capabilities of GNNs while maintaining the structural guarantees of traditional algorithms.

Experimental Setup

To train and validate these models, the authors generated a dataset of 40,000 STP instances across four random graph models:

  • Erdős–Rényi (ER): Randomly connected graphs.
  • Watts–Strogatz (WS): Small-world networks with high clustering.
  • Barabási–Albert (BA): Scale-free networks characterized by "hub" nodes.
  • Random Geometric (GE): Spatially-constrained graphs where nodes are connected based on proximity.

The models were further stress-tested on SteinLib, a benchmark library of challenging STP instances.

Key Results and Insights

The findings suggest that GNNs are most effective when used as feature extractors rather than end-to-end solvers. The "Black-Box" approach often struggled to maintain global connectivity, frequently underperforming compared to the 2-approximation baseline.

However, the Learning-Assisted Heuristic consistently outperformed the classical 2-approximation algorithm. On the SteinLib benchmarks, the GNN-assisted models achieved an average approximation ratio of 1.21, compared to 1.24 for the standard heuristic. While the hybrid models are computationally more intensive, the simple "Black-Box" variants were found to be 5-10 times faster than traditional methods, offering a significant speed advantage for real-time applications where near-optimality is sufficient.

Conclusion

This work demonstrates that integrating deep learning with classical combinatorial algorithms can yield superior results for NP-complete problems like the Steiner Tree Problem. Future research may focus on incorporating edge-centric GNNs to better handle weighted graphs and exploring reinforcement learning to optimize the tree construction process itself.

Summary updated

BibTeX
@misc{ahmed2021computing,
  author = {Abu Reyan Ahmed and Md Asadullah Turja and Faryad Darabi Sahneh and Mithun Ghosh and Keaton Hamm and Stephen G. Kobourov},
  title = {{Computing Steiner Trees using Graph Neural Networks}},
  year = {2021},
  eprint = {2108.08368},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2108.08368},
}
Figure