NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Node similarity distribution of complex networks and its application in link prediction

Cunlai Pu, Jie Li, Jian Wang, Tony Q. S. Quek · DOI

Abstract

Quantifying node similarity is central to network science, yet the statistical distributions of these similarities have remained largely unexplored. This paper introduces a theoretical framework using generating functions to calculate the distribution of Common Neighbor based Similarity (CNS) across various network topologies. We demonstrate that in Erdős-Rényi (ER) random networks, CNS follows a Poisson distribution, while in Barabási-Albert (BA) networks, it follows a power law. Crucially, we show that link prediction performance—measured by AUC and Precision—is fundamentally determined by the divergence between the similarity distributions of connected and unconnected node pairs. This allows for the theoretical evaluation of link prediction algorithms without computationally intensive simulations.

Introduction: Beyond Individual Scores

In the study of complex networks, "node similarity" posits that nodes with similar structural roles are more likely to be connected or share functional traits. While numerous indices exist to calculate similarity between specific pairs, the field has lacked a comprehensive understanding of how these scores are distributed across an entire network.

Furthermore, evaluating link prediction—the task of identifying missing or future connections—traditionally relies on "brute force" experimental methods. Researchers must hide a subset of links, run an algorithm, and validate results against the hidden set. This process is computationally expensive, especially for large-scale networks. This research addresses these gaps by providing a mathematical description of similarity distributions and leveraging them to create a theoretical "shortcut" for performance evaluation.

Methodology: The Generating Function Approach

The authors focus on Common Neighbor based Similarity (CNS), defined by the number of shared neighbors between nodes. To model the distribution of these counts, they employ generating functions. This mathematical tool encodes the probability distribution of a random variable into a formal power series, allowing for the derivation of exact solutions for various network models, including Erdős-Rényi (ER), Watts-Strogatz (WS), and Barabási-Albert (BA) models.

Key Insights into Network Topology

The theoretical framework reveals distinct distributional signatures for different network types:

The Poisson Law of Randomness

In purely random ER networks, the similarity distribution for any set of nodes obeys the Poisson law. This serves as a critical baseline; when the distributions for connected ($P_c$) and unconnected ($P_d$) pairs are identical (both following the same Poisson curve), the network possesses zero predictability.

Figure 3: CNS distribution in ER random networks follows the Poisson law, indicating a baseline of zero predictability when connected and unconnected distributions overlap.

Scale-Free Similarity

In BA networks, which are characterized by a "rich-get-richer" growth mechanism, the CNS distributions follow a power law. This mirrors the degree distribution of the network itself, suggesting that the same underlying dynamics governing connectivity also dictate the emergence of similarity.

Figure 4: CNS distributions in BA scale-free networks exhibit power-law behavior, mirroring the network's degree distribution.

A major contribution of this work is the derivation of theoretical formulas for AUC (Area Under the Curve) and Precision. The authors prove that these metrics depend solely on the "distance" or divergence between the probability distributions of connected ($P_c$) and disconnected ($P_d$) node pairs.

  • The 0.5 Limit: If $P_c$ and $P_d$ are identical, the AUC is mathematically proven to be 0.5, equivalent to a random guess.
  • Performance Prediction: By comparing theoretical AUC/Precision values against traditional experimental results on real-world datasets, the authors found near-perfect alignment. For instance, in the Jazz musician network, the experimental AUC of 0.954 was closely matched by the theoretical prediction of 0.958.

Conclusion

By shifting the focus from individual similarity scores to their global distributions, this research provides a deeper understanding of network structure. The ability to theoretically predict link prediction performance significantly reduces computational overhead, offering a powerful tool for analyzing massive real-world datasets where traditional cross-validation is impractical. Future work may extend this framework to higher-order link prediction, such as the formation of cliques or complex motifs.

Summary updated

BibTeX
@misc{pu2017node,
  author = {Cunlai Pu and Jie Li and Jian Wang and Tony Q. S. Quek},
  title = {{Node similarity distribution of complex networks and its application in link prediction}},
  year = {2017},
  eprint = {1710.10738},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1710.10738},
}

Loading related content...

Figure