SeedGNN: Graph Neural Networks for Supervised Seeded Graph Matching

Liren Yu, Jiaming Xu, Xiaojun Lin · OpenReview

Abstract

There is a growing interest in designing Graph Neural Networks (GNNs) for seeded graph matching, which aims to match two unlabeled graphs using only topological information and a small set of seed nodes. However, most previous GNNs for this task use a semi-supervised approach, which requires a large number of seeds and cannot learn knowledge that is transferable to unseen graphs. In contrast, this paper proposes a new supervised approach that can learn from a training set how to match unseen graphs with only a few seeds. Our SeedGNN architecture incorporates several novel designs, inspired by theoretical studies of seeded graph matching: 1) it can learn to compute and use witness-like information from different hops, in a way that can be generalized to graphs of different sizes; 2) it can use easily-matched node-pairs as new seeds to improve the matching in subsequent layers. We evaluate SeedGNN on synthetic and real-world graphs and demonstrate significant performance improvements over both non-learning and learning algorithms in the existing literature. Furthermore, our experiments confirm that the knowledge learned by SeedGNN from training graphs can be generalized to test graphs of different sizes and categories.

Introduction

Graph matching, or network alignment, is a fundamental problem in graph theory: identifying corresponding nodes across two different graphs based solely on topological information. This task is critical in domains ranging from social network de-anonymization to computational biology. A common variant is seeded graph matching, where a small set of pre-aligned node pairs (seeds) is available to guide the process.

Seeded graph matching involves identifying node correspondences (e.g., 2-2', 5-5') to align two graphs using topological structure.

While Graph Neural Networks (GNNs) have shown promise, existing approaches are primarily semi-supervised. These models typically require a large fraction of nodes to be seeds and struggle to generalize knowledge to unseen graph pairs. SeedGNN addresses these limitations through a supervised learning framework that treats graph matching as a learning problem across many examples.

The SeedGNN Architecture

SeedGNN is designed to learn transferable matching strategies from a training set of matched graph pairs. Its architecture is built on two core theoretical pillars:

  • Pair-wise Convolution and Witnesses: Unlike standard node-based GNNs that compute embeddings for nodes independently, SeedGNN operates on node pairs $(v, w)$ across graphs. This allows the model to explicitly count "witnesses"—common neighbors that are already matched or seeded—providing a strong structural signal for alignment.
  • Percolation and Error Correction: The model employs a percolation module that iteratively identifies high-confidence matches to serve as "new seeds" for subsequent layers. To prevent error propagation, a "cleaning" step using the Hungarian algorithm filters out low-confidence similarities at each stage, ensuring only the most reliable matches are passed forward.
The SeedGNN supervised framework learns transferable knowledge from training sets to match unseen test graphs, significantly outperforming semi-supervised GNN (SSL GNN) baselines.

Experimental Evaluation

The authors evaluated SeedGNN on both synthetic (Erdős-Rényi) and real-world datasets, including Facebook social networks, SHREC’16 3D meshes, and Willow Object images.

Key Results

  • Efficiency and Generalization: SeedGNN achieves high accuracy with significantly fewer seeds than semi-supervised baselines. Crucially, it demonstrates strong generalization, successfully matching large real-world graphs after being trained on small synthetic ones ($n=100$).
  • Robustness: By avoiding standard degree-based normalization that can "wash out" signals in large graphs, SeedGNN maintains performance across varying graph sizes and densities.
  • Refinement Capability: On the Willow Object dataset, SeedGNN was used to refine the outputs of other algorithms, achieving a state-of-the-art mean accuracy of 98.9%.

Conclusion and Future Directions

SeedGNN represents a significant step forward in supervised graph matching, proving that matching logic can be learned and transferred across diverse graph types. While the current $O(n^3)$ complexity of the Hungarian algorithm step poses scaling challenges for massive graphs, future work may explore more efficient greedy matching approximations or meta-learning techniques to further enhance adaptability.

Summary updated

BibTeX
@inproceedings{yu2023seedgnn,
  author = {Liren Yu and Jiaming Xu and Xiaojun Lin},
  title = {{SeedGNN: Graph Neural Networks for Supervised Seeded Graph Matching}},
  booktitle = {International Conference on Machine Learning},
  year = {2023},
  url = {https://openreview.net/forum?id=sag7iLqPvC},
}
Figure