Abstract
This paper introduces a hybrid approach for solving NP-hard graph sparsification problems by combining Graph Neural Networks (GNNs) with Monte Carlo Tree Search (MCTS). By using a GNN to guide the search for critical "bridge" nodes, the method consistently outperforms standard approximation algorithms and achieves nearly optimal results for Steiner trees and graph spanners. The framework demonstrates strong generalization capabilities, performing well on complex, non-Euclidean instances even when trained on simpler synthetic data.
Introduction
Graph sparsification is the process of finding a subgraph that preserves essential properties of the original graph—such as connectivity or distances—while minimizing the number of edges or total weight. This optimization is critical across various domains, including transit system planning and VLSI circuit design.
The authors focus on three specific NP-hard problems:
- Steiner Tree Problem: Finding the minimum weight tree connecting a specific subset of "terminal" nodes.
- Subsetwise Multiplicative Spanners: Creating a subgraph where the distance between terminals is at most $\alpha$ times the original distance.
- Subsetwise Additive Spanners: Creating a subgraph where the distance between terminals is at most the original distance plus a constant error $\beta$.
Traditional heuristics often provide sub-optimal solutions, while exact solvers like Integer Linear Programming (ILP) are computationally prohibitive for large-scale graphs. This research seeks a middle ground that balances speed and high accuracy.
Methodology: GNN-Assisted MCTS
The proposed framework, GNN-assisted MCTS, decomposes the sparsification problem into a search-and-refine pipeline. The process transitions from an initial input graph through a neural-guided search to a final pruned subgraph.
Core Components
- GSE-GNN (Generalized Static Edge GNN): To handle arbitrary, non-Euclidean graphs, the authors utilized a "spring embedder" to generate synthetic coordinates. The GNN is trained to predict which nodes (potential "bridge" or Steiner nodes) should be added to a partial solution to improve the sparsification.
- Monte Carlo Tree Search (MCTS): Instead of a simple greedy selection, MCTS explores the search tree of possible node additions. It uses the GNN’s predictions as a prior to prioritize promising branches (Expansion) and performs simulations to estimate the long-term cost of a path.
- Pruning: After identifying a set of critical nodes via MCTS, standard algorithms (like Minimum Spanning Trees) connect them. Redundant edges and nodes are then pruned to ensure the final subgraph is as lean as possible.
Experimental Setup and Datasets
The model was evaluated on two primary types of data:
- Random Geometric Graphs: Synthetic graphs (20, 50, and 100 nodes) used for training and initial benchmarking.
- SteinLib: A library of notoriously difficult Steiner tree instances (I080 and I160 datasets with 80 and 160 nodes, respectively), designed to challenge traditional algorithms.
A key finding was that starting the MCTS with the predefined "terminal" nodes as a head start significantly improved performance compared to starting from an empty set.
Key Results
The GNN-MCTS approach consistently outperformed the standard 2-approximation algorithm across all tested graph sizes. As shown in the performance plots below, the cost of solutions found by MCTS closely tracks the mathematically optimal (OPT) cost, whereas the 2-approximation heuristic often deviates significantly.
Performance Highlights
- Steiner Trees: The method frequently found solutions nearly identical to the OPT.
- Spanners: For additive spanners, the framework was significantly more effective than the standard subsetwise $+2W$ heuristic.
- Efficiency: While exact ILP solvers can take over 20 hours for a 100-node graph, GNN-MCTS provides high-quality solutions in minutes.
- Generalization: Models trained on small synthetic graphs generalized effectively to larger, non-Euclidean "hard" instances from SteinLib, suggesting the GNN learns fundamental structural properties of efficient networks.
Conclusion and Future Work
The GNN-assisted MCTS framework offers a robust alternative to traditional heuristics and exact solvers for graph sparsification. While the training process is computationally intensive (roughly 20 hours) and the search latency is higher than simple greedy methods, the gains in accuracy and the ability to generalize to unseen graph types make it a powerful tool for complex network optimization. Future research may explore end-to-end neural pruning to further reduce dependency on traditional post-processing algorithms.
Summary updated