Abstract
We introduce the Adaptive Massively Parallel Computation (AMPC) model, which is an extension of the Massively Parallel Computation (MPC) model. At a high level, the AMPC model strengthens the MPC model by storing all messages sent within a round in a distributed data store. In the following round, all machines are provided with random read access to the data store, subject to the same constraints on the total amount of communication as in the MPC model. Our model is inspired by the previous empirical studies of distributed graph algorithms using MapReduce and a distributed hash table service. This extension allows us to give new graph algorithms with much lower round complexities compared to the best known solutions in the MPC model. In particular, in the AMPC model we show how to solve maximal independent set in $O(1)$ rounds and connectivity/minimum spanning tree in $O(\log\log_{m/n} n)$ rounds both using $O(n^\delta)$ space per machine for constant $\delta < 1$. In the same memory regime for MPC, the best known algorithms for these problems require polylog $n$ rounds. Our results imply that the 2-Cycle conjecture, which is widely believed to hold in the MPC model, does not hold in the AMPC model.
Introduction
In the era of big data, the Massively Parallel Computation (MPC) model serves as the standard theoretical framework for analyzing distributed systems like MapReduce, Spark, and Hadoop. In MPC, computation proceeds in synchronous rounds where machines process local data and then shuffle messages. However, MPC faces a significant bottleneck: round complexity. Because communication only occurs between rounds, exploring graph neighborhoods is slow—following a path of length $k$ typically requires $O(k)$ rounds. This limitation is encapsulated in the "2-Cycle conjecture," which posits that distinguishing one large cycle from two smaller ones requires $\Omega(\log n)$ rounds.
Modern data centers utilize technologies like Remote Direct Memory Access (RDMA) and distributed hash tables, allowing machines to fetch data across the network with minimal latency. The standard MPC model fails to account for this "adaptive" capability. This paper introduces the Adaptive Massively Parallel Computation (AMPC) model to bridge this gap between theory and practice.
The AMPC Model
The AMPC model extends MPC by introducing a Distributed Data Store (DDS). At the start of each round, all messages from the previous round are stored in the DDS as key-value pairs. Within a single round, a machine can perform $O(S)$ adaptive queries to the DDS, where $S$ is the machine's local memory. This means the result of one query can inform the next, allowing a machine to "walk" through a graph or perform pointer jumping within a single round.
To maintain realism, the total number of queries across all machines is capped by the same communication budget as standard MPC. This model mimics high-performance distributed systems while remaining fault-tolerant; since the DDS is immutable during a round, failed machines can simply restart and re-read the data.
Key Insights
- Breaking the 2-Cycle Barrier: The authors demonstrate that the $\Omega(\log n)$ round barrier for MPC does not hold in AMPC. By using adaptive queries to trace cycles, the 2-Cycle problem is solved in $O(1)$ rounds.
- Efficient Pointer Jumping: The model is exceptionally well-suited for pointer jumping and BFS-like explorations. A machine can explore a local neighborhood of size $d$ in one round, rather than $d$ rounds.
- Practicality: AMPC reflects the behavior of modern hardware (RDMA) and distributed services (hash tables), making theoretical results more applicable to real-world engineering.
Comparative Performance
The AMPC model achieves exponential speedups for fundamental graph problems. For instance, Connectivity and Minimum Spanning Tree (MST) are solved in $O(\log \log_{m/n} n)$ rounds, a "double logarithmic" complexity that significantly outperforms the standard logarithmic bounds in MPC.
| Problem | MPC Complexity (Best Known) | AMPC Complexity (This Paper) |
|---|---|---|
| 2-Cycle | $O(\log n)$ | $O(1)$ |
| Maximal Independent Set | $O(\sqrt{\log n})$ | $O(1)$ |
| Connectivity | $O(\log D \cdot \log \log n)$ | $O(\log \log_{m/n} n)$ |
| Minimum Spanning Tree | $O(\log n)$ | $O(\log \log_{m/n} n)$ |
| Forest Connectivity | $O(\log D \cdot \log \log n)$ | $O(1)$ |
Conclusion and Future Work
While the AMPC model offers significant theoretical advantages, practical implementations must consider query contention. Although random data distribution helps, "hot spots" could still occur. Future research could explore "Read-Write" AMPC models, which might offer even faster algorithms at the cost of increased synchronization complexity. Additionally, establishing "hardness" results specifically for the AMPC model remains an open challenge.
Summary updated