On Model Parallelization and Scheduling Strategies for Distributed Machine Learning

Seunghak Lee, Jin Kyu Kim, Xun Zheng, Qirong Ho, Garth A. Gibson, Eric P. Xing

Introduction

While most distributed machine learning focuses on "Big Data" by partitioning samples, this paper tackles the "Big Model" challenge—where the model itself has billions of parameters that cannot fit on a single machine. The authors introduce STRADS (STRucture-Aware Dynamic Scheduler), a framework that uses a novel "schedule-push-pull" abstraction to efficiently parallelize model updates while maintaining convergence speed and correctness through intelligent parameter prioritization.

The "Big Model" Challenge

In the world of distributed ML, data parallelism is the dominant paradigm: massive datasets are split across many workers, and each worker computes updates for a local copy of the entire model. However, we are entering the era of "Big Models"—such as massive deep networks or topic models with billions of variables.

Replicating a billion-parameter model on every worker is memory-prohibitive. Furthermore, many ML algorithms (like Lasso or Matrix Factorization) have internal dependencies; if you update two highly correlated parameters simultaneously in a distributed fashion, the algorithm might diverge or produce incorrect results. The gap addressed here is the lack of a systematic, programmable framework for model parallelism that handles these structural dependencies and memory bottlenecks.

Methods: The STRADS Framework

The authors propose STRADS, a system designed to perform automatic scheduling and parameter prioritization. It introduces a simple three-part programming abstraction:

STRADS Architecture
  1. schedule(): The master node selects a subset of model parameters to be updated. For algorithms like Lasso, STRADS uses a "priority-based" scheme to pick parameters that are changing the most (speeding up convergence) and ensures they aren't too interdependent (ensuring correctness).
  2. push(): Workers receive the scheduled parameters and compute partial updates based on their local data.
  3. pull(): The system aggregates these partial results and updates the global model state, typically stored in a distributed key-value store.

By pipelining these stages, STRADS allows the master to schedule the next round of updates while workers are still processing the current one, minimizing idle time.

Experimental Setup

The authors evaluated STRADS across three major ML tasks using large-scale datasets:

  • Latent Dirichlet Allocation (LDA): Used 3.9M Wikipedia abstracts, testing both a Unigram version (2.5M vocab) and a massive Bigram version (21.8M vocab), resulting in word-topic tables with up to 218 billion elements.
  • Matrix Factorization (MF): Used the Netflix dataset (100M ratings), pushing the model rank up to $K=2000$ (1 billion parameters).
  • Lasso: Used synthetic data with 50K samples and a feature space ranging from 10M to 100M features.

Key Insights

  • Prioritization is King: In many ML models, a small subset of parameters often contributes most to the initial drop in the objective function. By dynamically scheduling these "fast-converging" parameters more frequently, STRADS reaches the optimum much faster than round-robin approaches.
  • Dependency Awareness: Updating two highly correlated features can lead to divergence. STRADS checks for these dependencies during the schedule phase, only dispatching "safe" sets of parameters to workers.
  • Memory Efficiency: Unlike data-parallel systems that replicate the whole model, STRADS partitions the model. Workers only access the specific parameters they are currently updating, allowing the system to handle models orders of magnitude larger than a single machine's capacity.

Key Results

STRADS demonstrated significant improvements in scale, speed, and accuracy compared to existing baselines.

Performance Comparison of STRADS vs Baselines
  • Superior Scale: STRADS successfully ran LDA models with 218 billion parameters and Matrix Factorization with 1 billion parameters—scales where popular baselines like YahooLDA and GraphLab failed due to memory limits.
  • Faster Convergence: For Lasso, the dynamic scheduling strategy allowed the objective function to plunge to the optimum significantly faster than a standard round-robin scheduler (Lasso-RR).
  • Near-Linear Scalability: In LDA tests, the time to reach a target log-likelihood almost halved every time the number of machines was doubled.
  • Low Error: Despite the inherent risks of parallelizing sequential algorithms like Gibbs sampling, STRADS maintains a very low parallelization error ($\Delta_t \le 0.002$).

Limitations and Future Work

  • Communication Overhead: While STRADS manages memory well, communication costs between the master, workers, and the key-value store remain a challenge. Future work will focus on further reducing this overhead.
  • Coordinator Bottleneck: The current implementation uses a single "coordinator" machine to dispatch jobs. While it didn't bottleneck at the 100-machine scale tested, a distributed coordinator might be necessary for even larger clusters.
  • Algorithm Breadth: The authors suggest extending the framework beyond LDA, MF, and Lasso to other popular models like Support Vector Machines (SVMs) and Logistic Regression.

Summary updated

BibTeX
@inproceedings{lee2014model,
  author = {Seunghak Lee and Jin Kyu Kim and Xun Zheng and Qirong Ho and Garth A. Gibson and Eric P. Xing},
  title = {{On Model Parallelization and Scheduling Strategies for Distributed Machine Learning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2014},
}
Figure