TL;DR
Neo-GNNs bridge the gap between traditional structural heuristics (like Common Neighbors) and modern Graph Neural Networks (GNNs) for link prediction. By learning to generate structural features directly from adjacency matrices and explicitly measuring neighborhood overlaps, Neo-GNNs achieve state-of-the-art performance on major benchmarks while remaining computationally efficient.
The Link Prediction Blind Spot
In the world of graph learning, GNNs are the reigning champions for classifying nodes or entire graphs. However, they have a surprising "blind spot": link prediction.
Traditional, simple heuristics—like counting how many friends two people have in common—often outperform sophisticated GNNs in this domain. This is because standard GNNs rely on "feature smoothing," where a node's representation becomes an average of its neighbors. While great for classification, this process washes out the precise structural details (like node degrees and specific overlaps) that signal a likely connection.
Existing attempts to fix this, like the SEAL framework, work by extracting subgraphs for every single pair of nodes. Unfortunately, this is computationally expensive and doesn't scale well to massive networks. The authors of Neo-GNNs set out to create a model that captures these structural nuances without the heavy computational overhead.
Introducing Neo-GNNs
The authors propose Neighborhood Overlap-aware Graph Neural Networks (Neo-GNNs), which explicitly capture structural information while retaining the benefits of feature learning. The architecture consists of two main components:
- Structural Feature Generator ($F_\theta$): Instead of just using raw node attributes (like a user's profile text), Neo-GNN learns to create "structural features" for each node based solely on the adjacency matrix. It uses MLPs to learn functions of node degrees, effectively allowing the model to "discover" its own versions of heuristics like Adamic-Adar or Resource Allocation.
- Neighborhood Overlap-aware Aggregation: Standard GNNs use normalized adjacency matrices, which makes it hard to "count" neighbors. Neo-GNNs use an unnormalized adjacency matrix and a diagonal matrix of the learned structural features. By calculating the inner product of these representations, the model explicitly measures the overlap of multi-hop neighborhoods.
Finally, the model uses a hybrid approach. It computes a structural score (from the Neo-GNN) and a feature-based score (from a standard GNN like GCN) and combines them using a learnable parameter ($\alpha$). This allows the model to decide, per dataset, whether structure or node features are more important for predicting a link.
Key Insights
- Learning the Heuristic: The most elegant part of Neo-GNN is that it generalizes traditional heuristics. The authors show that if you set the internal MLPs to specific functions (like the reciprocal of a log), the Neo-GNN mathematically replicates the Adamic-Adar index.
- The Normalization Trap: The paper highlights that the very thing that makes GNNs stable—normalizing the adjacency matrix—is what kills their ability to perform link prediction. By sticking to unnormalized counts for the structural branch, Neo-GNN retains the "counting" power of simple heuristics.
- Efficiency is Key: Unlike SEAL, which requires a separate GNN pass for every potential link, Neo-GNN computes node representations that can be reused. This makes it as efficient as a standard Graph Autoencoder (GAE).
Performance and Results
The researchers evaluated Neo-GNNs on four large-scale datasets from the Open Graph Benchmark (OGB): OGB-PPA (proteins), OGB-Collab (authors), OGB-DDI (drugs), and OGB-Citation2 (papers). These datasets are the gold standard for testing how well models generalize to real-world, large-scale graph problems.
Neo-GNNs consistently achieved state-of-the-art (SOTA) results across the OGB leaderboard:
- On OGB-Collab and OGB-DDI, Neo-GNNs improved performance over the best previous baselines by 5.4% and 9.6%, respectively.
- The model outperformed SEAL (the previous structural leader) while being significantly faster and more scalable.
Ablation studies (shown above) demonstrated the importance of tuning the maximum hop count ($L$) and the decaying factor ($\beta$) for multi-hop neighborhood overlaps. Furthermore, the learnable $\alpha$ parameter proved crucial; for example, in the DDI dataset, the model learned to weight structural information and node features almost equally to achieve peak performance.
Limitations and Future Work
While powerful, Neo-GNNs have a few limitations:
- Memory Constraints: On the massive OGB-Citation2 dataset, the authors had to simplify the model (fixing certain edge functions to identity functions) to fit within GPU memory limits.
- Scalability: While more efficient than subgraph-based methods, the multi-hop aggregation still involves powers of the adjacency matrix. Future work should focus on even more efficient sparse matrix computations.
- Heuristic Expansion: The current model focuses on neighborhood overlaps. Future iterations could incorporate other structural properties, like shortest path distances or PageRank-style global importance, into the learned structural features.
Summary updated