Maiter: An Asynchronous Graph Processing Framework for Delta-Based Accumulative Iterative Computation

Yanfeng Zhang, Qixin Gao, Lixin Gao, Cuirong WangIEEE TPDS 2014

Abstract

Myriad of graph-based algorithms in machine learning and data mining require parsing relational data iteratively. These algorithms are implemented in a large-scale distributed environment in order to scale to massive data sets. To accelerate these large-scale graph-based iterative computations, we propose delta-based accumulative iterative computation (DAIC). Different from traditional iterative computations, which iteratively update the result based on the result from the previous iteration, DAIC updates the result by accumulating the "changes" between iterations. By DAIC, we can process only the "changes" to avoid the negligible updates. Furthermore, we can perform DAIC asynchronously to bypass the high-cost synchronous barriers in heterogeneous distributed environments. Based on the DAIC model, we design and implement an asynchronous graph processing framework, Maiter. We evaluate Maiter on local cluster as well as on Amazon EC2 Cloud. The results show that Maiter achieves as much as 60x speedup over Hadoop and outperforms other state-of-the-art frameworks.

Introduction

In the era of big data, graph-based algorithms such as PageRank, Single Source Shortest Path (SSSP), and HITS are essential for extracting insights from relational data. However, executing these algorithms on massive datasets in distributed environments presents significant challenges. Traditional frameworks like MapReduce or Pregel often rely on synchronous iteration, where every node must wait at a "synchronous barrier" for the slowest worker to finish before proceeding to the next step. This synchronization overhead leads to wasted CPU cycles and poor performance, especially in heterogeneous cloud environments.

Furthermore, existing asynchronous models often suffer from inefficiencies. "Pull-based" models may cause vertices to request data even when no updates have occurred, while other asynchronous methods may lack mathematical guarantees for convergence. Maiter addresses these issues by introducing a delta-based approach that enables efficient, asynchronous execution with guaranteed convergence.

The DAIC Model and Maiter Framework

The core innovation of Maiter is the Delta-based Accumulative Iterative Computation (DAIC) model. Instead of propagating full vertex states, DAIC focuses on propagating the change (delta) in a vertex's value.

Delta Propagation and Accumulation

In the DAIC model, a vertex only sends a message to its neighbors if its state has changed significantly since the last update. These messages contain the delta ($\Delta$), which is then "accumulated" at the destination vertex using an abstract operator $\oplus$ (e.g., addition for PageRank or 'min' for SSSP). This approach drastically reduces communication overhead by ignoring negligible updates.

Mapping of common graph algorithms to the DAIC model parameters.

As shown in the table above, a wide variety of algorithms can be expressed using the DAIC model by defining specific functions for propagation ($g$) and accumulation ($\oplus$). This mathematical rigor ensures that the asynchronous execution converges to the same fixed point as a synchronous execution, provided the operators meet certain algebraic properties (commutativity, associativity, and distributivity).

System Architecture

Maiter is implemented in C++ using MPI for communication. Each worker node in the Maiter framework utilizes a dual-thread architecture to maximize throughput and minimize locking overhead.

The internal architecture of a Maiter worker node.

The Receive thread continuously listens for incoming delta messages from the network and updates the local state table. Simultaneously, the Update thread scans the state table, processes vertices with pending deltas, and sends out new delta messages to neighbors. This design allows for concurrent computation and communication. Additionally, Maiter supports priority scheduling, where vertices with larger deltas are processed first, further accelerating convergence.

Evaluation

The researchers evaluated Maiter using real-world datasets (e.g., Google Webgraph) and synthetic graphs with up to 2 billion nodes. Experiments were conducted on local clusters and Amazon EC2.

Key Results

  • Performance: Maiter achieved up to a 60x speedup over Hadoop for PageRank on EC2. It also significantly outperformed other state-of-the-art frameworks like Spark, Piccolo, and GraphLab.
  • Convergence Efficiency: The priority scheduling mechanism (Maiter-Pri) allowed the system to reach convergence with far fewer total updates than synchronous methods.
  • Scalability: Maiter demonstrated near-optimal scaling as the number of nodes increased from 20 to 100. It successfully handled a massive 2-billion-node graph, proving its capability for large-scale production workloads.

Conclusion and Future Work

Maiter demonstrates that shifting from state-based to delta-based computation can unlock massive performance gains in distributed graph processing. By combining delta propagation with an asynchronous execution model, Maiter bypasses the bottlenecks of synchronous barriers while maintaining mathematical correctness.

While highly effective, Maiter currently requires algorithms to be decomposable into the DAIC form. Future work includes exploring more sophisticated scheduling policies, extending the model to support dynamic graphs with evolving edges, and optimizing memory management for even larger datasets.

Summary updated

BibTeX
@article{zhang2014maiter,
  author = {Yanfeng Zhang and Qixin Gao and Lixin Gao and Cuirong Wang},
  title = {{Maiter: An Asynchronous Graph Processing Framework for Delta-Based Accumulative Iterative Computation}},
  journal = {IEEE Trans. Parallel Distributed Syst.},
  year = {2014},
  url = {https://openreview.net/forum?id=YdGM3rrv9f},
}
Figure