Refined Edge Usage of Graph Neural Networks for Edge Prediction

Zheng Zhang · DOI

TL;DR

This paper introduces EMPIRE, a novel framework for graph neural networks (GNNs) specifically designed for edge prediction tasks. EMPIRE refines how GNNs use graph edges by splitting them into "topology" and "supervision" roles, and introduces target-aware message passing to improve prediction accuracy.

What Problem Does This Paper Address?

Graph Neural Networks (GNNs) have excelled at node classification, but their application to edge prediction (also known as link prediction) has been less refined. A key issue is that existing GNNs often treat edges as both the graph's structure (topology) and the labels to be predicted (supervision) simultaneously during training. This can lead to models overfitting the training data and performing poorly on unseen data. Furthermore, traditional GNN message passing focuses on individual nodes, while edge prediction requires considering pairs of nodes. This paper addresses these limitations by proposing a more nuanced approach to edge usage and message passing for edge prediction.

Methods

EMPIRE introduces several key innovations:

  • Edge Splitting: Training edges are explicitly divided into two sets: "topology edges" used to build the graph structure for message passing, and "supervision edges" used as the ground truth labels for training. This separation aims to prevent the model from "seeing" the labels during topology construction.
  • Target-Aware Message Passing: Messages passed between nodes are made aware of the target node for which an edge prediction is being made. This is achieved by incorporating information about potential target nodes into the message generation process, ensuring that messages are more relevant to the specific edge prediction task.
  • Relative Message Highlighting: The framework further refines messages by highlighting those that best differentiate between node pairs that are connected by supervision edges and those that are not. This helps the model focus on the most informative signals for prediction.
  • Efficient Negative Node-Pair Sampling: To improve robustness, EMPIRE employs a novel trick to sample "hard" negative instances. These are node pairs that are somewhat likely to be connected (e.g., share common neighbors) but are not, making them challenging but important for training.

Datasets

The paper evaluates EMPIRE on a variety of datasets:

  • Homogeneous Graphs: USAir, NS, PB, Yeast, C.ele, Power, Router, E.coli, Arxiv, Facebook.
  • Large-Scale OGB Benchmarks: ogbl-ppa, ogbl-collab, ogbl-ddi, ogbl-citation2.
  • Heterogeneous Graphs: LastFM, Amazon, Yelp, Douban.

No new datasets were introduced; the focus was on applying EMPIRE to existing benchmarks.

Key Insights and Ideas

  • The "Supervision Leak": The paper highlights a critical flaw in applying node classification GNNs directly to edge prediction: using the same edges for both topology and supervision during training can lead to models learning to "cheat" by seeing the answer.
  • Pairwise Prediction Needs Pairwise Information: Traditional GNNs aggregate information around individual nodes. EMPIRE's target-aware message passing acknowledges that edge prediction is inherently a pairwise task and adapts message passing accordingly.
  • "Hard" Negatives Matter: Similar to information retrieval, using challenging negative examples (node pairs that could be connected but aren't) significantly improves the stability and performance of edge prediction models.
  • Modularity is Key: EMPIRE's components (edge splitting, target-aware message passing, relative highlighting, negative sampling) are designed to be pluggable, allowing them to enhance various existing GNN architectures.

Key Results

EMPIRE consistently improved performance across various GNN models (GCN, GIN, GAT, SAGE, RGCN, HAN) and datasets. For instance, on the Arxiv dataset, EMPIRE with GAT achieved an AUC of 0.9708, a significant improvement over the baseline GAT's 0.9403. The paper shows that each component of EMPIRE contributes to performance gains, with edge splitting providing a foundational improvement, followed by target-aware message passing and relative highlighting. The negative sampling trick, while sometimes showing smaller gains, was noted for its stability.

Limitations and Future Work

  • Relative Message Highlighting Stability: The authors note that the performance of the relative message highlighting technique can be less stable, potentially due to its reliance on randomly sampled nodes.
  • Computational Cost of Negative Sampling: While efficient, the negative node-pair sampling can still be computationally intensive during training. The paper suggests pre-computing and storing these pairs as a potential optimization.
  • Future Work: The authors suggest exploring the incorporation of EMPIRE's techniques into other graph-based tasks, such as graph classification. They also discuss the feasibility of deploying EMPIRE in real-world industrial settings, particularly for large-scale graph applications like recommendation systems.

Summary updated

BibTeX
@misc{zhang2022refined,
  author = {Zheng Zhang},
  title = {{Refined Edge Usage of Graph Neural Networks for Edge Prediction}},
  year = {2022},
  eprint = {2212.12970},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2212.12970},
}
Figure