arXiv:2601.11159cs.LGcs.DB2026-01被引 1

提出两种新算法,大幅加速大规模图的电阻距离计算。

Theoretically and Practically Efficient Resistance Distance Computation on Large Graphs

  • 基于经典Lanczos方法,设计全局与局部两种高效算法。
  • 全局算法时间复杂度为√κ·m,比现有方法快√κ倍。
  • 适合需要快速计算图距离的机器学习与网络分析场景。

电阻距离计算在图聚类、链接预测和图神经网络等众多图分析任务中至关重要。然而,针对大规模图的高效算法仍显不足。现有最先进方法(如基于幂迭代和随机游走的局部算法)在图拉普拉斯矩阵条件数κ较大时收敛缓慢。为此,本文提出两种受经典Lanczos方法启发的新算法:Lanczos Iteration(全局算法)与Lanczos Push(局部算法),均旨在降低对κ的依赖。理论证明,Lanczos Iteration的时间复杂度为˜O(√κ m),相比传统幂迭代方法提速√κ倍;Lanczos Push在温和且常见的假设下,时间复杂度为˜O(κ^2.75),相较当前最优随机游走类局部算法提升κ^0.25倍。我们在八个不同规模与统计特性的真实数据集上进行广泛实验,结果表明两种算法在效率和精度上均显著优于现有方法。

原文摘要 · Abstract (English)

The computation of resistance distance is pivotal in a wide range of graph analysis applications, including graph clustering, link prediction, and graph neural networks. Despite its foundational importance, efficient algorithms for computing resistance distances on large graphs are still lacking. Existing state-of-the-art (SOTA) methods, including power iteration-based algorithms and random walk-based local approaches, often struggle with slow convergence rates, particularly when the condition number of the graph Laplacian matrix, denoted by $κ$, is large. To tackle this challenge, we propose two novel and efficient algorithms inspired by the classic Lanczos method: Lanczos Iteration and Lanczos Push, both designed to reduce dependence on $κ$. Among them, Lanczos Iteration is a near-linear time global algorithm, whereas Lanczos Push is a local algorithm with a time complexity independent of the size of the graph. More specifically, we prove that the time complexity of Lanczos Iteration is $\tilde{O}(\sqrtκ m)$ ($m$ is the number of edges of the graph and $\tilde{O}$ means the complexity omitting the $\log$ terms) which achieves a speedup of $\sqrtκ$ compared to previous power iteration-based global methods. For Lanczos Push, we demonstrate that its time complexity is $\tilde{O}(κ^{2.75})$ under certain mild and frequently established assumptions, which represents a significant improvement of $κ^{0.25}$ over the SOTA random walk-based local algorithms. We validate our algorithms through extensive experiments on eight real-world datasets of varying sizes and statistical properties, demonstrating that Lanczos Iteration and Lanczos Push significantly outperform SOTA methods in terms of both efficiency and accuracy.

图算法电阻距离大规模计算

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。