Learning Scalable Structural Representations for Link Prediction with Bloom Signatures

Tianyi Zhang, Haoteng Yin, Rongzhe Wei, Pan Li, Anshumali Shrivastava

TL;DR

This paper introduces Bloom Signatures, a hashing-based method to encode graph neighborhoods into compact bit-arrays. By integrating these signatures into Graph Neural Networks (GNNs), the authors achieve the high accuracy of expensive "edge-wise" models with a massive 3–200× speedup, making sophisticated link prediction feasible for massive real-world graphs.

What Problem Does This Paper Address?

Link prediction—predicting whether two nodes in a graph should be connected—is a cornerstone of graph machine learning. However, standard GNNs suffer from a fundamental "blind spot": they learn representations for individual nodes. When predicting a link between node $u$ and node $v$, standard GNNs simply compare the two node vectors, ignoring the pairwise structural context (e.g., "How many friends do they have in common?").

Standard GNNs often fail to distinguish nodes with different structural roles relative to a query node, as shown in these identical computation graphs.

As illustrated above, without specific labeling tricks, the computation graphs for different nodes can appear identical to a GNN, even if their structural relationship to a target node is different. Existing solutions like SEAL use "Labeling Tricks" to extract local subgraphs for every potential link, which is highly accurate but computationally prohibitive for large graphs. Simple heuristics like "Common Neighbors" are fast but inflexible. The authors seek a "middle ground": a method as expressive as subgraph-based models but as fast as simple heuristics.

Methods: The Bloom Signature

The core innovation is the Bloom Signature. Inspired by Bloom filters, the authors represent a node's $k$-hop neighborhood as a compact binary signature (a bit-array) created via hashing.

  • Hashing for Compression: Instead of storing a list of thousands of neighbors, they hash neighbor IDs into a fixed-length bit-array.
  • Bitwise Merging: Due to the properties of hashing, the size of the intersection between two neighborhoods (Common Neighbors) or their union can be estimated by performing fast bitwise AND/OR operations on their signatures.
  • Neural Integration: These signatures are fed into a Message Passing Neural Network (MPNN). The model can use the signatures as edge features to weight messages or pass them into a final MLP to learn data-driven heuristics.
  • Decoupling: Crucially, signatures are computed once per node offline. At inference time, predicting a link only requires a fast bitwise comparison, avoiding the need to extract subgraphs on the fly.

Key Insights and Theoretical Expressiveness

  • 3-WL Expressiveness: The authors prove that GNNs with Bloom Signatures are strictly more powerful than standard GNNs (limited by the 1-WL test) and are at least as powerful as the 3-WL test. This allows them to distinguish complex graph structures that standard GNNs cannot.
  • Universal Heuristic Recovery: They demonstrate that an MLP taking Bloom Signatures as input can approximate any neighborhood-overlap-based heuristic (like Adamic-Adar) with guaranteed error bounds.
  • Differentiable Bit-Comparison: By using hashing, the model retains the topological flavor of the neighborhood without the memory overhead of full subgraph extraction, turning a discrete graph problem into a differentiable bit-comparison task.

Key Results

The authors evaluated their approach on five diverse benchmarks from the Open Graph Benchmark (OGB), including social and biological networks.

  • Speed: The proposed model is 3–200× faster for online inference than the state-of-the-art SEAL model. It is also 3.2× faster than BUDDY (the previous fastest hashing-based baseline) on the large citation2 dataset.
  • Accuracy: On challenging datasets like ogbl-vessel and ogbl-ppa, Bloom Signatures achieved comparable or superior performance to SEAL, significantly outperforming vanilla GNNs.
  • Estimation Quality: Bloom Signatures produced significantly lower errors in estimating neighborhood intersections compared to "Subgraph Sketching," especially for higher-order (2-hop) neighborhoods.

Limitations and Future Work

While powerful, Bloom Signatures require longer bit-arrays for very dense graphs to avoid hash collisions. Additionally, they do not explicitly encode geodesic distance as effectively as some labeling tricks. Future work may explore "Deletable Bloom filters" to handle dynamic graphs where connections are frequently removed, as standard signatures are difficult to update upon edge deletion.

Summary updated

BibTeX
@inproceedings{zhang2023learning,
  author = {Tianyi Zhang and Haoteng Yin and Rongzhe Wei and Pan Li and Anshumali Shrivastava},
  title = {{Learning Scalable Structural Representations for Link Prediction with Bloom Signatures}},
  booktitle = {The Web Conference},
  year = {2023},
}
Figure