Abstract
The traditional setup of link prediction in networks assumes that a test set of node pairs, which is usually balanced, is available over which to predict the presence of links. However, in practice, there is no test set: the ground-truth is not known, so the number of possible pairs to predict over is quadratic in the number of nodes in the graph. Moreover, because graphs are sparse, most of these possible pairs will not be links. Thus, link prediction methods, which often rely on proximity-preserving embeddings or heuristic notions of node similarity, face a vast search space, with many pairs that are in close proximity, but that should not be linked. To mitigate this issue, we introduce LinkWaldo, a framework for choosing from this quadratic, massively-skewed search space of node pairs, a concise set of candidate pairs that, in addition to being in close proximity, also structurally resemble the observed edges. This allows it to ignore some high-proximity but low-resemblance pairs, and also identify high-resemblance, lower-proximity pairs. Our framework is built on a model that theoretically combines Stochastic Block Models (SBMs) with node proximity models. The block structure of the SBM maps out where in the search space new links are expected to fall, and the proximity identifies the most plausible links within these blocks, using locality sensitive hashing to avoid expensive exhaustive search. LinkWaldo can use any node representation learning or heuristic definition of proximity, and can generate candidate pairs for any link prediction method, allowing the representation power of current and future methods to be realized for link prediction in practice. We evaluate LinkWaldo on 13 networks across multiple domains, and show that on average it returns candidate sets containing 7-33% more missing and future links than both embedding-based and heuristic baselines' sets.
Introduction
Most research in link prediction (LP) operates under an artificial "balanced" setup where researchers are given a test set containing an equal number of existing links (positives) and non-existent links (negatives). In practice, however, there is no pre-defined test set. For a graph with $n$ nodes, there are $O(n^2)$ possible pairs. Because real-world graphs are incredibly sparse, the vast majority of these pairs will never link. Standard methods that rely solely on proximity (like "common neighbors" or node embeddings) often fail in the wild because they surface too many "false positives"—pairs that are close in the network but structurally unlikely to connect. This paper identifies this as the "hidden challenge": how do we choose which pairs to even check in the first place?
The LINKWALDO Framework
The authors propose the Future Link Location Model (FLLM) and its implementation, LINKWALDO. The core idea is to combine structural resemblance with node proximity to intelligently navigate the quadratic search space.
As illustrated in the framework overview, the process involves four stages:
- S1: Node Grouping: Nodes are partitioned into groups based on structural properties (e.g., log-binned degree, community membership, or structural roles).
- S2: The Roadmap: By looking at where existing edges fall between these groups, the model builds a "roadmap." This roadmap identifies which "blocks" of the search space are most likely to contain new links.
- S3: Discovering Closest Pairs: Within the prioritized blocks, LINKWALDO searches for the pairs in closest proximity. To avoid the $O(n^2)$ bottleneck, it uses Locality Sensitive Hashing (LSH) to find high-proximity pairs efficiently.
- S4: Global Augmentation: It maintains a global pool of candidates to ensure that high-resemblance pairs are not missed even if their proximity is slightly lower.
Experimental Evaluation
The framework was evaluated on 13 diverse networks spanning multiple domains, including metabolic, social, communication, and information networks. The scale and variety of these datasets are detailed below.
Key Results
- Higher Recall: LINKWALDO returned candidate sets containing 7–33% more missing and future links than strong baselines like NMF-based bagging and standard heuristic sets (like Adamic-Adar).
- Scalability: The algorithm scales linearly with the number of edges ($m$) and sub-quadratically with the number of nodes ($n$), making it practical for large-scale real-world graphs.
- Robustness: The "LINKWALDO-M" variant, which uses multiple types of node groupings, was the top performer across 10 out of 13 datasets.
Discussion and Future Work
LINKWALDO demonstrates that proximity alone is a weak signal in a massive search space. By adding "structural resemblance"—the idea that new links will likely follow the same patterns as observed links—the search becomes much more targeted. While Stochastic Block Models (SBMs) are traditionally used for graph generation, this paper repurposes them as a "roadmap" for navigating the search space.
Future work could address concept drift in temporal networks, where the linking patterns might change over time. Additionally, extending the framework to handle directed graphs and heterogeneous graphs (with multiple node and edge types) remains an important open challenge.
Summary updated