Distributed GraphLab: A Framework for Machine Learning in the Cloud

Yucheng Low, Joseph Gonzalez, Aapo Kyrola, Danny Bickson, Carlos Guestrin, Joseph M. Hellerstein

Abstract

Distributed GraphLab is a high-performance framework designed specifically for the unique requirements of machine learning (ML) and data mining (MLDM) in cloud environments. Unlike traditional MapReduce-style systems, GraphLab introduces a graph-based abstraction that supports asynchronous updates, sparse dependencies, and dynamic scheduling. Our evaluation demonstrates that by embracing asynchrony and graph-structured data, Distributed GraphLab achieves 20-60x speedups over Hadoop and matches the performance of hand-tuned MPI implementations while providing a high-level, fault-tolerant programming model.

Introduction

Large-scale data processing has traditionally relied on abstractions like MapReduce or Dryad. While effective for simple data transformations, these frameworks are ill-suited for MLDM algorithms, which are typically iterative, graph-structured, and asymmetric. In these algorithms, data points (e.g., users and movies) have complex dependencies, and different parts of the model often converge at different rates.

Existing tools like Hadoop impose synchronous barriers, forcing all machines to wait for the slowest "straggler" before proceeding. Furthermore, they lack support for asynchronous updates, which allow computations to immediately utilize the most recent results from neighboring vertices. Distributed GraphLab bridges this gap by providing a framework that manages the complexities of distributed systems—such as locking, consistency, and fault tolerance—while allowing researchers to focus on algorithmic logic.

System Design

The Distributed GraphLab framework extends the original shared-memory GraphLab to a distributed environment through several key innovations:

  • The Data Graph: Data is represented on vertices and edges. To scale in the cloud, the system employs a two-stage partitioning method where the graph is divided into small "atoms" and then balanced across the cluster.
  • Update Functions and the "Pull" Model: Users define "Update Functions" that operate on a vertex and its immediate neighborhood (its "scope"). Unlike the message-passing "push" model of Pregel, GraphLab uses a "pull" model where vertices read directly from neighbors, simplifying the implementation of adaptive algorithms.
  • Distributed Locking Engine: To maintain serializability (ensuring parallel execution matches sequential results), GraphLab uses a distributed locking protocol. A prefetching pipeline is used to hide network latency by requesting locks and data for future updates while the CPU processes current ones.
  • Fault Tolerance: GraphLab implements an asynchronous snapshotting algorithm based on the Chandy-Lamport method. This allows the system to save its state without halting global computation, avoiding "stop-the-world" overhead.

Key Insights

Asynchrony as a Performance Driver

A core finding is that allowing updates to occur asynchronously leads to significantly faster convergence. By removing the need for a global clock, algorithms avoid wasting time at synchronization barriers. This is particularly evident in PageRank benchmarks where asynchronous execution significantly outperforms synchronous alternatives.

Comparison of convergence speed between asynchronous (GraphLab) and synchronous (Pregel) PageRank implementations.

The Power of Dynamic Scheduling

GraphLab's dynamic scheduling allows it to prioritize computation on the most active parts of the graph. In PageRank experiments, the authors observed that 51% of vertices converged after only a single update, while a small subset required many more. By skipping "finished" vertices, GraphLab achieves massive efficiency gains.

Evaluation and Results

The framework was evaluated on three large-scale problems: Netflix Movie Recommendation (ALS), Video Co-segmentation (CoSeg), and Named Entity Recognition (NER).

  • Performance vs. Hadoop: GraphLab outperformed Hadoop/Mahout by 20-60x on the Netflix and NER tasks.
  • Performance vs. MPI: GraphLab matched or slightly exceeded the performance of hand-coded MPI implementations, despite being a higher-level framework.
  • Convergence Speed: On the Netflix task, dynamic scheduling reached the target error rate in approximately half the time required by a static, synchronous schedule.
  • Scalability: The system demonstrated near-linear scaling on up to 64 nodes (512 cores) for computationally intensive applications like CoSeg.

Discussion and Future Work

While Distributed GraphLab offers significant advantages, it faces limitations. For extremely dense graphs, network saturation can limit scaling. Additionally, the current implementation requires the entire graph to fit in the aggregate RAM of the cluster. Future work will explore "out-of-core" storage to handle even larger datasets and support for "evolving graphs" where the graph structure changes dynamically during execution.

Summary updated

BibTeX
@article{low2012distributed,
  author = {Yucheng Low and Joseph Gonzalez and Aapo Kyrola and Danny Bickson and Carlos Guestrin and Joseph M. Hellerstein},
  title = {{Distributed GraphLab: A Framework for Machine Learning in the Cloud}},
  journal = {Proc. VLDB Endow.},
  year = {2012},
  doi = {10.14778/2212351.2212354},
}
Figure