Skip to main content
QUICK REVIEW

[Paper Review] Graph Neural Networks for Link Prediction with Subgraph Sketching

Benjamin Paul Chamberlain, S. Shirobokov|arXiv (Cornell University)|Sep 30, 2022
Advanced Graph Neural NetworksComputer Science17 citations
TL;DR

This paper proposes ELPH and BUDDY, two novel Graph Neural Network models for link prediction that use subgraph sketching via hashing to efficiently capture structural features like triangle counts and overcome the limitations of standard Message Passing GNNs. ELPH achieves state-of-the-art performance on link prediction benchmarks while being significantly faster than subgraph-based GNNs, and BUDDY extends this with full scalability by precomputing features, outperforming existing methods on standard datasets while maintaining high efficiency.

ABSTRACT

Many Graph Neural Networks (GNNs) perform poorly compared to simple heuristics on Link Prediction (LP) tasks. This is due to limitations in expressive power such as the inability to count triangles (the backbone of most LP heuristics) and because they can not distinguish automorphic nodes (those having identical structural roles). Both expressiveness issues can be alleviated by learning link (rather than node) representations and incorporating structural features such as triangle counts. Since explicit link representations are often prohibitively expensive, recent works resorted to subgraph-based methods, which have achieved state-of-the-art performance for LP, but suffer from poor efficiency due to high levels of redundancy between subgraphs. We analyze the components of subgraph GNN (SGNN) methods for link prediction. Based on our analysis, we propose a novel full-graph GNN called ELPH (Efficient Link Prediction with Hashing) that passes subgraph sketches as messages to approximate the key components of SGNNs without explicit subgraph construction. ELPH is provably more expressive than Message Passing GNNs (MPNNs). It outperforms existing SGNN models on many standard LP benchmarks while being orders of magnitude faster. However, it shares the common GNN limitation that it is only efficient when the dataset fits in GPU memory. Accordingly, we develop a highly scalable model, called BUDDY, which uses feature precomputation to circumvent this limitation without sacrificing predictive performance. Our experiments show that BUDDY also outperforms SGNNs on standard LP benchmarks while being highly scalable and faster than ELPH.

Motivation & Objective

  • To address the poor performance of standard Message Passing GNNs in link prediction due to limited expressive power and inability to distinguish automorphic nodes.
  • To overcome the inefficiency of subgraph-based GNNs (SGNNs), which suffer from high computational cost and redundancy in subgraph construction.
  • To develop a method that captures key structural features—like triangle counts and neighborhood similarity—without explicitly constructing subgraphs.
  • To enable scalable inference and training by precomputing features, allowing models to handle large graphs beyond GPU memory constraints.
  • To achieve state-of-the-art performance on standard link prediction benchmarks while maintaining high speed and expressiveness.

Proposed method

  • Proposes ELPH, a full-graph GNN that uses MinHash and HyperLogLog sketches to pass subgraph-level structural information as messages, approximating the key components of subgraph GNNs without explicit subgraph construction.
  • Employs sketching techniques to encode structural features such as common neighbors and triangle counts directly into node representations, enabling the model to count substructures and break automorphism symmetry.
  • Uses a learnable readout via a multi-layer perceptron (MLP) that combines sketch-based structural features with node features to predict link probabilities.
  • Introduces BUDDY, a scalable extension of ELPH that precomputes and caches node representations and sketch features, enabling efficient inference and training on large graphs.
  • Leverages the fact that sketch-based features are differentiable and compatible with standard GNN training pipelines, allowing end-to-end learning.
  • Employs a two-stage training process: first precomputing features using graph propagation and sketching, then training the final MLP head on the precomputed features.

Experimental results

Research questions

  • RQ1Can subgraph sketching via hashing effectively approximate the expressive power of subgraph-based GNNs for link prediction without explicit subgraph construction?
  • RQ2Can a full-graph GNN using sketch-based structural features outperform existing subgraph GNNs in both accuracy and efficiency?
  • RQ3To what extent do sketch-based features enable the model to overcome the automorphic node problem and count substructures like triangles?
  • RQ4Can precomputed features enable scalable training and inference for large-scale graphs beyond GPU memory limits?
  • RQ5How do the proposed models compare to strong baselines like heuristics, node embeddings, and subgraph GNNs on standard link prediction benchmarks?

Key findings

  • ELPH achieves state-of-the-art performance on multiple OGB link prediction benchmarks, outperforming existing subgraph GNNs while being orders of magnitude faster.
  • On the ogbl-ppa dataset, BUDDY achieves an MRR of 87.56±0.11, significantly outperforming the next best method (w/o features) at 82.27±0.10.
  • On the ogbl-collab dataset, BUDDY achieves HR@100 of 92.93±0.27, surpassing the best baseline (w/o features) at 48.45±4.83.
  • The ablation study shows that removing both structure features and node features from BUDDY drastically reduces performance, confirming the importance of both components.
  • BUDDY maintains high performance across all datasets, including ogbl-citation2 and ogbl-ddi, with HR@20 of 78.51±1.36 and MRR of 87.56±0.11, respectively.
  • The learning curves show stable and fast convergence, with minimal variance across multiple random seeds, indicating robust training.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.