From Link Prediction to Linear Community Detection: A Finite-Sample Guarantee for Graph Pretraining
Ying Chen, Zhangyang "Atlas" Wang, Yixuan He
NeurIPS page · OpenReview · Open on the map
Category: Graphs, OOD Detection & Medical Imaging › Graph Neural Network Signal Propagation · Type: theory · Keywords: link prediction, graph neural networks, community detection, finite-sample guarantee, stochastic block model
Areas: Graph Learning › Graph Analysis Methods › Spectral Graph Methods
Summary
The paper provides a finite-sample guarantee that link-prediction pretraining for graph neural networks yields embeddings that are linearly useful for community detection in stochastic block models.
Explained to a 5-year-old
Scientists teach computers to guess hidden connections in a network. They want to know if this guessing also helps the computer to correctly separate different groups of points. They prove that if the guessing is good, the computer can reliably tell the groups apart. They also show a simple rule using math to do this separation. Their tests on made-up networks confirm that the idea works as expected.
Explained to a 5-year-old, longer
Scientists build computer models that look at networks of points connected by lines. They often train these models to predict which points are connected, even if the connections are hidden. This training is called link prediction. They noticed that after training, the model can also tell which points belong to the same group, which is useful for many tasks. They wanted to understand why this works and if it always works. They studied a simple random model of networks called the stochastic block model. In this model, points naturally form groups, and the scientists proved that good link prediction implies good group detection. They showed that the error of the group detection depends on how well the model predicts links. They also gave a concrete way to separate groups using a simple math rule. They tested everything on artificially created networks and saw that the theory matches practice. The results give confidence that link prediction can be trusted for finding groups in real networks.
For a technical reader
The work shows that training a graph neural network to predict hidden edges (link prediction) also produces node embeddings that can be used with a simple linear classifier for community detection. A theoretical analysis in the stochastic block model proves that low link-prediction error guarantees low classification error, breaking the total error into optimization, approximation, and statistical components. The authors provide a concrete nearest-centroid classifier based on a PSD quadratic form and demonstrate the theory on synthetic SBM experiments. This gives both a rigorous justification and practical validation for using link-prediction pretraining in graph tasks.
Problem
It is unclear why link-prediction pretraining produces embeddings that can be used with a simple linear classifier for node or community classification tasks.
Method
The approach analyzes the finite-sample stochastic block model, proves a conditional reduction linking link-prediction excess risk to community-classification error, decomposes the bound into optimization, approximation, and statistical terms, and provides a constructive nearest-centroid classifier based on a PSD quadratic form.
Results
The theoretical bound shows classification error scales as widetildeO(sqrtd/n) and the constructive classifier achieves O(log n / n) error for a GIN with spectral positional encoding; synthetic SBM experiments confirm the chain from link-prediction risk to classification error.
Contributions
Provides a finite-sample guarantee linking link-prediction pretraining to linear community detection, decomposes the error into optimization, approximation, and statistical components, and offers a constructive nearest-centroid classifier with explicit error bounds.
Limitations and assumptions
The analysis assumes bounded GNN encoders and dense regimes, and the constants may be conservative in practice.
This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction