Theoretical Justification of Popular Link Prediction Heuristics

Purnamrita Sarkar, Deepayan Chakrabarti, Andrew W. Moore

Abstract

There are common intuitions about how social graphs are generated (for example, it is common to talk informally about nearby nodes sharing a link). There are also common heuristics for predicting whether two currently unlinked nodes in a graph should be linked (e.g. for suggesting friends in an online social network or movies to customers in a recommendation network). This paper provides what we believe to be the first formal connection between these intuitions and these heuristics. We look at a familiar class of graph generation models in which nodes are associated with locations in a latent metric space and connections are more likely between closer nodes. We also look at popular link-prediction heuristics such as number-of-common-neighbors and its weighted variants [Adamic and Adar, 2003] which have proved successful in predicting missing links, but are not direct derivatives of latent space graph models. We provide theoretical justifications for the success of some measures as compared to others, as reported in previous empirical studies. In particular we present a sequence of formal results that show bounds related to the role that a node's degree plays in its usefulness for link prediction, the relative importance of short paths versus long paths, and the effects of increasing non-determinism in the link generation process on link prediction quality. Our results can be generalized to any model as long as the latent space assumption holds.

Introduction

In the analysis of social networks and recommendation engines, "link prediction" is the task of identifying which currently unlinked nodes are likely to connect in the future. For decades, researchers have relied on heuristics—mathematical rules of thumb—that exhibit high empirical performance. The most prominent of these is counting common neighbors: the intuition that if two individuals share many mutual friends, they are likely to form a direct connection.

While these methods have been validated through extensive trial and error, a rigorous theoretical framework explaining why they work has been missing. This paper bridges that gap by connecting these heuristics to the Latent Space Model. This model posits that nodes occupy positions in a hidden metric space, where the probability of a link forming is inversely proportional to the distance between nodes.

Methodology

The authors employ a geometric and statistical framework to analyze link prediction:

  • Latent Space Modeling: Nodes are modeled as points in a $D$-dimensional Euclidean space. Each node $i$ has a "sociability radius" $r_i$; a link exists if the distance between two nodes is less than the sum of their radii.
  • Geometric Intersection: The set of common neighbors between two nodes $i$ and $j$ corresponds to points falling within the intersection of their respective hyperspheres. By calculating the volume of this intersection, $A(r, r, d_{ij})$, the hidden physical distance $d_{ij}$ can be estimated.
  • Statistical Bounding: Using empirical Bernstein and Chernoff bounds, the paper proves that the observed count of common neighbors provides a mathematically tight bound on the true latent distance.
Figure 1: The intersection area $A(r, r, d_{ij})$ of two sociability radii defines the expected number of common neighbors and provides bounds on the latent distance $d_{ij}$.

Key Insights

Common Neighbors as Distance Estimators

The core finding is that counting common neighbors is mathematically equivalent to estimating distance in a latent metric space. A higher neighbor count directly implies a smaller upper bound on the distance between two nodes.

The "Popularity" Penalty and Adamic/Adar

Sharing a "popular" neighbor (a node with a high degree) provides less information about proximity than sharing a low-degree neighbor. The paper derives an optimal weighting scheme of $1/\text{deg}(i)^{1/D}$, which aligns with the trend of the popular Adamic/Adar heuristic ($1/\log(\text{deg})$), providing the first theoretical justification for its success.

The Superiority of Short Paths

While longer paths (3-hop or 4-hop) contain information, the bounds they provide on latent distance are significantly looser than those provided by 2-hop common neighbor counts. This explains why simple local measures often outperform global measures like Katz centrality in practical link prediction tasks.

Key Results

  • Convergence to Optimal: Theorem 3.1 demonstrates that as the network size $N$ approaches infinity, the node with the highest common neighbor count is guaranteed to be the one closest in latent space.
  • Path Length Bounds: Theorem 5.1 formalizes how information quality degrades as path length increases. A single common neighbor is often more informative than a large number of longer paths due to the accumulation of distance uncertainty across multiple hops.
Figure 2: A path of length $\ell$ between nodes $i$ and $j$. The paper proves that the uncertainty of the distance estimate $d_{ij}$ increases with each intermediate node $k$.

Conclusion and Limitations

This work provides a foundational theoretical bridge for link prediction, yet several avenues for future work remain. The current proofs rely on the homophily assumption, which may not apply to disassortative networks (e.g., food webs). Additionally, the assumption of a uniform distribution of nodes in latent space may be simplified; real-world networks often feature clusters or voids. Finally, while the authors address non-deterministic link generation, the resulting bounds are looser, suggesting a need for more refined numerical estimation in probabilistic environments.

Summary updated

BibTeX
@inproceedings{sarkar2010theoretical,
  author = {Purnamrita Sarkar and Deepayan Chakrabarti and Andrew W. Moore},
  title = {{Theoretical Justification of Popular Link Prediction Heuristics}},
  booktitle = {Conference on Learning Theory},
  year = {2010},
}
Figure