Structural Information Enhanced Graph Representation for Link Prediction

Lei Shi, Bin Hu, Deng Zhao, Jianshan He, Zhiqiang Zhang, Jun ZhouAAAI 2024

TL;DR

This paper introduces SIEG, a novel framework for link prediction that enhances Graph Neural Networks (GNNs) by explicitly encoding structural relationships between target nodes using a Binary Structural Transformer (BST). By removing potentially noisy neighbor node features and focusing on structural cues, SIEG achieves state-of-the-art performance on several popular link prediction benchmarks.

What Problem Does This Paper Address?

Link prediction, the task of inferring missing or potential connections in a graph, is crucial for applications like recommendation systems and knowledge graph completion. While Graph Neural Networks (GNNs) have become the go-to method due to their effectiveness, they suffer from two key limitations in this context:

  1. Limited Receptive Field: GNNs typically aggregate information from immediate neighbors. This makes it difficult to capture long-range structural dependencies between nodes that are far apart in the graph, which can be critical for predicting links.
  2. Node-Centric Bias: GNNs are inherently node-centric, focusing on individual node representations. This can lead to information loss when the task is link-centric, as the relationships between pairs of nodes might be overlooked.

Furthermore, the authors empirically observe that including neighbor node features can sometimes introduce noise and degrade performance in link prediction tasks. Existing methods that try to address these issues, like node labeling tricks, still rely on the fundamental GNN message-passing paradigm and don't fully overcome these limitations.

Methods

The proposed framework, SIEG (Structural Information Enhanced Graph representation), tackles these issues through two main innovations:

  1. Structural Information Enhanced GNN:
    • Neighbor Feature Removal: SIEG intentionally removes raw neighbor node features from the GNN's input. This forces the GNN to focus more on the underlying graph structure rather than potentially noisy feature information.
  2. DRNL Encoding: Instead of node features, the GNN is fed structural features encoded by DRNL (Double-Radius Node Labeling). DRNL captures the distances between nodes within a subgraph and the target nodes, providing a structural fingerprint.
  3. FFN for Target Nodes: The actual target nodes' features are processed by a Feed-Forward Network (FFN) and then concatenated with the GNN's structural representations.
  4. Binary Structural Transformer (BST):
    • Pairwise Structure Encoding: To address the limitations of GNNs in capturing long-range and pairwise structural information, SIEG introduces the BST. This module focuses exclusively on the target node pair.
  5. Heuristic Feature Fusion: BST leverages various heuristic methods (e.g., Shortest Path Distance (SPD), Adamic-Adar (AA), Jaccard Index) to quantify structural relationships between the target nodes. These heuristics are then fused with node features.
  6. Attention Mechanism: A specialized attention mechanism is employed within BST, restricted to the target nodes. This significantly reduces computational complexity compared to standard Transformers and avoids incorporating irrelevant information from distant nodes.
  7. Efficiency: The BST is designed to be computationally efficient, making SIEG scalable to larger graphs.

Finally, the outputs from the GNN (neighborhood structure encoding) and BST (pairwise structure encoding) are concatenated and fed into a Multi-layer Perceptron (MLP) for link decoding.

Datasets

The paper evaluates SIEG on six popular link prediction datasets:

  • Open Graph Benchmark (OGB):
    • ogbl-ppa
    • ogbl-citation2
    • ogbl-vessel
  • Classic Attributed Graph Datasets:
    • Pubmed
    • Cora
    • Citeseer

Key Insights and Ideas

  • Neighbor Features Can Be Noisy: The empirical finding that removing neighbor node features improves performance is counter-intuitive but significant. It suggests that for link prediction, raw node features might not always be beneficial and can even introduce noise, especially when structural information is rich.
  • GNNs Alone Struggle with Long-Range Structure: The paper clearly demonstrates that standard GNNs, even with labeling tricks, fail to distinguish between structurally different graphs when nodes are isomorphic. This highlights the need for explicit structural encoding beyond local neighborhoods.
  • Transformers Need Structural Adaptation for Graphs: While Transformers excel in sequence and image data, their direct application to graphs is challenging due to the lack of inherent positional/structural encoding. SIEG's BST shows a promising way to adapt Transformer-like attention by incorporating graph-specific structural heuristics.
  • Targeted Attention is Key for Efficiency: Restricting the attention mechanism in BST to only the target node pair is a crucial design choice that drastically reduces computational complexity, enabling the model to handle larger graphs where full graph Transformers would be infeasible.

Key Results

  • State-of-the-Art Performance: SIEG achieved state-of-the-art results on multiple benchmarks, ranking first on ogbl-ppa, ogbl-citation2, and Pubmed.
  • Improved Accuracy without Neighbor Features: SIEG without neighbor features (SIEG w/o NF) consistently outperformed SIEG with neighbor features (SIEG w/ NF) across all tested datasets, reinforcing the idea that neighbor features can be detrimental.
  • BST's Crucial Role: Removing the BST component (SIEG w/o BST) led to a significant drop in performance, underscoring its importance in capturing essential pairwise structural information missed by GNNs.
  • Computational Efficiency: SIEG (using BST) was shown to be significantly faster than a full graph Transformer (FCT) approach, running up to 10-16 times faster on smaller datasets and being practically infeasible for FCT on medium-sized datasets.

Limitations and Future Work

  • Limitations:
    • The paper notes that the ogbl-vessel dataset is designed for flow-driven spatial networks, and their model (SIEG) is not specifically tailored for such specialized graphs, hence it wasn't included in the top-ranking comparisons.
  • The authors acknowledge that the exact "damage" caused by FCT (full graph Transformer) when replacing BST is not fully explored, but it's attributed to introducing too much information away from targets.
  • Future Work:
    • The authors suggest that link prediction is a special case of multi-node representation learning. They plan to extend SIEG to other related tasks like triplet and subgraph prediction.
  • They aim to develop SIEG into a general multi-node representation learning framework.

Summary updated

BibTeX
@inproceedings{shi2024structural,
  author = {Lei Shi and Bin Hu and Deng Zhao and Jianshan He and Zhiqiang Zhang and Jun Zhou},
  title = {{Structural Information Enhanced Graph Representation for Link Prediction}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2024},
  url = {https://openreview.net/forum?id=0mmnrUT07E},
}
Figure