Abstract
What is a systematic way to efficiently apply a wide spectrum of advanced ML programs to industrial scale problems, using Big Models (up to 100s of billions of parameters) on Big Data (up to terabytes or petabytes)? Modern parallelization strategies employ fine-grained operations and scheduling beyond the classic bulk-synchronous processing paradigm popularized by MapReduce, or even specialized graph-based execution that relies on graph representations of ML programs. The variety of approaches tends to pull systems and algorithms design in different directions, and it remains difficult to find a universal platform applicable to a wide range of ML programs at scale. We propose a general-purpose framework that systematically addresses data- and model-parallel challenges in large-scale ML, by observing that many ML programs are fundamentally optimization-centric and admit error-tolerant, iterative-convergent algorithmic solutions. This presents unique opportunities for an integrative system design, such as bounded-error network synchronization and dynamic scheduling based on ML program structure. We demonstrate the efficacy of these system designs versus well-known implementations of modern ML algorithms, allowing ML programs to run in much less time and at considerably larger model sizes, even on modestly-sized compute clusters.
Introduction: Bridging the Gap Between ML and Big Data
In the early 2010s, a significant "scale gap" emerged in machine learning. While researchers developed increasingly sophisticated models, transitioning these from single-machine environments to massive distributed clusters proved difficult. Standard distributed systems like MapReduce (Hadoop) were designed for general data processing rather than the specific mathematical requirements of ML. These systems often rely on Bulk Synchronous Processing (BSP), where every node must wait for the slowest worker to finish an iteration. This "straggler" problem severely degrades performance in ML tasks.
Petuum addresses two primary hurdles in scaling ML:
- Data Parallelism: Efficiently partitioning massive datasets across machines without creating network bottlenecks.
- Model Parallelism: Partitioning models with billions of parameters such that updates do not conflict or cause mathematical divergence.
Methods: Exploiting Iterative-Convergent Algorithms
Petuum is built on the insight that ML algorithms are fundamentally "iterative-convergent"—they start with an initial guess and refine it over many steps. This property allows for a system design that trades off strict consistency for performance:
- Stale Synchronous Parallel (SSP): Unlike rigid BSP, SSP allows "staleness." A worker can proceed using a version of the model that is a few iterations old. This significantly reduces network synchronization overhead while maintaining a mathematical guarantee of convergence.
- Dynamic Scheduling: Petuum’s scheduler prioritizes updates for parameters that are furthest from converging and avoids simultaneous updates to highly correlated parameters to prevent "mathematical collisions."
- Parameter Server: A distributed shared-memory system provides a unified view of model parameters across the cluster, simplifying the programming model for complex distributed tasks.
Key Results: Performance and Scalability
Evaluation across diverse datasets—including Clueweb 2012 (27TB), ImageNet, and the Netflix dataset—demonstrates Petuum's superior performance. Petuum-based implementations of Topic Modeling (LDA) and Matrix Factorization achieved 2x to 10x speedups over platforms like Spark and GraphLab.
Furthermore, Petuum demonstrated exceptional scalability. While specialized systems like GraphLab encountered memory limits on large Matrix Factorization tasks, Petuum handled models with high rank ($K \ge 1000$) on identical hardware. The platform's flexibility was also proven by porting the Caffe deep learning framework with minimal code changes, achieving near-linear speedup.
Conclusion
Petuum successfully bridges the gap between complex ML algorithms and big data scale by exploiting the error-tolerant nature of iterative optimization. While currently optimized for small-to-medium clusters (10-100 nodes), future work aims to incorporate automatic fault recovery to support "mega-clusters" exceeding 1,000 nodes without sacrificing the performance benefits of the stale consistency model.
Summary updated