SeedGNN: Graph Neural Network for Supervised Seeded Graph Matching

Liren Yu, Jiaming Xu, Xiaojun Lin

TL;DR

SeedGNN is a novel supervised Graph Neural Network (GNN) designed to solve the "seeded graph matching" problem—aligning nodes between two unlabeled graphs using only a tiny set of known correspondences (seeds). Unlike previous semi-supervised methods that require large seed sets and fail to generalize, SeedGNN learns transferable matching strategies from training data, allowing it to match unseen graphs of different sizes and structures with high accuracy.

What Problem Does This Paper Address?

Graph matching (or network alignment) is the task of finding which node in Graph A corresponds to which node in Graph B based on their connections. This is a foundational problem in fields ranging from social network de-anonymization to protein-protein interaction analysis.

Supervised learning paradigm of SeedGNN

In "seeded" graph matching, we are given a few "seed" pairs—nodes we already know are matches. Most recent GNN approaches to this problem are semi-supervised: they train on the specific pair of graphs they are trying to match. This leads to two major bottlenecks:

  1. Data Hunger: They require a large number of seeds (often an unrealistic amount) to achieve high accuracy.
  2. Lack of Generalization: They cannot "transfer" knowledge. If you train a semi-supervised GNN to match two specific social networks, that model is useless for matching two different biological networks.

The authors of SeedGNN ask: Can we learn a general strategy for matching graphs that works even when we only have a handful of seeds?

Methods

SeedGNN moves away from the standard "node-based" GNN architecture (where each node gets an embedding) to a "pair-wise" architecture. It evaluates the similarity of every possible pair of nodes $(i, j)$ across the two graphs.

The architecture is built on two key theoretical insights:

  • Witness-like Information (Convolution Module): In graph matching theory, a "witness" for a pair $(i, j)$ is a seed pair $(u, u')$ where $u$ is a neighbor of $i$ and $u'$ is a neighbor of $j$. SeedGNN uses a pair-wise convolution to count these witnesses across multiple "hops" (neighbors of neighbors).
  • Percolation (Percolation Module): Some matches are easier to find than others. SeedGNN uses a "percolation" strategy where high-confidence matches found in early layers are treated as "new seeds" for subsequent layers.

Crucially, the authors include a "Masking" step using the Hungarian matching algorithm. This "cleans" the similarity matrix at each layer, ensuring that only high-confidence, injective matches are used to trigger the next stage of the matching process. This prevents the "cascading error" problem common in iterative matching algorithms.

Datasets

The researchers evaluated SeedGNN on a mix of synthetic and real-world data:

  • Correlated Erdős-Rényi Graphs: A standard synthetic benchmark for testing how algorithms handle varying levels of graph noise and sparsity.
  • Facebook Networks: Real-world social network data with power-law degree distributions.
  • SHREC’16: A computer vision dataset of 3D deformable shapes. This was used to test generalization, as the model was trained on Erdős-Rényi and Facebook graphs but tested on 3D meshes.
  • Willow Object Dataset: Images of faces, motorbikes, cars, etc., used to demonstrate how SeedGNN can refine the outputs of other "seedless" matching algorithms.

Key Insights and Ideas

  • Pair-wise is Powerful: By focusing on the relationship between pairs of nodes across graphs rather than individual node embeddings, the model can explicitly count topological "witnesses," which is a much more robust signal for matching than abstract feature vectors.
  • Cleaning the Noise: The "aha moment" in the architecture is the use of the Hungarian algorithm inside the network layers. Most GNNs produce "soft" similarities that are noisy; by forcing a "hard" matching (masking) at each layer, SeedGNN mimics the successful "percolation" logic found in theoretical matching algorithms.
  • Generalization is Possible: The model learns topological rules (e.g., "if these two nodes share three seed-neighbors, they are likely a match") rather than memorizing specific graph structures. This allows a model trained on 100-node graphs to successfully match 500-node graphs.

Key Results

Accuracy comparison between SeedGNN and SSL GNN Source, p. 2

Accuracy comparison between SeedGNN and SSL GNN
  • Superior Accuracy with Fewer Seeds: On synthetic graphs, SeedGNN achieved high accuracy with a seed fraction ($\theta$) as low as 0.01, while semi-supervised GNNs (SSL-GNN) failed completely until the seed set was much larger.
  • Domain Generalization: In the SHREC’16 test, SeedGNN outperformed other supervised GNNs (like NGM) by a significant margin (43.1% vs 37.9%), despite the test graphs being from a completely different domain than the training data.
  • Refinement Pipeline: When used to "clean up" the results of other algorithms on the Willow dataset, a pipeline of DGMC + SeedGNN reached 98.9% accuracy, outperforming all standalone state-of-the-art methods.

Limitations and Future Work

  • Topology Only: The current version of SeedGNN relies purely on graph structure. While the authors showed it can be integrated into pipelines that use node features (like images), the core architecture doesn't natively fuse topological and non-topological features.
  • Computational Complexity: The use of the Hungarian algorithm ($O(n^3)$) can be a bottleneck for very large graphs. The authors suggest using a Greedy Max-Weight Matching (GMWM) as a more scalable alternative ($O(n^2 \log n)$).
  • Future Directions: The authors suggest extending these "percolation" and "pair-wise" insights to seedless graph matching, where no initial correspondences are known at all.

Summary updated

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