Graph Partitioning via Parallel Submodular Approximation to Accelerate Distributed Machine Learning

Mu Li, Dave G. Andersen, Alexander J. SmolaarXiv 2015

Introduction

In the era of big data, distributed machine learning is essential for scaling models across large clusters. However, a significant bottleneck often arises: communication overhead. When the time spent moving data between machines exceeds the time spent on computation, scaling hardware can lead to diminishing returns or even performance degradation. To address this, researchers from Carnegie Mellon University developed Parsa, a high-performance graph partitioning algorithm designed to minimize network traffic by intelligently distributing data and parameters.

The Distributed ML Bottleneck

Distributed ML typically involves splitting training data across worker nodes while model parameters reside on server nodes. In common tasks like text classification, a random assignment of data to workers often forces each worker to fetch a vast, overlapping set of parameters from multiple servers. This "random partitioning" can generate network traffic up to 100 times larger than the training data itself, creating a massive bandwidth bottleneck.

Bipartite graph representation of data (U) and parameters (V).

The challenge lies in balancing three factors:

  1. Load Balancing: Ensuring equal work across machines.
  2. Memory Constraints: Managing limited RAM on worker nodes.
  3. Bandwidth: Minimizing data movement across relatively slow network links.

The Parsa Algorithm

Parsa (PARallel Submodular Approximation) frames data placement as a bipartite graph partitioning problem. One set of nodes ($U$) represents data samples (e.g., documents), and the other ($V$) represents parameters (e.g., features). An edge exists if a sample depends on a specific parameter.

The algorithm operates in two stages:

  1. Data Partitioning ($U$): Documents are assigned to workers to minimize the set of unique parameters required by each worker. This objective function is submodular, allowing for an efficient greedy approximation.
  2. Parameter Partitioning ($V$): Parameters are then placed on servers based on their proximity to the workers that require them most, solved via a convex integer program.

To handle billions of edges, Parsa incorporates several engineering optimizations, including $O(1)$ vertex lookups using specialized data structures and a distributed implementation within a Parameter Server architecture.

Experimental Results

The authors evaluated Parsa on diverse datasets, including social networks and massive click-through rate (CTR) data with up to 10 billion edges.

Comparison of network communication between Parsa and random partitioning.

Key findings include:

  • Traffic Reduction: Parsa reduced network communication by up to 90% compared to random partitioning.
  • End-to-End Speedup: On a 16-machine cluster, Parsa achieved a 1.6x speedup in total training time for a 10-billion edge dataset.
  • Efficiency: Parsa outperformed traditional partitioning tools like PaToH and Zoltan by over 20x in execution time while maintaining superior partition quality.

Conclusion

By shifting the focus from traditional edge-cuts to vertex-cuts and leveraging submodular optimization, Parsa provides a scalable solution for the communication bottleneck in distributed ML. Its ability to handle massive, sparse datasets makes it a powerful tool for modern large-scale machine learning infrastructure.

Summary updated

BibTeX
@misc{li2015graph,
  author = {Mu Li and Dave G. Andersen and Alexander J. Smola},
  title = {{Graph Partitioning via Parallel Submodular Approximation to Accelerate Distributed Machine Learning}},
  year = {2015},
  eprint = {1505.04636},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1505.04636},
}
Figure