Online evolutionary batch size orchestration for scheduling deep learning workloads in GPU clusters

Zhengda Bian, Shenggui Li, Wei Wang, Yang You

Abstract

Efficiently managing shared GPU clusters for Deep Learning (DL) workloads is a significant challenge due to unpredictable job arrivals and rigid resource requirements. Traditional schedulers often treat DL jobs as "black boxes" with fixed configurations, leading to resource fragmentation and suboptimal throughput. This paper introduces ONES (ONline Evolutionary Scheduler), a system that treats training batch size as a dynamic, elastic variable. By combining an online evolutionary search with a near-zero-overhead scaling mechanism, ONES optimizes both GPU allocation and batch size in real-time. Experimental results demonstrate that ONES reduces average job completion time (JCT) by up to 45.6% compared to state-of-the-art schedulers like Tiresias and Optimus.

Introduction

In shared GPU environments, scheduling is often plagued by a lack of elasticity and suboptimal greedy strategies. Most schedulers assume a job requires a fixed number of GPUs; if unavailable, the job waits, causing fragmentation. Furthermore, even elastic schedulers often ignore the relationship between the number of GPUs and the global batch size. If the batch size remains fixed while scaling out, communication overhead can negate any potential speedup. ONES addresses these issues by dynamically orchestrating resources and batch sizes to maximize cluster-wide efficiency.

The ONES Architecture

ONES consists of two primary components: an Online Evolutionary Search engine and an Elastic Batch Size Scaling mechanism. The scheduler maintains a population of candidate scheduling plans that evolve over time to avoid the local minima common in greedy heuristics.

The ONES system architecture, featuring the evolutionary scheduler and the batch size scaling components.

The scheduler uses four main operations to evolve its population of solutions:

  • Refresh: Updates schedules based on real-time job events.
  • Uniform Crossover: Combines scheduling plans to create improved descendants.
  • Uniform Mutation: Randomly adjusts allocations to explore the search space.
  • Reorder: Optimizes worker placement to minimize network latency.

To evaluate these candidates, ONES utilizes a Smallest Remaining Utilization First (SRUF) metric. Since job durations are typically unknown, ONES employs a regression model based on Beta distributions to predict training progress from historical data.

Elastic Batch Size Orchestration

A core innovation of ONES is its ability to scale batch sizes with negligible overhead. Traditional scaling requires stopping a job and restarting from a checkpoint, which can take over 20 seconds. ONES introduces a checkpoint-free mechanism using NCCL communication to reconfigure model replicas and input tensors at the end of a training step, reducing overhead to approximately 1 second.

Comparison of throughput between elastic and fixed batch sizes as the number of workers increases.

As shown in the figure above, fixed batch sizes often lead to plateauing or even decreasing throughput as more workers are added due to communication bottlenecks. By making the batch size elastic and following the linear scaling rule for learning rates, ONES ensures that the workload per GPU remains high enough to hide communication overhead, allowing for near-linear scaling of throughput.

Performance Evaluation

The researchers evaluated ONES on TACC’s Longhorn supercomputer using 64 NVIDIA V100 GPUs and a diverse trace of 50 CV and NLP workloads (including ResNet, VGG16, and BERT).

Key results include:

  • JCT Reduction: ONES reduced average Job Completion Time by 45.6% compared to Tiresias and 41.7% compared to Optimus.
  • Execution Efficiency: Actual execution time was reduced by 53.9% compared to fixed-size schedulers due to better cluster saturation.
  • Low Overhead: The elastic scaling mechanism proved significantly faster than traditional checkpoint-based migration (1s vs. 10–22s).

Conclusion

ONES demonstrates that treating batch size as a first-class scheduling variable can unlock significant efficiency gains in GPU clusters. By moving away from greedy, black-box scheduling toward an evolutionary, elastic approach, ONES provides a robust framework for managing the dynamic nature of modern deep learning workloads. Future work will explore handling hardware heterogeneity and more complex tasks like Reinforcement Learning.

Summary updated

BibTeX
@inproceedings{bian2021online,
  author = {Zhengda Bian and Shenggui Li and Wei Wang and Yang You},
  title = {{Online evolutionary batch size orchestration for scheduling deep learning workloads in GPU clusters}},
  booktitle = {SC},
  year = {2021},
  doi = {10.1145/3458817.3480859},
}
Figure