Parallel Graph Algorithms in Constant Adaptive Rounds: Theory meets Practice

Soheil Behnezhad, Laxman Dhulipala, Hossein Esfandiari, Jakub Lacki, Vahab S. Mirrokni, Warren Schudy

TL;DR

This paper introduces the Adaptive Massively Parallel Computation (AMPC) model, a more practical variant of distributed graph processing. They present the first constant-round algorithms for fundamental graph problems like connectivity, minimum spanning forest, and maximal matching in this model, significantly improving upon existing theoretical bounds. Crucially, they provide an empirical evaluation demonstrating that AMPC algorithms can outperform traditional MPC approaches in real-world distributed systems.

What Problem Does This Paper Address?

Distributed graph processing is essential for handling massive datasets, but existing models like the Massively Parallel Computation (MPC) model face theoretical limitations. A key challenge in MPC is the "logarithmic lower bound" for many graph problems, meaning they inherently require a number of communication rounds that grows with the graph size. This is often due to the difficulty of exploring large neighborhoods efficiently. The paper introduces the Adaptive Massively Parallel Computation (AMPC) model, which augments MPC with a distributed hash table. This enhancement aims to overcome some of these theoretical hurdles, enabling faster algorithms. The paper addresses the question of whether this theoretical improvement in AMPC translates to practical performance gains, and if constant-round algorithms can be achieved for fundamental graph problems.

Methods

The core contribution is the development of constant-round AMPC algorithms for several graph problems:

  • Connectivity and Minimum Spanning Forest (MSF): They propose an AMPC algorithm that achieves O(1) rounds for MSF and connectivity. This involves a graph "ternarization" step to handle sparse graphs, followed by a local Prim's algorithm variant and a contraction process. The algorithm is designed to improve upon previous O(log log n) AMPC algorithms and Ω(log n) MPC lower bounds.
  • Maximal Matching: Two AMPC algorithms are presented: one in O(log log n) rounds with O(n) space per machine, and another in O(1) rounds with O(m + n¹+€) total space. These leverage the relationship between maximal independent sets (MIS) and maximal matchings, using an MIS algorithm as a subroutine.
  • Empirical Evaluation: The authors implement their AMPC algorithms (for MIS, Maximal Matching, MSF, and 1-vs-2-Cycle) and compare them against state-of-the-art MPC baselines using the Flume-C++ framework. They investigate the impact of optimizations like caching and multithreading.

Datasets

The paper evaluates its algorithms on a representative set of real-world graphs:

  • com-Orkut (OK): Social network graph.
  • Friendster (FS): Social network graph.
  • Twitter (TW): Social network graph (follower relationships).
  • Clue Web (CW): Web graph.
  • Hyperlink2012 (HL): Directed hyperlink graph.
  • 2xk graphs: Synthetic graphs consisting of two cycles on k vertices each, used for testing 1-vs-2-Cycle algorithms.

Key Insights and Ideas

  • AMPC as a Practical Improvement: The AMPC model, by incorporating a distributed hash table, offers a more realistic computational model for distributed graph processing, bridging the gap between theoretical models and practical systems.
  • Constant Rounds are Achievable: The paper demonstrates that fundamental graph problems, previously thought to require logarithmic rounds in MPC, can indeed be solved in constant rounds within the AMPC model. This is a significant theoretical advancement.
  • Empirical Validation is Crucial: The practical evaluation is a key takeaway. It shows that the theoretical gains of AMPC translate into real-world speedups, often significantly outperforming MPC baselines.
  • Optimizations Matter: Caching and multithreading are shown to be critical for achieving good performance in AMPC implementations, reducing communication overhead and improving throughput.
  • RDMA's Impact: The use of RDMA for communication in the AMPC model provides substantial speedups, highlighting the importance of low-latency networking for distributed graph algorithms.

Key Results

  • Theoretical Breakthroughs: The paper presents the first constant-round AMPC algorithms for connectivity, MSF, and maximal matching. These results improve upon prior AMPC work and address theoretical lower bounds in the MPC model.
  • Empirical Speedups:
    • AMPC MIS algorithms achieved 2.31–3.18x speedup over MPC MIS algorithms.
  • AMPC Maximal Matching algorithms achieved 1.16–1.72x speedup over MPC Maximal Matching algorithms.
  • AMPC MSF algorithms achieved 2.6–7.19x speedup over MPC MSF algorithms.
  • AMPC 1-vs-2-Cycle algorithms achieved 3.40–9.87x speedup over MPC connectivity algorithms.
  • Reduced Communication: AMPC algorithms generally perform fewer shuffles (rounds) and shuffle less data compared to MPC algorithms, leading to better performance.
  • Optimization Benefits: Caching and multithreading optimizations provided significant speedups for AMPC MIS, with caching alone enabling 1.47–3.99x speedup.

Limitations and Future Work

  • Graph Contraction Overhead: For problems like connectivity, the graph contraction step in the AMPC algorithm can still be costly, limiting speedups on certain graph structures.
  • Query Complexity: While round complexity is reduced, the total query complexity for some problems might still be a bottleneck, especially for very sparse graphs (m = O(n)).
  • Scalability Bottlenecks: The paper notes that network bandwidth can become a bottleneck when querying the key-value store, especially for very large graphs.
  • Future Work: The authors suggest exploring whether the AMPC model can solve other fundamental large-scale problems faster (e.g., string matching, distance problems on graphs), and investigating how to further reduce query complexity. They also point to the potential of AMPC for accelerating random-walk based problems and graph embeddings.

Summary updated

BibTeX
@article{behnezhad2020parallel,
  author = {Soheil Behnezhad and Laxman Dhulipala and Hossein Esfandiari and Jakub Lacki and Vahab S. Mirrokni and Warren Schudy},
  title = {{Parallel Graph Algorithms in Constant Adaptive Rounds: Theory meets Practice}},
  journal = {Proc. VLDB Endow.},
  year = {2020},
  doi = {10.14778/3424573.3424579},
}
Figure