Edge Proposal Sets for Link Prediction

Abhay Singh, Qian Huang, Sijia Linda Huang, Omkar Bhalerao, Horace He, Ser-Nam Lim, Austin R. BensonarXiv 2021

Abstract

Graphs are a common model for complex relational data such as social networks and protein interactions, and such data can evolve over time and be noisy. Link prediction aims to predict future edges or infer missing edges in the graph, with diverse applications in recommender systems, experimental design, and complex systems. Even though link prediction algorithms strongly depend on the set of edges in the graph, existing approaches typically do not modify the graph topology to improve performance. Here, we demonstrate how simply adding a set of edges, which we call a proposal set, to the graph as a pre-processing step can improve the performance of several link prediction algorithms. The underlying idea is that if the edges in the proposal set generally align with the structure of the graph, link prediction algorithms are further guided towards predicting the right edges; in other words, adding a proposal set of edges is a signal-boosting pre-processing step. We evaluate this approach on various synthetic and empirical datasets, finding that proposal sets meaningfully improve the accuracy of link prediction algorithms based on both neighborhood heuristics and graph neural networks.

Introduction

Link prediction—the task of inferring missing or future connections in a network—is a cornerstone of modern data science, powering applications from social network recommendations to drug discovery. Traditionally, researchers treat the input graph as a fixed, immutable source of truth. However, real-world graphs are often incomplete or noisy. Neighborhood-based heuristics and Graph Neural Networks (GNNs) both rely on existing edges to understand node relationships. If two nodes are destined to be connected but currently sit far apart, a GNN might never capture their similarity because the message-passing path is too long or non-existent.

This work proposes a proactive alternative: by strategically "hallucinating" a few extra edges before the prediction process begins, we can significantly boost the accuracy of our models. We introduce Edge Proposal Sets, a pre-processing step that adds a set of likely edges to a graph to "boost the signal" of its underlying structure.

The Filter & Rank Framework

The proposed framework utilizes a two-stage Filter & Rank pipeline:

  1. Filter Stage: We begin with a broad candidate set of edges, typically all pairs of nodes that share at least one common neighbor (leveraging the principle of triadic closure). A "filtering" scoring function, such as the Adamic-Adar heuristic or a pre-trained GNN, is used to select the top $k$ most likely edges. This subset constitutes the Proposal Set ($P$).
  2. Rank Stage: These proposal edges are added to the original graph. Finally, the primary link prediction model is trained or executed on this augmented graph ($G \cup P$) to produce final predictions.
Overview of the Edge Proposal Set process: adding a proposal set to the input graph significantly improves prediction accuracy on synthetic data.

The core intuition is that even if the proposal set contains some incorrect edges, as long as they generally align with the graph's latent structure, they act as "virtual bridges" that help the ranking model learn better node representations.

Mechanism: Signal Boosting and GNN Synergy

The effectiveness of proposal sets is rooted in "signal boosting." Adding edges reduces the "commute time" (the expected steps for a random walk) between nodes that should be connected much faster than it does for nodes that shouldn't. This effectively brings "positive" pairs closer together in the eyes of the algorithm.

GNNs benefit immensely from this augmentation because the extra edges facilitate better information flow during message passing, allowing node embeddings to become more similar in feature space. Surprisingly, models like GraphSAGE are robust to "negative" edges in the proposal set; as long as the proposal set has a higher density of true missing edges than the background graph, performance generally improves.

Experimental Results

The researchers evaluated the approach on a mix of synthetic and empirical benchmarks, including the Open Graph Benchmark (OGB) and SNAP datasets.

  • State-of-the-Art Performance: On the ogbl-collab dataset, using Adamic-Adar for filtering and Common Neighbors for ranking achieved 65.28% Hits@50, surpassing the top score on the OGB leaderboard at the time of the study.
  • Massive GNN Gains: For the ogbl-ddi dataset, adding a proposal set improved the Hits@20 of a GraphSAGE model from 52.68% to 76.32%.
  • Heuristic Resilience: Even simple neighborhood heuristics saw gains. On a synthetic Stochastic Block Model, adding a proposal set boosted the Hits@10 of a common neighbor algorithm from 56% to 97%.
Performance (Hits@10) as a function of proposal set size across different graph structures (p/q ratios). Performance typically peaks at an optimal set size.

Limitations and Future Work

The "target size" ($k$) of the proposal set is a critical hyperparameter. As shown in Figure 2, adding too many edges risks drowning the signal in noise, while too few may not provide a sufficient boost. Finding the "sweet spot" requires careful validation. Additionally, generating the initial candidate set can be computationally expensive for very large, dense graphs. Future research may explore more sophisticated generation methods and investigate how graph augmentation benefits other tasks like node classification.

Code is available at https://github.com/CUAI/Edge-Proposal-Sets.

Summary updated

BibTeX
@misc{singh2021edge,
  author = {Abhay Singh and Qian Huang and Sijia Linda Huang and Omkar Bhalerao and Horace He and Ser-Nam Lim and Austin R. Benson},
  title = {{Edge Proposal Sets for Link Prediction}},
  year = {2021},
  eprint = {2106.15810},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2106.15810},
}
Figure