[Paper Review] Efficient Stepping Algorithms and Implementations for Parallel Shortest Paths
This paper introduces a unified stepping algorithm framework and a novel lazy-batched priority queue (LaB-PQ) to unify and optimize parallel shortest path computation. It proposes two new algorithms, 𝜌-stepping and Δ∗-stepping, which achieve provable worst-case bounds while outperforming existing implementations—𝜌-stepping is 1.3–2.6× faster than state-of-the-art on social and web graphs, and Δ∗-stepping is at least 14% faster on road networks.
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.
Motivation & Objective
- Address the lack of theoretical guarantees in practical parallel SSSP algorithms like Δ-stepping, which rely heavily on manual tuning of the parameter Δ.
- Overcome the performance instability and parameter sensitivity of existing algorithms by introducing a unified algorithmic framework with provable bounds.
- Design a new abstract data type, the lazy-batched priority queue (LaB-PQ), to efficiently support the semantics required by stepping algorithms.
- Develop new stepping algorithms—𝜌-stepping and Δ∗-stepping—that combine theoretical efficiency with practical performance.
- Enable systematic, high-performance implementation and comparative analysis of stepping algorithms through a common software framework.
Proposed method
- Propose a general stepping algorithm framework that generalizes Δ-stepping and Radius-stepping, enabling unified analysis and implementation.
- Introduce the lazy-batched priority queue (LaB-PQ), a new abstract data type that supports batched, lazy updates to prioritize vertices in stepping algorithms.
- Design two concrete data structures for LaB-PQ: one optimized for theoretical efficiency (with O(log n) operations), and one for practical performance (using bucketing and semisorting).
- Develop two new algorithms: 𝜌-stepping, which uses a fixed step size 𝜌 to balance work and parallelism, and Δ∗-stepping, a tuned variant of Δ-stepping with improved parameter stability.
- Implement the framework with three algorithms: Bellman-Ford, Δ∗-stepping, and 𝜌-stepping, using a shared codebase to enable direct performance comparison.
- Use shared-memory execution on 96 cores (192 hyperthreads) and evaluate on five social/web graphs and two road networks to measure performance and parameter sensitivity.
Experimental results
Research questions
- RQ1Can a unified algorithmic framework be designed to generalize existing stepping algorithms like Δ-stepping and Radius-stepping while preserving theoretical bounds?
- RQ2Can a new priority queue abstraction—LaB-PQ—be designed to efficiently support the batched, lazy updates required by stepping algorithms, both theoretically and practically?
- RQ3Do the new algorithms, 𝜌-stepping and Δ∗-stepping, achieve both provable worst-case work and span bounds and superior practical performance compared to existing implementations?
- RQ4How sensitive are the performance of stepping algorithms to parameter choices (e.g., Δ or 𝜌), and can a fixed parameter choice yield stable performance across diverse graphs?
- RQ5Can the unified implementation framework enable deeper, more systematic performance analysis across different stepping algorithms in practice?
Key findings
- 𝜌-stepping achieves 1.3–2.6× speedup over all existing implementations on five social and web graphs, with performance stable across a wide range of 𝜌 values.
- On road networks, Δ∗-stepping is at least 14% faster than existing implementations, demonstrating its effectiveness in geometric graphs with Euclidean edge weights.
- The best choice of 𝜌 is consistent across graphs of vastly different sizes (e.g., from 10K to 10M vertices), with optimal values ranging from 2^19 to 2^22, and performance within 5% of the best when using a fixed 𝜌 = 2^21.
- The number of vertices and edges visited per step is more evenly distributed in 𝜌-stepping than in Δ-stepping or Bellman-Ford, reducing redundant work and improving load balancing.
- The implementation of 𝜌-stepping shows self-speedup and is more scalable than existing systems, particularly on large-scale-free networks.
- The unified framework enables consistent, high-performance implementations of multiple stepping algorithms with minimal code duplication, allowing for in-depth comparative analysis in practice.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.