Abstract
Processing massive graphs with billions of nodes requires sophisticated parallel systems. However, existing frameworks often force developers to recast well-understood sequential algorithms into unfamiliar parallel paradigms, a process that is both error-prone and labor-intensive. This paper introduces GRAPE, a parallel graph engine that enables the parallelization of existing sequential graph algorithms without rewriting them. By combining partial evaluation with incremental computation through the PIE (PEval-IncEval-Assemble) model, GRAPE achieves performance comparable to or exceeding state-of-the-art systems while drastically reducing communication overhead.
Introduction
The explosion of large-scale graph data, such as social networks and web graphs, has necessitated the development of parallel graph processing frameworks like Google’s Pregel and GraphLab. Despite their success, these systems require programmers to "think like a vertex" or "think in parallel," which often involves complex transformations of standard sequential algorithms. This barrier prevents many domain experts from leveraging parallel computing effectively.
The central question addressed by GRAPE is whether it is possible to "plug in" a standard sequential algorithm—such as Dijkstra’s for shortest paths—and have a system automatically parallelize it across a cluster with guaranteed convergence to the correct answer.
The PIE Programming Model
GRAPE introduces the PIE (PEval-IncEval-Assemble) programming model, which decomposes parallel computation into three distinct phases:
- PEval (Partial Evaluation): The input graph is partitioned into fragments. Each worker node executes a standard sequential algorithm on its local fragment to compute a partial result.
- IncEval (Incremental Evaluation): Workers exchange messages regarding changes to "border nodes"—nodes that connect different fragments. Each worker then applies an incremental version of the sequential algorithm to update its local results based on these updates. This process iterates until the system reaches a "fixpoint," where no further changes occur.
- Assemble: A final function aggregates the local results from all workers into the global answer.
The technical innovation of GRAPE lies in its use of a simultaneous fixpoint operator. By treating the sequential algorithm as a black box and using incremental computation as the "consequence operator," GRAPE drives parallel execution efficiently. The authors provide a proof that if the sequential algorithms are correct and follow a monotonic update pattern, the parallel execution is guaranteed to converge to the correct global result.
Experimental Evaluation
The researchers evaluated GRAPE using five diverse, real-world datasets: UKWeb (web graph), Friendster (social network), Traffic (US road network), DBpedia (knowledge base), and MovieLens (recommendation network).
Performance and Communication Efficiency
GRAPE demonstrates significant advantages over traditional vertex-centric models, particularly in communication efficiency. Systems like Pregel often transmit massive amounts of data during every "superstep." In contrast, GRAPE’s IncEval phase only communicates changes in status variables. For Single Source Shortest Path (SSSP) tasks on the UKWeb graph, GRAPE reduced communication to just 0.0017% of the data required by Giraph.
On high-diameter graphs like road networks, where traditional systems struggle with thousands of iterations, GRAPE excels. On the "traffic" dataset, GRAPE was 14,842 times faster than Giraph and 3,992 times faster than GraphLab when utilizing 192 workers. This performance is attributed to GRAPE's ability to process large local chunks sequentially before initiating communication.
Scalability and Expressiveness
GRAPE showed near-linear "scale-up," maintaining performance as both graph size and processor count increased. Furthermore, the authors proved that GRAPE is highly expressive, capable of optimally simulating other major parallel models, including MapReduce, Bulk Synchronous Parallel (BSP), and Parallel Random Access Machine (PRAM).
Limitations and Future Directions
While GRAPE simplifies parallelization, it does require an incremental version of the sequential algorithm (IncEval). Although many such algorithms exist for common graph problems, they may not be available for all specialized computations. Additionally, the convergence guarantee relies on monotonic updates (e.g., distances only decreasing), which, while common in graph problems, is a specific constraint.
Future work involves extending GRAPE to support an Asynchronous Parallel Model (ASP). This would further improve performance by reducing the idle time workers spend waiting for synchronization in the current synchronous BSP-based model.
Conclusion
GRAPE represents a significant shift in parallel graph processing by allowing the reuse of optimized sequential algorithms. By leveraging partial evaluation and incremental computation, it provides a bridge between the simplicity of sequential programming and the power of large-scale parallel clusters, offering massive gains in both speed and communication efficiency.
Summary updated