PMV: Pre-partitioned Generalized Matrix-Vector Multiplication for Scalable Graph Mining

Chiwan Park, Ha-Myung Park, Minji Yoon, U KangarXiv 2017

Introduction

Modern graph mining tasks, such as PageRank, Connected Components, and Shortest Path calculations, are increasingly performed on massive datasets containing hundreds of billions of edges. Most of these algorithms can be mathematically unified under the Generalized Iterative Matrix-Vector multiplication (GIM-V) model. In this framework, the graph structure is represented as a matrix $M$, and vertex attributes are represented as a vector $v$.

Graph and its matrix-vector representation.

However, scaling GIM-V to modern web-scale graphs presents a significant challenge. Existing distributed-memory systems (e.g., GraphLab, GraphX) are often limited by cluster RAM, leading to "Out of Memory" (OOM) errors on large graphs. Conversely, MapReduce-based systems like PEGASUS utilize disk storage but suffer from high network I/O overhead due to repeated "shuffling" of the entire graph matrix in every iteration.

The PMV Framework

PMV (Pre-partitioned generalized Matrix-Vector multiplication) addresses these bottlenecks through two primary innovations: one-time pre-partitioning and density-aware execution strategies.

Pre-partitioning

Unlike traditional MapReduce approaches that re-distribute the graph matrix $M$ in every iteration, PMV partitions $M$ exactly once at the start. These partitions are stored locally on worker nodes. During the iterative computation, only the significantly smaller vertex vector $v$ is moved across the network, drastically reducing total I/O.

Density-Aware Placement

The optimal strategy for computing a matrix-vector product depends on the sparsity of the graph blocks. PMV introduces four placement strategies:

  • PMV-horizontal: Workers handle row-blocks, receiving the full input vector. This is optimal for dense regions.
  • PMV-vertical: Workers handle column-blocks, producing intermediate results that require aggregation. This is more efficient for sparse regions.
  • PMV-selective: Automatically selects the best global strategy based on a cost model.
  • PMV-hybrid: Simultaneously applies different strategies to dense and sparse sub-blocks within the same matrix, optimizing for the skewed degree distributions common in real-world graphs.

Experimental Evaluation

The researchers evaluated PMV against state-of-the-art systems using massive real-world datasets, including ClueWeb12 (71 billion edges) and Twitter (1.4 billion edges).

Running time vs. number of edges, showing PMV's superior scalability compared to other frameworks.

Key Results

  • Scalability: PMV demonstrated 16x higher scalability than competing frameworks. It was the only system capable of processing the 71-billion-edge ClueWeb12 graph; others either ran out of memory or timed out.
  • Performance: PMV achieved up to 9x faster execution than PEGASUS by minimizing the data shuffled between iterations.
  • I/O Efficiency: The Hybrid strategy reduced network I/O by 44% compared to a pure vertical strategy on the Twitter dataset.

Conclusion

PMV demonstrates that minimizing data movement is the key to scaling graph mining. By recognizing that "one size does not fit all" regarding graph density, PMV's hybrid approach allows it to handle both "celebrity" nodes and sparse regions efficiently. While currently optimized for static graphs, PMV sets a new benchmark for processing datasets at the scale of hundreds of billions of edges.

Summary updated

BibTeX
@misc{park2017pmv,
  author = {Chiwan Park and Ha-Myung Park and Minji Yoon and U Kang},
  title = {{PMV: Pre-partitioned Generalized Matrix-Vector Multiplication for Scalable Graph Mining}},
  year = {2017},
  eprint = {1709.09099},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1709.09099},
}
Figure