GraphGLOW: Universal and Generalizable Structure Learning for Graph Neural Networks

Wentao Zhao, Qitian Wu, Chenxiao Yang, Junchi YanKDD 2023 · DOI

Abstract

Graph structure learning is a well-established problem that aims at optimizing graph structures adaptive to specific graph datasets to help message passing neural networks (i.e., GNNs) yield effective and robust node embeddings. However, the common limitation of existing models lies in the underlying closed-world assumption: the testing graph is the same as the training graph. This premise requires independently training the structure learning model from scratch for each graph dataset, which leads to prohibitive computation costs and potential risks for serious over-fitting. To mitigate these issues, this paper explores a new direction that moves forward to learn a universal structure learning model that can generalize across graph datasets in an open world. We first introduce the mathematical definition of this novel problem setting and describe the model formulation from a probabilistic data-generative aspect. Then we devise a general framework that coordinates a single graph-shared structure learner and multiple graph-specific GNNs to capture the generalizable patterns of optimal message-passing topology across datasets. The well-trained structure learner can directly produce adaptive structures for unseen target graphs without any fine-tuning. Across diverse datasets and various challenging cross-graph generalization protocols, our experiments show that even without training on target graphs, the proposed model i) significantly outperforms expressive GNNs trained on input (non-optimized) topology, and ii) performs on par with state-of-the-art models that independently optimize adaptive structures for specific target graphs, with notably orders-of-magnitude acceleration for training on the target graph.

Introduction

Graph Neural Networks (GNNs) are highly dependent on the quality of the input graph structure. In practice, real-world graphs are often noisy, containing spurious edges or missing critical connections. Graph Structure Learning (GSL) addresses this by optimizing the graph's edges alongside the GNN’s weights. However, traditional GSL models operate under a "closed-world" assumption, where models are trained and tested on the same graph. This leads to prohibitive computational costs due to complex bi-level optimization and a high risk of overfitting on small datasets.

To overcome these limitations, we propose Open-World Graph Structure Learning. This paradigm shifts the focus toward learning a universal structure learner that can generalize across different datasets. By training on multiple "source" graphs, the model learns transferable principles of optimal connectivity that can be applied to unseen "target" graphs.

Methodology

We introduce GraphGLOW (Graph Structure Learning Model for Open-World Generalization), a framework that coordinates a single, shared structure learner ($g_\theta$) with multiple graph-specific GNNs ($h_w$).

The GraphGLOW framework coordinates a shared structure learner across multiple source graphs to generalize to unseen target graphs.

The structure learner captures universal patterns of message-passing topology using a multi-head weighted similarity function, allowing it to adapt to both homophilous and non-homophilous data. To ensure scalability, GraphGLOW employs a pivot-based mechanism. Instead of computing $O(N^2)$ pairwise similarities, it uses a small subset of $P$ nodes (pivots) to create a bipartite bottleneck, reducing complexity to $O(NP)$. The model is optimized using variational inference, specifically maximizing the Evidence Lower Bound (ELBO) to make the discrete graph sampling process differentiable.

Experimental Evaluation

The model was evaluated across two distinct domains: citation networks (Cora, CiteSeer, PubMed) and social networks (Facebook-100 datasets: Cornell5, Johns Hopkins55, Amherst41, Reed98). We tested two generalization protocols:

  1. In-domain: Training on a subset of social networks and testing on others.
  2. Cross-domain: Training on citation networks and testing on social networks (and vice versa).

Results and Discussion

GraphGLOW demonstrates that the logic of optimal message-passing is indeed transferable across domains. Even when trained on social networks, the model successfully refined structures for citation networks, often increasing the "homophily ratio" and making node classification easier for the backbone GNN.

Comparison of accuracy and training time across various datasets, demonstrating GraphGLOW's significant speed advantage over state-of-the-art GSL models.

Key findings include:

  • Efficiency: Because the structure learner is pre-trained and frozen during inference, training on target graphs is up to 25× faster than traditional GSL methods like IDGL or LDS.
  • Performance: GraphGLOW consistently outperformed standard GNNs (GCN, GAT) trained on original noisy graphs, sometimes by over 5% in accuracy. It performed on par with state-of-the-art models that were allowed to train directly on the target graph.
  • Robustness: The model showed superior resilience to edge deletion attacks, maintaining performance even when 10-50% of edges were randomly removed.

Conclusion

GraphGLOW represents a significant step toward universal graph structure learning. By moving beyond the closed-world assumption, we achieve both high performance and massive efficiency gains. Future work will explore more advanced backbone architectures, such as Graph Transformers, and seek to establish formal theoretical bounds for structure learning generalization across disparate data distributions.

Summary updated

BibTeX
@inproceedings{zhao2023graphglow,
  author = {Wentao Zhao and Qitian Wu and Chenxiao Yang and Junchi Yan},
  title = {{GraphGLOW: Universal and Generalizable Structure Learning for Graph Neural Networks}},
  booktitle = {ACM SIGKDD Conference on Knowledge Discovery and Data Mining},
  year = {2023},
  doi = {10.1145/3580305.3599373},
}
Figure