Abstract
Biharmonic Distance (BD) is a powerful metric for network analysis, capturing both local and global structures. However, its computation traditionally requires expensive global matrix inversions, making it impractical for large-scale graphs. This paper presents a suite of local algorithms that estimate BD with high efficiency by leveraging a novel formula based on random walk probabilities. Our primary contribution, Sampling with Feedback (SWF), utilizes the Empirical Bernstein Inequality to stop sampling as soon as precision targets are met. Experiments on networks with up to 4 million nodes demonstrate that our methods achieve orders-of-magnitude speedups over state-of-the-art global approaches while maintaining high accuracy.
Introduction
Measuring distances between nodes is a cornerstone of network science. While geodesic and resistance distances are widely used, Biharmonic Distance (BD) has gained traction due to its superior ability to characterize graph topology. Despite its utility in robustness measurement and machine learning, BD is computationally demanding. Exact calculation scales as $O(n^{2.3727})$, and existing approximation methods like Random Projection (RP) require a global view of the graph and significant preprocessing. For modern, massive networks, global computation is often unnecessary when only specific pairwise distances are required. This paper addresses the need for "local" algorithms that can estimate BD by exploring only the relevant neighborhood of query nodes.
Methodology
The core innovation lies in a novel formula that expresses BD as a series of transition probabilities. This shift allows the problem to be framed as a local graph traversal rather than a global algebraic operation.
Local Algorithms
- Push & Push+: Deterministic algorithms that perform local traversals from source and target nodes, using a truncated path length $\ell$ to bound error.
- Sampling Truncated Walks (STW): Estimates transition probabilities by simulating a fixed number of random walks, improving scalability for large graphs.
- Sampling with Feedback (SWF): The "pinnacle" of our proposed methods, SWF dynamically monitors the variance of samples using the Empirical Bernstein Inequality. It terminates sampling once the estimate reaches the desired confidence, significantly reducing computational overhead.
For aggregate metrics, we introduce SNB and SNB+, which extend these pairwise techniques to estimate Nodal BD (the sum of distances from one node to all others) without exhaustive pairwise queries.
Experimental Evaluation
We evaluated our algorithms on five diverse networks from the SNAP repository: Facebook (4K nodes), DBLP (317K nodes), Youtube (1.1M nodes), Orkut (3.1M nodes), and LiveJournal (4M nodes).
Results and Discussion
Speed and Scalability
Our local algorithms consistently outperform global baselines. As shown in the performance plots across all datasets, the proposed local methods (STW, SWF) scale to graphs where traditional methods fail. On the YouTube network, STW is several orders of magnitude faster than RP. SWF provides further gains, outperforming STW by up to 23x on the Orkut network by adapting to the specific connectivity of node pairs. Crucially, while Exact and RP methods failed due to memory constraints on the largest datasets (Orkut and LiveJournal), our local methods handled them efficiently.
Accuracy
Despite the speedups, the algorithms maintain high precision. The empirical absolute error consistently stays below the user-defined threshold $ε$. The relative error also decreases predictably as $ε$ is tightened, confirming the robustness of the additive error bounds in practice.
Conclusion
By shifting from global matrix operations to local, feedback-driven sampling, we enable the computation of Biharmonic Distance on networks previously considered unreachable. Future work will explore providing explicit relative error guarantees and further optimizing performance through parallelization and graph-specific heuristics.
Summary updated