[Paper Review] DL2: A Deep Learning-driven Scheduler for Deep Learning Clusters
DL2 proposes a deep learning-driven scheduler for deep learning clusters that combines offline supervised learning with online reinforcement learning to dynamically adjust resource allocation and minimize average job completion time. It outperforms DRF and Optimus schedulers by 44.1% and 17.5%, respectively, in reducing training completion time through real-time feedback and policy refinement.
More and more companies have deployed machine learning (ML) clusters, where deep learning (DL) models are trained for providing various AI-driven services. Efficient resource scheduling is essential for maximal utilization of expensive DL clusters. Existing cluster schedulers either are agnostic to ML workload characteristics, or use scheduling heuristics based on operators' understanding of particular ML framework and workload, which are less efficient or not general enough. In this paper, we show that DL techniques can be adopted to design a generic and efficient scheduler. DL2 is a DL-driven scheduler for DL clusters, targeting global training job expedition by dynamically resizing resources allocated to jobs. DL2 advocates a joint supervised learning and reinforcement learning approach: a neural network is warmed up via offline supervised learning based on job traces produced by the existing cluster scheduler; then the neural network is plugged into the live DL cluster, fine-tuned by reinforcement learning carried out throughout the training progress of the DL jobs, and used for deciding job resource allocation in an online fashion. By applying past decisions made by the existing cluster scheduler in the preparatory supervised learning phase, our approach enables a smooth transition from existing scheduler, and renders a high-quality scheduler in minimizing average training completion time. We implement DL2 on Kubernetes and enable dynamic resource scaling in DL jobs on MXNet. Extensive evaluation shows that DL2 outperforms fairness scheduler (i.e., DRF) by 44.1% and expert heuristic scheduler (i.e., Optimus) by 17.5% in terms of average job completion time.
Motivation & Objective
- Address the inefficiency of static and heuristic-based schedulers in deep learning clusters that fail to adapt to dynamic workload characteristics.
- Overcome the limitations of simulation-based reinforcement learning by using real-world feedback from live cluster operations instead of synthetic simulators.
- Enable a smooth transition from existing schedulers by leveraging historical scheduling decisions as a pretraining signal for the neural network.
- Minimize average job completion time through a hybrid learning approach that combines supervised pretraining with online reinforcement learning.
- Design a generic, framework-agnostic scheduler that does not rely on explicit performance modeling or deep expertise in ML frameworks.
Proposed method
- Use offline supervised learning to pretrain a neural network on historical job traces and scheduling decisions from an existing cluster scheduler, ensuring baseline performance.
- Deploy the pre-trained model in a live Kubernetes-based DL cluster to make real-time resource allocation decisions during job execution.
- Fine-tune the neural network using online reinforcement learning with feedback from actual job training progress, focusing on minimizing average job completion time.
- Introduce job-aware exploration to efficiently navigate the high-dimensional action space of resource allocation decisions, improving learning convergence.
- Employ an actor-critic deep reinforcement learning framework to stabilize training and improve policy optimization in dynamic, multi-tenant environments.
- Design the input state representation to include job-level metrics (e.g., loss, accuracy, resource usage) and cluster-level resource availability for informed decision-making.
Experimental results
Research questions
- RQ1Can a deep reinforcement learning model trained on real cluster feedback outperform traditional schedulers like DRF and Optimus in reducing average job completion time?
- RQ2How effective is offline supervised pretraining in enabling a smooth transition from an existing scheduler while avoiding poor initial decisions in online RL?
- RQ3To what extent does job-aware exploration improve convergence and performance in the high-dimensional action space of dynamic resource allocation?
- RQ4Can a generic, black-box DL scheduler be effective without relying on explicit performance models or framework-specific heuristics?
- RQ5How does the integration of real feedback from live training jobs impact the scalability and robustness of the scheduling policy compared to simulation-based training?
Key findings
- DL2 reduces average job completion time by 44.1% compared to the fairness-based DRF scheduler, demonstrating significant performance gains in resource efficiency.
- DL2 achieves a 17.5% improvement in average job completion time over the expert heuristic-based Optimus scheduler, validating its superiority over hand-crafted scheduling rules.
- The combination of offline supervised pretraining and online reinforcement learning enables faster convergence and higher-quality scheduling policies than pure online RL.
- The use of job-aware exploration significantly improves learning efficiency in the action space, reducing the risk of poor decisions during early training phases.
- Training convergence speed increases nearly linearly with the number of clusters, suggesting that larger-scale deployments can accelerate policy learning.
- The approach is generalizable and can be extended to support all-reduce architectures and job placement decisions with minimal architectural modifications.
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.