[Paper Review] Primitives for Dynamic Big Model Parallelism
This paper introduces STRADS, a framework with dynamic model-parallel primitives—schedule, push, and pull—that enable efficient, scalable training of large machine learning models by partitioning model variables across distributed workers. It achieves faster convergence and larger model scalability than baselines like YahooLDA and GraphLab, particularly for models with up to 200 billion parameters in topic modeling, matrix factorization, and Lasso regression.
When training large machine learning models with many variables or parameters, a single machine is often inadequate since the model may be too large to fit in memory, while training can take a long time even with stochastic updates. A natural recourse is to turn to distributed cluster computing, in order to harness additional memory and processors. However, naive, unstructured parallelization of ML algorithms can make inefficient use of distributed memory, while failing to obtain proportional convergence speedups - or can even result in divergence. We develop a framework of primitives for dynamic model-parallelism, STRADS, in order to explore partitioning and update scheduling of model variables in distributed ML algorithms - thus improving their memory efficiency while presenting new opportunities to speed up convergence without compromising inference correctness. We demonstrate the efficacy of model-parallel algorithms implemented in STRADS versus popular implementations for Topic Modeling, Matrix Factorization and Lasso.
Motivation & Objective
- Address the challenge of training large machine learning models with billions of parameters that exceed single-machine memory capacity.
- Overcome inefficiencies in naive data-parallel and static model-parallel approaches that lead to poor scaling or algorithmic divergence.
- Enable fine-grained, user-controlled scheduling and update strategies for model variables to reduce dependencies and improve convergence speed.
- Provide a general-purpose, programmable framework for dynamic model-parallelism applicable across diverse ML workloads like topic modeling, matrix factorization, and Lasso.
- Demonstrate that dynamic scheduling and variable partitioning can significantly improve memory efficiency and convergence performance without sacrificing correctness.
Proposed method
- Introduce three core primitives: schedule (selects which model variables to update), push (computes partial updates on workers), and pull (aggregates updates and applies them with automatic sync).
- Use a star topology where a central scheduler manages variable updates, ensuring consistency via automatic sync after each pull.
- Implement dynamic scheduling strategies—word rotation for LDA, round-robin for MF, and dynamic priority for Lasso—based on variable importance and dependency analysis.
- Partition model variables across distributed workers to reduce memory pressure and avoid full model replication, enabling larger models than previous systems.
- Apply coordinate descent and collapsed Gibbs sampling within the STRADS framework to maintain convergence while enabling parallelization.
- Design the system to be extensible, allowing users to define custom scheduling and update logic for different ML algorithms.
Experimental results
Research questions
- RQ1Can a programmable framework with dynamic scheduling primitives improve convergence speed and scalability for large-scale machine learning models?
- RQ2How does dynamic variable partitioning and scheduling reduce parallelization error and synchronization overhead compared to static or data-parallel approaches?
- RQ3To what extent can STRADS scale to models with hundreds of billions of parameters, such as large topic models or high-rank matrix factorizations?
- RQ4Does dynamic prioritization of model variables (e.g., in Lasso) lead to faster convergence than static or round-robin scheduling?
- RQ5Can STRADS maintain convergence correctness and objective quality while enabling larger model sizes than existing systems like YahooLDA or GraphLab?
Key findings
- STRADS successfully trained a topic model with 22 million bigrams and 10,000 topics (200 billion parameters), far exceeding the 5,000-topic limit of YahooLDA.
- For matrix factorization, STRADS scaled to rank 2,000 on a 480K-by-100K matrix (1 billion variables), surpassing previous limits of rank < 80 in GraphLab.
- In Lasso with 100 million features, STRADS converged to the optimal objective in ~250 seconds using dynamic priority scheduling, significantly faster than Lasso-RR.
- STRADS achieved near-linear scaling: convergence time nearly halved with each doubling of machines in LDA experiments, demonstrating strong horizontal scalability.
- STRADS reduced parallelization error and synchronization overhead through intelligent variable partitioning and scheduling, leading to faster convergence than static or data-parallel baselines.
- STRADS maintained higher objective values than baselines across all tasks, confirming that performance gains were not due to convergence compromise but to better algorithmic design.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.