[论文解读] Efficient Stepping Algorithms and Implementations for Parallel Shortest Paths
本文提出了一种统一的步进算法框架和一种新型的懒惰批量优先队列(LaB-PQ),以统一并优化并行最短路径计算。它提出了两种新算法——𝜌-步进法和Δ∗-步进法,这些算法在保证理论最坏情况边界的同时,优于现有实现:𝜌-步进法在社交网络和网页图上比最先进的方法快1.3–2.6倍,Δ∗-步进法在道路网络上至少快14%。
In this paper, we study the single-source shortest-path (SSSP) problem with positive edge weights, which is a notoriously hard problem in the parallel context. In practice, the $\Delta$-stepping algorithm proposed by Meyer and Sanders has been widely adopted. However, $\Delta$-stepping has no known worst-case bounds for general graphs. The performance of $\Delta$-stepping also highly relies on the parameter $\Delta$. There have also been lots of algorithms with theoretical bounds, such as Radius-stepping, but they either have no implementations available or are much slower than $\Delta$-stepping in practice. We propose a stepping algorithm framework that generalizes existing algorithms such as $\Delta$-stepping and Radius-stepping. The framework allows for similar analysis and implementations of all stepping algorithms. We also propose a new ADT, lazy-batched priority queue (LaB-PQ), that abstracts the semantics of the priority queue needed by the stepping algorithms. We provide two data structures for LaB-PQ, focusing on theoretical and practical efficiency, respectively. Based on the new framework and LaB-PQ, we show two new stepping algorithms, $ ho$-stepping and $\Delta^*$-stepping, that are simple, with non-trivial worst-case bounds, and fast in practice. The stepping algorithm framework also provides almost identical implementations for three algorithms: Bellman-Ford, $\Delta^*$-stepping, and $ ho$-stepping. We compare our code with four state-of-the-art implementations. On five social and web graphs, $ ho$-stepping is 1.3--2.5x faster than all the existing implementations. On two road graphs, our $\Delta^*$-stepping is at least 14\% faster than existing implementations, while $ ho$-stepping is also competitive. The almost identical implementations for stepping algorithms also allow for in-depth analyses and comparisons among the stepping algorithms in practice.
研究动机与目标
- 解决现有并行SSSP算法(如Δ-步进法)缺乏理论保证的问题,这些算法严重依赖于对参数Δ的手动调优。
- 通过引入具有理论保证的统一算法框架,克服现有算法在性能上不稳定和对参数敏感的问题。
- 设计一种新的抽象数据类型——懒惰批量优先队列(LaB-PQ),以高效支持步进算法所需的语义。
- 开发两种新的步进算法——𝜌-步进法和Δ∗-步进法,结合理论效率与实际性能。
- 通过统一的软件框架,实现步进算法的系统化、高性能实现与对比分析。
提出的方法
- 提出一种通用的步进算法框架,该框架泛化了Δ-步进法和半径-步进法,支持统一分析与实现。
- 引入懒惰批量优先队列(LaB-PQ),一种新型抽象数据类型,支持对步进算法中顶点的批量、懒惰更新。
- 为LaB-PQ设计两种具体数据结构:一种针对理论效率优化(操作复杂度为O(log n)),另一种针对实际性能优化(采用分桶和半排序技术)。
- 设计两种新算法:𝜌-步进法使用固定步长𝜌以平衡工作量与并行性;Δ∗-步进法是Δ-步进法的调优变体,具有改进的参数稳定性。
- 使用共享代码库实现三种算法:Bellman-Ford、Δ∗-步进法和𝜌-步进法,以支持直接的性能对比。
- 在96核(192个超线程)的共享内存环境中执行,并在五个社交/网页图和两个道路网络上评估性能与参数敏感性。
实验结果
研究问题
- RQ1能否设计一种统一的算法框架,以泛化现有的步进算法(如Δ-步进法和半径-步进法),同时保持理论边界?
- RQ2能否设计一种新型的优先队列抽象——LaB-PQ,以在理论上和实践上高效支持步进算法所需的批量、懒惰更新?
- RQ3新算法𝜌-步进法和Δ∗-步进法是否在保证理论最坏情况工作量和跨度边界的同时,展现出优于现有实现的实际性能?
- RQ4步进算法的性能对参数选择(如Δ或𝜌)有多敏感?固定参数选择是否能在多种图上实现稳定性能?
- RQ5统一的实现框架能否在实践中支持对不同步进算法进行更深入、更系统的性能分析?
主要发现
- 在五个社交网络和网页图上,𝜌-步进法相比所有现有实现均实现了1.3–2.6倍的加速,且在广泛𝜌值范围内性能稳定。
- 在道路网络上,Δ∗-步进法比现有实现至少快14%,表明其在具有欧几里得边权的几何图中具有显著有效性。
- 𝜌的最优选择在不同规模的图中保持一致(例如,从10K到1000万顶点),最优值范围为2^19至2^22,当使用固定𝜌 = 2^21时,性能与最佳值相差不超过5%。
- 𝜌-步进法每步访问的顶点数和边数分布比Δ-步进法或Bellman-Ford更均匀,减少了冗余工作并改善了负载均衡。
- 𝜌-步进法的实现表现出自加速特性,在大规模无标度网络上比现有系统更具可扩展性。
- 统一框架实现了多种步进算法的一致、高性能实现,且代码重复极少,使实际中能够进行深入的对比分析。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。