TL;DR
This paper introduces a novel framework for subsampling graph datasets—reducing both the total number of graphs and the size of individual graphs—while providing rigorous theoretical guarantees on the performance of Graph Neural Networks (GNNs) trained on the resulting subset. By leveraging the Tree Mover’s Distance (TMD), the authors develop a "label-agnostic" and "model-agnostic" approach that outperforms existing methods across multiple benchmarks.
Addressing the Scalability Bottleneck
Training GNNs is a resource-intensive process. In domains like drug discovery or clinical diagnostics, labeling a single graph (e.g., a molecule) can require expensive laboratory experiments or expert manual annotation. Furthermore, as datasets scale to millions of graphs, storing and training on the full set becomes computationally prohibitive.
The natural solution is subsampling: selecting a small, representative subset (a "coreset") for training. However, most existing subsampling methods suffer from a "chicken-and-egg" problem: they are either label-aware (requiring full dataset labeling just to select a subset) or model-specific (requiring knowledge of the exact GNN architecture beforehand). If the subsampling method is suboptimal, model performance collapses. This research addresses a fundamental question: How can we select a subset of graphs—without looking at labels or knowing the final model—that provably preserves GNN performance?
Methodology: The Power of Tree Mover’s Distance
The authors frame subsampling as a coreset construction problem, utilizing the Tree Mover’s Distance (TMD) as their primary metric.
- The Metric (TMD): TMD compares graphs by analyzing their "computation trees"—the local neighborhood structures that GNNs "see" during message passing. It employs Optimal Transport to measure the minimum effort required to transform one graph's structure into another's.
- Graph Subsampling: To reduce the number of graphs, the authors use a k-medoids objective. They select $k$ graphs such that every graph in the full dataset is "close" (in TMD terms) to at least one graph in the subset.
- Node Subsampling: To reduce the size of individual graphs, they search for a $k$-node subgraph that minimizes the TMD to the original graph.
- Efficiency Boost: Computing TMD is traditionally slow ($O(L|V|^4)$). The authors introduce a new linear-time algorithm ($O(|E|L)$) for computing "tree norms," making this approach practical for large-scale datasets.
Datasets and Evaluation
The method was evaluated on several standard benchmarks for graph classification:
- TUDatasets: MUTAG, PROTEINS, COX2, and NCI1 (chemistry and biology).
- OGBG (Open Graph Benchmark): MOLBACE and MOLBBBP (molecular property prediction).
- Protein Data: DD (large protein structures, used for node subsampling).
Key Insights
- TMD is Essential: Theorem 3.6 proves that other popular graph metrics—such as the Weisfeiler-Lehman (WL) kernel, Shortest-Path kernels, or Graphlet Sampling—cannot provide the same stability guarantees for GNNs. TMD is uniquely suited because it directly mimics the hierarchical way GNNs process information.
- Label-Agnosticism: Because the method only considers graph structure and features, datasets can be subsampled before expensive data annotation.
- The Identity Transport Plan: For node subsampling, the authors discovered that an "identity" transport plan is optimal. This simplifies the mathematics, showing that finding the best subgraph is equivalent to finding the subgraph with the largest "tree norm."
Key Results
The TMD-based approach was compared against several state-of-the-art methods, including DosCond, KiDD, and MIRAGE.
- Superior Performance: In a "Wins" tally across various datasets and sampling percentages (e.g., 1% or 10% of the data), TMD achieved 23 wins in graph subsampling, significantly outperforming the next best method (Random) at 18.
- Robustness: TMD exhibited the fewest "fails" (instances where accuracy dropped below 50%). While methods like DosCond showed high variance and occasionally collapsed without labels, TMD remained stable.
- Node Subsampling: On the DD dataset, TMD-based node subsampling consistently outperformed heuristics like random walks or $k$-core decomposition, demonstrating that preserving the "tree norm" is a superior proxy for GNN performance.
Limitations and Future Work
- Task Specificity: The current analysis is tailored to graph-level tasks. Extending these guarantees to node-level or edge-level tasks remains an open challenge.
- Search Heuristics: For node subsampling, the search space is vast. While the authors use BFS trees, more efficient search methods may exist.
- Hybrid Approaches: Future research could explore simultaneous graph and node subsampling to further maximize efficiency.
Summary updated