Pairwise Link Prediction

Huda Nassar, Austin R. Benson, David F. Gleich

Abstract

This paper introduces pairwise link prediction, a higher-order network task that focuses on predicting which node is most likely to complete a triangle with an existing edge. Unlike traditional link prediction which targets node-to-node connections, this framework leverages triadic closure—a fundamental mechanism in network evolution. We propose Triangle Reinforced PageRank (TRPR), an iterative algorithm that reweights edges based on triangle participation. Our results across social, biological, and communication networks demonstrate that pairwise methods are more robust than local heuristics and can even enhance standard link prediction performance.

Introduction

In network science, link prediction is a foundational task for recommendation engines and biological discovery. Traditionally, it is framed as: "Given node $u$, which node $v$ is it likely to connect to?" However, real-world networks often evolve through higher-order structures rather than random pairs. The most common of these is the triangle (triadic closure)—the principle that if two individuals share a mutual friend, they are likely to become friends themselves.

Comparison of standard (A) and pairwise (B) link prediction tasks.

While standard heuristics like Jaccard similarity use triangles as a hint, they do not target them directly. The authors identify a gap in formal frameworks for predicting the completion of these higher-order structures. They propose "pairwise link prediction" to fill this gap, asking: "Given the edge $(v, w)$, which node $u$ will complete the triangle $(u, v, w)$?"

Methodology

The authors propose two main algorithmic families for this task:

  1. Local Similarity Extensions: Classic local heuristics (Jaccard Similarity, Adamic-Adar, and Preferential Attachment) are adapted to measure the similarity between a node and an edge. This involves defining the "neighborhood of an edge" as the union of the neighborhoods of its two endpoints.
  2. Diffusion-Based Methods:
    • Pair-seeded PageRank: This utilizes a personalized PageRank approach where the "teleportation" mass is split equally between the two endpoints of the target edge.
  3. Triangle Reinforced PageRank (TRPR): This iterative, PageRank-like algorithm uses a 3rd-order tensor to represent triangles. It dynamically reweights edges based on their participation in triangles, "reinforcing" triadic structures during diffusion. Crucially, TRPR is implemented efficiently using a triangle iterator to avoid the computational cost of explicit tensor construction.

Experimental Setup

The study evaluates these methods across eight diverse networks, including social (Facebook Penn94/Caltech36), biological (Drug-chemical interactions, Protein-protein pathways), communication (Email exchange), and temporal (CollegeMsg, Email-EU) datasets, as well as synthetic Generalized Preferential Attachment (GPA) graphs.

Key Results and Insights

Robustness and Consistency

Diffusion-based methods, particularly TRPR and its weighted variant (TRPRW), proved to be significantly more consistent across different graph types compared to local methods. While local methods like Adamic-Adar performed well on social networks—where triadic closure is the dominant growth mechanism—they were less robust in biological contexts.

Scalability

Empirical verification confirmed that TRPR is highly scalable. As shown in the performance analysis, the algorithm handles large-scale applications efficiently.

Scalability of the TRPR algorithm across varying node counts and edge densities.

For a graph with 100,000 nodes, 10 iterations of TRPR took approximately 15-20 seconds, demonstrating its viability for real-world production systems.

A significant finding is that pairwise methods can improve standard link prediction. By employing a "star-seed" approach—seeding PageRank at a node and all its neighbors—the authors achieved higher AUC scores than standard single-seeded PageRank. Furthermore, because Pair-seeded PageRank is a scaled sum of two single-seeded PageRank vectors, it can be implemented using existing, optimized PageRank systems.

Conclusion and Future Work

Pairwise link prediction offers a more nuanced view of network evolution by focusing on triadic closure. While the current framework excels in static and social/biological contexts, it faces challenges in temporal graphs where "wedges" may take significant time to close. Future research may extend this framework to higher-order motifs beyond triangles, such as four-node cliques, and adapt TRPR for directed graphs where triangle flow orientation is critical.

Summary updated

BibTeX
@inproceedings{nassar2019pairwise,
  author = {Huda Nassar and Austin R. Benson and David F. Gleich},
  title = {{Pairwise Link Prediction}},
  booktitle = {ASONAM},
  year = {2019},
  doi = {10.1145/3341161.3342897},
}
Figure