[Paper Review] SLAQ: Quality-Driven Scheduling for Distributed Machine Learning
SLAQ is a quality-driven scheduler for distributed machine learning that dynamically allocates cluster resources based on each job's predicted quality improvement, using normalized loss change and convergence rate modeling to prioritize jobs with the highest potential for progress. It reduces time to 90% loss reduction by 45% compared to fair schedulers, significantly accelerating exploratory ML training.
Training machine learning (ML) models with large datasets can incur significant resource contention on shared clusters. This training typically involves many iterations that continually improve the quality of the model. Yet in exploratory settings, better models can be obtained faster by directing resources to jobs with the most potential for improvement. We describe SLAQ, a cluster scheduling system for approximate ML training jobs that aims to maximize the overall job quality. When allocating cluster resources, SLAQ explores the quality-runtime trade-offs across multiple jobs to maximize system-wide quality improvement. To do so, SLAQ leverages the iterative nature of ML training algorithms, by collecting quality and resource usage information from concurrent jobs, and then generating highly-tailored quality-improvement predictions for future iterations. Experiments show that SLAQ achieves an average quality improvement of up to 73% and an average delay reduction of up to 44% on a large set of ML training jobs, compared to resource fairness schedulers.
Motivation & Objective
- To address inefficiencies in existing cluster schedulers that treat all jobs equally regardless of their stage in training.
- To maximize system-wide model quality in distributed ML by allocating more resources to jobs with greater potential for improvement.
- To enable faster convergence in exploratory ML workflows where approximate models are sufficient for early validation.
- To design a scalable, online scheduler that adapts to changing resource demands without offline profiling.
Proposed method
- Normalizes loss changes between iterations relative to the maximum observed change, enabling cross-algorithm comparison of progress.
- Models convergence behavior using curve fitting: $ f(k) = \frac{1}{ak^2 + bk + c} + d $ for sublinear algorithms and $ f(k) = \mu^{k-b} + c $ for linear/superlinear algorithms.
- Uses exponentially weighted history to prioritize recent loss values for accurate short-term prediction with <5% error on next 10 iterations.
- Applies a greedy, online scheduling policy that reallocates one CPU core at a time to the job offering the highest predicted loss reduction per resource unit.
- Starts with equal allocation (1 core per job) to prevent starvation and iteratively reallocates resources based on predicted quality gains.
- Integrates within Apache Spark and MLlib, enabling real-world evaluation on diverse datasets and algorithms.
Experimental results
Research questions
- RQ1Can a scheduler improve overall model quality in distributed ML by prioritizing jobs with the highest potential for improvement?
- RQ2How can loss changes be normalized across diverse ML algorithms to enable fair comparison of progress?
- RQ3Can online prediction of future loss reduction be achieved with high accuracy using only recent training history?
- RQ4Does quality-driven scheduling reduce time to reach target loss reduction compared to fair schedulers?
- RQ5Can such a system scale to tens of thousands of concurrent jobs in real-time?
Key findings
- SLAQ reduced the average time to achieve 90% loss reduction by 45% (from 71s to 39s) and 95% loss reduction by 30% (from 98s to 68s) compared to a fair scheduler.
- The average normalized loss across all jobs was 73% lower under SLAQ than under the fair scheduler over an 800s window.
- SLAQ allocated 60% of CPU cores to the 25% of jobs with highest loss (most potential for improvement), compared to only 22% for the 50% of jobs nearly converged.
- Prediction error for the next 10 iterations was less than 5% across all tested algorithms, demonstrating high accuracy of the convergence model.
- SLAQ scaled efficiently, making scheduling decisions in hundreds of milliseconds to a few seconds even for 4,000 jobs across 16,000 cores.
- The system significantly accelerates exploratory ML workflows where early, approximate models are sufficient for validation.
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.