Online Evolutionary Batch Size Orchestration for Scheduling Deep Learning Workloads in GPU Clusters
Paper · 2021 · Zhengda Bian, Shenggui Li, Wei Wang et al.
Summary
When several training jobs share a GPU cluster, giving a job more devices can make it faster, leave it almost unchanged, or slow its progress toward the desired accuracy. The outcome depends in part on the batch size, the number of training examples used for an update. Dividing a fixed batch among more GPUs leaves each device less work between synchronization steps. Enlarging the batch gives the devices more work, but it also changes how the job learns. The authors propose ONES, a scheduler that chooses GPU assignments and batch sizes together. A job can start on a small allocation and grow as resources become available, subject to limits intended to protect its training progress. GPU & parallel computing
ONES keeps a population of possible schedules. It revises them as jobs arrive or finish, combines parts of different schedules, and tries new assignments. To judge the candidates, it needs an estimate of how much training each job has left. It uses records from completed jobs to predict a distribution over the fraction of training already done. The scheduler samples from these distributions and uses measured throughput to estimate how much GPU time each candidate would consume. When a new assignment takes effect, existing workers change configuration at a training-step boundary. New workers can initialize while training continues and receive the current parameters directly from an existing worker.
The authors evaluate ONES on 64 GPUs at TACC’s Longhorn supercomputer using a trace-driven mix of image classification and natural language processing jobs. ONES records a mean job completion time of 244.97s, measured from submission to completion. The paper reports reductions of 26.9% against its deep reinforcement learning baseline, 45.6% against Tiresias, and 41.7% against Optimus. The timing breakdown shows gains in both execution and queueing, with the execution-time distributions showing a clearer separation among slower jobs. The reconfiguration measurements also put elastic scaling at around 1 second, while checkpoint-based migration can take greater than 20 seconds. These results describe the complete scheduler on the tested workloads. The comparisons leave open how much of the completion-time gain comes from each individual design choice.
Deep dive: Online Evolutionary Batch Size Orchestration for Scheduling Deep Learning Workloads in GPU Clusters
How ONES adjusts training batch sizes and GPU assignments as jobs arrive, and how those decisions affect waiting and completion times. · about 36 minutes to read
The problem and its context
Why an extra GPU can have different effects
In data-parallel training, each participating GPU runs a replica of the same neural network. A training step divides a group of examples among the devices. Each device computes its contribution to the update, and the workers synchronize to keep the replicas in agreement. The group processed across all the devices is the global batch. The portion processed on a particular device is its local batch. An allocation therefore specifies both where a job runs and how its examples are divided at each step.
Adding a GPU while holding the global batch fixed changes that division. The new worker takes a share of the examples, so the existing workers each have less computation to do. Synchronization still takes place. If communication absorbs enough of the time saved on computation, the job gets little throughput benefit from the additional device. Throughput here means the rate at which training processes examples. The scheduler also has to account for what another job could have done with the same GPU.
Holding the local batch fixed produces a different result. The global batch grows as workers join, so each device still has substantial work to do between synchronization steps. The larger global batch also means that a pass over the dataset involves fewer training updates. The relationship between examples processed and progress toward a target can then change. Throughput describes how fast a job consumes examples. Time to convergence depends on how efficiently those examples, grouped into updates, move training towards its stopping condition.
The paper places this distinction alongside earlier work on large-batch training. Its example from large-minibatch SGD concerns ResNet-50 on ImageNet. With a batch of 256 images and 8 Tesla P100 GPUs, the earlier work reports 29 hours to reach its accuracy target. With a batch of 8192 on 256 GPUs, the account reports a training time of less than one hour. Both the batch and the hardware allocation change in that example. Its relevance to scheduling is that a useful configuration can depend on choosing those quantities together. Accurate, Large Minibatch SGD · Deep Residual Learning for Image Recognition
The authors also cite work on the difficulty of reaching comparable training outcomes with large batches. A configuration that looks attractive from its examples-per-second measurement may require more passes over the data or reach a different accuracy. The paper draws on work that adjusts the learning rate as the batch changes, alongside work that examines the generalization gap associated with large batches. Those studies motivate treating the batch as a training parameter whose range needs to be controlled, even when a system has enough hardware to support a larger value. Train Longer, Generalize Better · Large Batch Training of Convolutional Networks
Why fixed allocations leave gaps
A shared cluster has another problem before any training step begins. Under gang scheduling, all the workers required by a job have to be ready together. If a submission requests more GPUs than are currently free, it waits for an allocation that fits. The available devices can be idle in the meantime. This is resource fragmentation. The cluster has some capacity but its free capacity is too small for the jobs that are able to run under their submitted configurations.
A user can submit a smaller request to make the job easier to place. That decision can then follow the job for the rest of its run, even if the cluster later has capacity to spare. A large fixed request risks delaying the start. A small fixed request can limit execution speed. A scheduler with elastic allocations can start the job on the resources that fit and reconsider its size later. ONES adds the training batch to the same decision, so that growing the allocation can also change the amount of work assigned to the devices.
Placement makes the allocation more specific still. A worker needs a particular GPU, and training workers have to communicate with one another during updates. The authors describe prior work in which the locality of a job’s workers matters for performance. They also point to interference when different jobs share a device and compete for memory and compute resources. Accordingly, a decision about how many GPUs a job gets leaves important questions about which GPUs it gets and whether those devices are shared. Analysis of Large-Scale Multi-Tenant GPU Clusters for DNN Training Workloads
What earlier schedulers optimized
The paper describes earlier schedulers as working with several different signals. Tiresias uses attained service, the amount of service a job has already received, to organize jobs into priority queues. This gives it a way to prioritize jobs without an estimate of when any given run will converge. Its allocation size is fixed after submission. Optimus estimates how a job’s speed varies with resources and uses a prediction of its remaining time to decide where an additional worker or parameter server would help most. It can change a job’s allocation as the cluster changes.
Other schedulers in the authors’ account optimize related quantities. SLAQ estimates future improvement in training quality and uses that estimate to allocate resources across concurrent jobs. OASiS considers asynchronous training and uses greedy policies to solve its allocation problem. Gandiva uses time slicing to share resources and adjusts placement to improve locality. These approaches illustrate different ways to make scheduling responsive to training behavior, including choosing who goes next, where workers go, and how many resources a running job receives.
The distinction ONES draws is between elasticity in device count and elasticity in both device count and batch size. An allocator with control over device count can respond to demand by adding or removing workers. The training job still has to use those workers effectively. If it uses a fixed global batch, additional workers may spend proportionally more time communicating. If the local batch stays fixed, the global batch changes with worker count and can alter convergence. The paper’s proposal is to put the distribution of training examples under the scheduler’s control, within a limit that can change during the run.
Greedy allocation is another point of departure. An allocator that takes the most attractive next action may produce a reasonable schedule quickly. The action is evaluated in the context of the choices it has already made. If a better outcome requires moving resources among several jobs or altering their placement together, the intermediate choices may look unattractive. The authors describe resource scheduling as an NP-hard optimization problem and use that difficulty to motivate approximate search. A population of schedules gives the search several starting points for its next set of changes.
Why remaining time and update timing matter
Giving priority to the job with the least work left sounds straightforward when the jobs have known lengths. The paper explains why training complicates that assumption. Some training curves are irregular. A changing learning rate can make the loss rise and fall, and some workloads provide a reward signal with a less regular path than a smooth loss curve. The endpoint can also depend on early stopping or on a run being cancelled or interrupted. Even a steady stream of completed examples does not reveal in advance how many examples an individual run will ultimately need.
Schedulers in the paper often deal with changing information through periodic decisions. The cluster collects job status, computes a new schedule, and acts at a fixed interval. The authors give 10 minutes for Optimus and 1 hour for OASiS. A job can arrive just after such a round or a GPU can become free before the next one. The timing of the next decision then affects the delay that a job sees, independently of the quality of the eventual placement. Reconfiguration can also take time, so increasing the frequency of scheduling involves a cost of its own.
The paper describes reinforcement learning as another way to obtain a dynamic policy. The earlier approaches it discusses learn from traces and can adapt their decisions online. The action has to be represented in a space the learner can work with, and the paper associates that constraint with decisions that affect a single job at a time and with the absence of preemption in the methods it discusses. Preemption matters here because a new arrival may benefit from resources already occupied by a long-running job. ONES approaches the same situation by revising complete candidate schedules and separating the search for a good candidate from the moment the cluster applies it.
The method, step by step
What a schedule contains
Imagine a running job whose workers already occupy several GPUs. Another job arrives, and there are some devices available. A candidate schedule might start the newcomer on a free GPU, preserve the first job’s allocation, and use any remaining capacity to enlarge a third job. Another candidate might reclaim devices from the first job, which would change that job’s global batch and the group of workers that synchronize it. ONES represents both possibilities in a form that the search can alter device by device.
In that representation, an entry records the local batch for a job on a particular GPU. A positive entry gives the job a worker on that device. A zero entry represents an absent worker. Taken together, the entries determine the job’s global batch, its GPU count, and its placement. This makes a worker assignment a part of the training configuration as well as a claim on the cluster’s capacity.
How ONES turns training reports into schedules
The steps in order.
S : J × C → {bᵢⱼ}
Here S is a schedule, J is the set of current jobs, and C is the set of GPUs. The product sign × means that entries are indexed by a job and a GPU. The arrow → maps each pair to an entry in the collection denoted by braces. The value bᵢⱼ gives the local batch for job j on GPU i.
bᵢⱼ ∈ ℕ, ∀ i ∈ C, ∀ j ∈ J
The symbol ∈ means membership and ∀ means for every. The paper uses ℕ for integer batch sizes and explicitly includes zero in its scheduling convention. The condition applies to every device i in C and every job j in J.
Bⱼ = ∑ᵢ∈C bᵢⱼ
Bⱼ is the global batch for job j. The summation ∑ adds its local batches bᵢⱼ over the GPUs i in C. This is the number of examples assigned to a training step across the job’s workers.
cⱼ = ∑ᵢ∈C min(1, bᵢⱼ)
cⱼ is the number of GPUs on which job j has a worker. The function min returns the smaller of its arguments. With integer batches, the term contributes 1 for a positive local batch and zero for a zero local batch. The sum ranges over i in C. A job with both a zero global batch and a zero GPU count waits for a later assignment.
How the scheduler measures a candidate
The authors start from shortest remaining processing time, the idea of serving jobs that can complete soon. They adapt it because the estimated time left for a distributed training job depends on how many devices it gets and how it uses them. A candidate that lowers one job’s remaining wall-clock time may use enough GPUs to impose a higher resource cost. The authors call their objective smallest remaining utilization first, or SRUF. In this name, utilization is a quantity of GPU time, with both the number of devices and their estimated duration of use contributing to it.
minimize ∑ⱼ∈Jᵣ Tⱼ(Bⱼ) × cⱼ
Jᵣ is the set of jobs running under the candidate. The summation combines their estimates. Tⱼ(Bⱼ) is the estimated time remaining for job j when it uses global batch Bⱼ. The × multiplies this time by cⱼ, its GPU count. The minimization is over the candidate assignments. At the level of a single job, the extra devices are worthwhile under this score when the reduction in time offsets the increase in the number of occupied GPUs.
∑ⱼ∈Jᵣ min(1, bᵢⱼ) = 1, ∀ i ∈ C
In this constraint, the sum is over running jobs j for each device i in the cluster set C. The function min again turns a positive local batch bᵢⱼ into a contribution of 1. The equality expresses a full assignment with a single worker on each device. The authors explain the constraint in terms of exclusive access, to avoid interference between jobs sharing a GPU. The search procedure separately handles free devices as it repairs and fills candidate schedules.
The objective is a way to compare assignments before the jobs finish. The experiment, in contrast, measures the elapsed time from each job’s submission to its completion. Queueing enters the deployed policy through the way ONES admits new jobs, reclaims resources, and resumes waiting jobs. The utilization sum itself ranges over running jobs. This distinction matters when reading the score as a description of what the system favors and the reported completion time as a description of what users experienced.
T = Y / X
T is estimated remaining time. Y is remaining workload, counted in examples still to be processed before convergence. X is throughput, counted as examples processed per unit of time. The slash denotes division. The scheduler profiles throughput during training and uses the mean of its collected measurements. It needs a different source of evidence for the remaining number of examples because this quantity is only known after the job runs to its endpoint.
How completed jobs inform the prediction
ONES predicts a fraction of completion and uses the work already done to turn that fraction into an estimate of work remaining. Fractions provide a common scale for jobs that use different dataset sizes or need very different amounts of training. A job partway through its run may have processed many examples or relatively few. The prediction asks how far the observed run has come toward its own endpoint.
When a training epoch ends, every worker sends a progress report to the central scheduler. An epoch is a pass over the training dataset. The reports include examples processed, training loss, and validation accuracy. Loss describes the training objective’s current value. Validation accuracy measures performance on validation data. The paper combines these signals with the dataset size and the job’s initial loss. One feature expresses the change in loss relative to its starting value.
r_loss = 1 − L_current / L_initial
r_loss is the loss improvement ratio. L_current is the current loss and L_initial is the loss before training. The slash divides the current loss by its initial value. Subtracting that ratio from 1 expresses improvement relative to the starting point. The paper also writes this feature as rᴸ.
x = {‖D‖, L_initial, Y_processed, rᴸ, 𝒜}
x denotes the predictor’s input features, grouped inside braces. D denotes the training dataset, and ‖D‖ is the size of an epoch in examples. L_initial is the initial loss. Y_processed is the number of examples already processed. rᴸ is the loss improvement ratio. The script letter 𝒜 denotes validation accuracy. The paper uses a similar letter for a fitted coefficient in the regression, where it has a separate meaning.
ONES treats progress as uncertain. The paper chooses a beta distribution because it describes a fraction between 0 and 1 and can express different concentrations and shapes over that interval. A prediction can place most of its weight near a particular stage of training or spread weight across a wider range. The authors show an example in which a line tracks predicted means while shading shows the distributions’ 90% confidence intervals. Those intervals illustrate the uncertainty the scheduler represents during a run.
ρ ∼ Be(α, β)
ρ is the fraction of training completed, and ∼ means it follows the distribution on the right. Be denotes the beta distribution. Its shape parameters α and β represent quantities on the scale of completed and remaining epochs, respectively. The authors treat job progress as an independent random variable for the prediction and constrain the shape parameters from below.
α = Y_processed / ‖D‖
α starts from the observed number of processed examples Y_processed divided by the epoch size ‖D‖. The quotient expresses work done in units of passes over the dataset. The paper describes applying a lower threshold of 1 to both shape parameters. For α, the threshold is stated alongside this expression.
β = max(Ax + b, 1)
β expresses the predicted remaining work on the epoch scale. A is the fitted coefficient applied to the features x, b is the fitted offset, and Ax + b is their linear prediction. The function max keeps whichever is greater, that prediction or 1. The lower bound is part of the specification for the shape parameters.
When a job ends, its history supplies information that was unavailable while it was running. ONES uses records from completed jobs to update the progress predictor. It retains a bounded set of training points sampled uniformly from those logs and fits the parameters by maximizing the log marginal likelihood. The authors use the bound to control the time spent fitting and to limit overfitting. Once updated, the predictor provides a distribution for each job represented in the current scheduling problem.
The prediction and the throughput measurement answer different questions. A job can show a high examples-per-second rate and still have substantial work ahead. Another job could run at a lower rate and be close to the accuracy needed to finish. The progress estimate addresses the distance to that endpoint. Throughput supplies the conversion from examples to time under a candidate assignment.
Yⱼ = Yⱼ,processed × (1 / ρ − 1)
Yⱼ is the estimated number of examples still to process for job j. Yⱼ,processed denotes the examples it has already processed. ρ is a value of its completed fraction. The factor in parentheses comes from using the reciprocal of the completed fraction to express the total workload in units of work already done, then subtracting 1 to leave the unfinished part. The multiplication × converts that factor to examples.
How sampling changes the comparison
The scheduler draws a progress value for each job and scores the candidates against that set of draws. Within a scoring pass, candidates are judged against the same sampled view of how far the jobs have come. The allocation changes across candidates, including the running jobs, the GPU counts and the corresponding throughputs. The sampled fractions provide a common workload scenario for that comparison.
∑ⱼ∈Jᵣ Tⱼ × cⱼ = ∑ⱼ∈Jᵣ (Yⱼ,processed × cⱼ / Xⱼ) × (1 / ρⱼ − 1)
The sums range over jobs j in the running set Jᵣ. On the left, Tⱼ is remaining time and cⱼ is GPU count. On the right, Yⱼ,processed counts examples already processed and Xⱼ is throughput under the candidate. The fraction ρⱼ is the sampled completion progress for job j. The expression multiplies the estimate of examples still needed by GPU count and divides by examples processed per unit of time. The result is the remaining GPU time summed over the candidate’s running jobs.
scoreᵢ ≤ scoreₖ, ∀ k ∈ K
scoreᵢ is the utilization score of schedule Sᵢ, with i identifying the candidate in this formula. scoreₖ is the score of a candidate identified by k. The symbol ≤ means less than or equal to, and ∀ means the condition is applied to every candidate index. The pseudocode uses K for the candidate count and, in the membership notation here, for its index range. The selected schedule S∗ has the smallest value under the draw. In the population update, the same scoring principle is used to keep the best group of candidates.
Sampling lets an uncertain progress estimate affect the search directly. If a job’s predicted progress is spread over quite different possible values, a draw can change whether giving it another GPU looks worthwhile. A job with a narrow prediction is more likely to be represented by similar progress values across comparisons. The procedure explicitly chooses under sampled estimates. The paper’s description of the best solution refers to the candidates explored and scored by this procedure.
How candidates evolve
The central scheduler begins with a population of simple schedules. The authors suggest choosing a population size equal to the GPU count and initializing by assigning a randomly chosen job to each GPU. A population gives subsequent operations several assignments to draw from. Its members can differ in which jobs occupy the cluster, how their workers are distributed, and how much local work each device holds.
The paper denotes the initial population by G₀, a current generation by Gᵢ, and the newly produced candidates by Gᵢ′. The prime marks candidates derived from the current generation. Selection creates Gᵢ₊₁, the population for the next iteration. K is the population size, and the best eligible candidate is denoted S∗. The generation index i in this part of the method refers to an iteration of the search.
Refresh first makes a candidate consistent with the state of the cluster. It removes workers for finished jobs. It reduces a job’s allocation if the global batch in that candidate exceeds the job’s current limit. It then tries to give new arrivals a device each. If the free devices are insufficient, refresh takes resources from the jobs with the most elapsed execution time until the new jobs have been placed. The authors intend this admission rule to give newcomers a chance to start even when longer jobs are occupying the cluster.
GPUs removed = cⱼ − ⌊Rⱼ × cⱼ / Bⱼ⌋
cⱼ is the GPU count for job j in the candidate. Rⱼ is its current global batch limit and Bⱼ is the candidate’s global batch. The brackets ⌊ ⌋ mean round down to a whole number. The expression inside those brackets scales the worker count by the ratio of the limit to the candidate batch. When Rⱼ is below Bⱼ, subtracting the rounded count from cⱼ gives the number of GPUs to remove.
Refresh also deals with capacity that remains after cleaning up the candidate and admitting new jobs. It considers resuming a waiting job or enlarging a running one. For a running job, the paper describes estimating the utilization gain from increasing the batch towards its limit, with a corresponding increase in the number of workers.
GPUs added = ⌊Rⱼ × cⱼ / Bⱼ⌋ − cⱼ
The symbols have the same meanings as in the scale-down expression. Rⱼ is the cap, cⱼ the present GPU count, and Bⱼ the present global batch. The floor brackets convert the scaled allocation to a whole number of devices. Subtracting the current count gives the proposed addition. The paper gives this expression for growth from an existing positive batch and describes waiting-job resumption as another way to use idle space.
{Δφⱼ Yⱼ}
The braces denote the collection of quantities considered for the jobs indexed by j. Δφⱼ denotes the utilization gain associated with increasing the allocation in the refresh step, and Yⱼ is remaining workload. The paper describes using its probability-sampling procedure to choose a job from these quantities and repeating the choice while GPUs remain free. The example illustrates the sequence by placing one selected job and then making another choice when there is still an idle device.
Uniform crossover makes new schedules by combining pairs of candidates. For a particular GPU, there is an assignment in each parent schedule. One child receives the assignment from one parent and the other receives the assignment from the other parent. The choice of which child gets which assignment is random and made independently across GPUs. A child can therefore inherit a placement pattern that neither parent had as a whole. The algorithm chooses K parent pairs and generates K child pairs.
Uniform mutation moves resources in a different way. The procedure selects K candidates, then gives each job in a selected candidate a chance of preemption. The paper writes the mutation rate as θ. Jobs selected for preemption give up their GPU assignments within that candidate. Waiting or running jobs can use the freed devices. This trial happens in the search state. The actual workers change only when the cluster deploys a candidate that calls for the change.
Reorder addresses a side effect of exploring device assignments independently. Workers of the same job can become scattered across the ordering of the devices. The operation packs each job’s workers together, using the order in which jobs first occur in the candidate. The authors intend this to favor locality, which can affect synchronization costs. Reorder changes the placement pattern that goes into the comparison even when the job keeps the same number of workers.
Selection scores the newly generated candidates and retains the best K for the next generation. Refresh brings changing job state into the population, crossover recombines assignments, mutation explores transfers among jobs, and reorder repairs locality. As the cluster changes, the next search iteration can work from the earlier survivors after updating them. When it is time to deploy, the scheduler chooses the best available candidate under its scoring rule.
How the cluster applies a new assignment
Searching for a schedule and applying it have different timing constraints. ONES can update candidate assignments as its information changes. The authors require running jobs to finish at least one epoch before a new assignment takes effect. This gives each job time to make a complete pass over its dataset and limits how frequently the system pays the overhead of changing allocations. At the worker, the change itself occurs after a training step, when the existing workers have reached a consistent boundary.
The central scheduler communicates a new configuration to the worker managers whose devices are affected. A worker manager is associated with a GPU and is responsible for starting the user’s training script there. A scaling agent loads the components for GPU execution and connects the worker with the other members of its job. During a resize, the agent coordinates the transition of the user script, the input tensors and batches, and the communication group.
Adding a worker illustrates why the order matters. The new worker can start initialization while the old group continues to train. Once ready, it signals through the controller. The existing workers finish a training step and then leave the old communication group. All workers connect to the new group, and an existing worker broadcasts the current parameters. The scaling agents then let the scripts continue under the new configuration. The paper describes using NCCL communication for this process.
The overlap moves startup work away from the interval during which the existing workers are waiting for the switch. The direct broadcast also gives the new worker current parameters without going through the checkpoint-based migration sequence of saving to storage, stopping the run, and reconstructing it with a new allocation. There is still a pause at the step boundary for the resize and reconnection. Running the initialization early is what allows much of the preparation to happen while updates continue.
How training constrains the size changes
A new assignment can give a job a larger global batch, which changes the number of updates made per pass over the data. ONES uses the linear learning-rate scaling rule discussed in the paper’s earlier work. The learning rate controls the magnitude of a training update. The rule increases it in proportion to the batch size so that the larger updates can compensate for their reduced frequency over an epoch.
B → kB
B is the original global batch and k is the factor by which it changes. The arrow gives the new batch, kB. In the authors’ example, an increase in batch size reduces the number of updates per epoch by the same factor.
η → kη
η is the original learning rate, and k is the same factor used for the batch. The arrow maps it to the adjusted learning rate kη. The argument is an explanation for why training can make comparable progress under suitable conditions. The paper’s batch-change examples show why the scheduler also needs to control the size of each transition.
ONES sets a dynamic upper bound R on each job’s global batch. When a job starts, its initial batch has to fit on a single GPU during warm-up. A job resuming after preemption can ask for a limit no greater than the amount it had before it stopped. If its request is rejected and it remains waiting, ONES halves the requested limit. A smaller request can make it easier to fit the job into the next schedule.
R′ = 2R
R is the current limit and R′ is the requested new limit. The multiplier 2 doubles the cap. A running job can ask for this increase after an epoch. The rule changes what is allowed in a candidate schedule. The assigned batch still depends on the other jobs and the devices available.
A long-running job can also receive a smaller limit. The authors use elapsed execution time to discourage a long job from holding enough resources to delay a succession of other jobs, a situation they call the convoy effect.
R′ = ⌈2R / ⌈σ × T_processed + 1⌉⌉
R′ is the revised limit and R is the current one. T_processed is the time the job has already spent executing. σ is a fixed factor. The inner ceiling ⌈ ⌉ rounds σ times the elapsed execution time plus 1 up to a whole number. This denominator grows as the job executes. The outer ceiling rounds the resulting batch cap up.
σ = λ
σ is the penalty factor and λ is the mean job arrival rate. The authors suggest setting the former to the latter. This relates the time already spent on one job to how quickly jobs usually enter the cluster.
1 / λ
The reciprocal of the mean arrival rate λ is the mean interval between arrivals used in the authors’ explanation of the policy. The scaling penalty is intended to become relevant for jobs whose elapsed execution extends beyond that timescale. Together, the warm-up, resumption, growth and scale-down rules determine the batch sizes the search may consider at different points in a job’s life.
Experiments and results
What ran on Longhorn
The experiments use TACC’s Longhorn supercomputer. The testbed has 16 GPU servers linked by a Mellanox EDR Infiniband network. Each server contains 2 20-core IBM Power 9 CPUs, 256GB of memory, and 4 NVIDIA V100 GPUs. The full setup therefore has the paper’s reported 64 GPUs. A Hadoop Distributed File System holds training data, checkpoints, and logs, with access over 1Gbps Ethernet. The interconnect and storage configuration are relevant to the results because the jobs synchronize across workers and the migration baseline reads and writes training state.
The authors construct their own trace from 50 workload configurations and implement the jobs in distributed PyTorch. For image classification, the jobs draw from ImageNet and CIFAR10. The ImageNet entries include AlexNet, ResNet50, VGG16 and InceptionV3. The CIFAR10 entries include GoogleNet, ResNet18 and VGG16. The natural language processing workloads use pretrained BERT with COLA, MRPC and SST-2. These jobs give the scheduler a mix of training tasks and job lengths within the same evaluation. Very Deep Convolutional Networks for Large-Scale Image Recognition · BERT
The trace varies dataset sizes. The paper gives 10k and 20k images as examples of ImageNet subsets, and the corresponding ImageNet jobs also vary the number of classes. The listed CIFAR10 training sizes include 20k, 25k, 30k, 35k and 40k. Reducing dataset sizes makes some long jobs practical to include in repeated cluster experiments. The authors say the resulting jobs can generally finish within 2 hours. As a consequence, an ImageNet job in this evaluation should be read as a job built from the specified subset and configuration, with its own completion criterion.
The training endpoint is central to comparing schedulers that use different batches. The paper describes the normal ONES stopping policy in terms of validation accuracy ceasing to improve for consecutive epochs. For the evaluation, the authors instead assign a target validation accuracy to each job. They stop when the job records 10 consecutive epochs above its target. This makes completion refer to sustained performance at a common task-specific threshold across schedulers. A policy that processes examples quickly still has to reach and sustain the desired validation performance to finish.
What the baselines could change
The deep reinforcement learning baseline, labeled DRL in the figures, learns a scheduling policy aimed at lowering job completion time. The authors adapt its action space to the all-reduce communication arrangement used in their experiments. With all-reduce, the workers collectively combine their contributions to an update. The baseline design they adapt assumed parameter servers, which organize the exchange around dedicated servers. The resulting baseline can change allocation size, acts on a single job at a time, and allows a started job to continue without preemption.
Tiresias organizes jobs by attained service and uses multiple priority levels. It can preempt jobs, with the allocation size remaining fixed after submission. Its prioritization works without a forecast of how much training remains. Optimus can preempt jobs and vary the number of GPUs they use. It makes greedy allocation decisions based on estimated remaining processing time and runs on a 10-minute scheduling interval in this experiment, following the setting the authors cite from Optimus.
These baselines cover several forms of scheduling flexibility. The DRL system and Optimus can change job size. Tiresias and Optimus permit preemption. ONES combines those capabilities with direct control of batch size. Each comparator is a complete scheduling policy, with its own way of deciding when and how to change the cluster. The comparison therefore asks how the combined policies perform on the same workload.
Completion from submission to finish
Job completion time, abbreviated JCT, measures elapsed time from submission until a job reaches its completion condition. It includes time spent before a job begins as well as the time it takes to execute. The paper uses mean JCT as its main measure and shows box plots and cumulative frequency curves to describe how the individual jobs contribute to that mean.
Mean job completion time on the Longhorn evaluation trace
ONES has the shortest mean time from submission to completion.
The numbers
| System or setting | seconds |
|---|---|
| DRL | 335.06 |
| Tiresias | 450.36 |
| Optimus | 420.08 |
| ONES (this paper) | 244.97 |
The paper reports that ONES reduces mean completion time by 26.9% relative to DRL, 45.6% relative to Tiresias, and 41.7% relative to Optimus. Tiresias has the largest mean among the baselines on the evaluation trace. DRL has the closest mean to ONES. The ranking alone leaves open whether a scheduler’s advantage comes from getting jobs started earlier, running them faster once they receive resources, or some combination of the two.
The cumulative curve reports the share of jobs finishing by a given time. At 200s on the JCT axis, the paper reports that 86% of jobs under ONES have finished, compared with about 60-80% under the baselines. This comparison concerns the distribution of elapsed completion times across jobs. The authors also draw attention to the slow end of the distribution, where long jobs contribute substantially to the mean. A mean can be sensitive to those outcomes even when many jobs finish quickly.
The paper applies non-parametric Wilcoxon tests to per-job JCT comparisons. The two-sided p-values are 5.17e-4 against DRL, 4.53e-8 against Tiresias, and 7.55e-10 against Optimus. The authors compare them with 0.05. They also report values of 0.99974, 0.99999 and 0.99999, respectively, for a test they label one-sided negative. The direction of the observed differences is visible in the completion-time means and distributions. The p-values are outputs of tests on the observed comparisons, with a different meaning from the chances that a scheduler will win on future workloads.
Where the elapsed time went
The authors separate execution from queueing to see how the completion-time results arise. The execution comparison is particularly relevant to elastic batch size. A faster admission policy can lower JCT by starting jobs earlier. A gain in execution time also calls for an explanation of what happens after a job gets resources.
Mean execution time on the Longhorn evaluation trace
ONES has the lowest mean execution time across the tested schedulers.
The numbers
| System or setting | seconds |
|---|---|
| DRL | 208.94 |
| Tiresias | 343.25 |
| Optimus | 220.38 |
| ONES (this paper) | 158.28 |
The paper reports a 53.9% execution-time reduction against Tiresias. The authors attribute this part of the result to ONES being able to use cluster resources that a fixed-size job cannot take up. The comparisons against DRL and Optimus are pertinent because both can change GPU counts. ONES also records a lower mean execution time than those baselines. The authors interpret the gap in terms of being able to adjust the batch as GPUs are added, so the work per device can remain high enough to justify the synchronization.
The execution-time distributions add an important qualification to that account. For jobs that execute quickly, the curves show broadly similar performance. The separation is clearer among slower jobs. The authors describe essentially all ONES jobs as executing in under 2k seconds, while each baseline has jobs with execution times extending up to 10k seconds. The reported difference in the tail is consistent with the opportunity to improve how longer runs use their allocations over time.
Mean queueing time on the Longhorn evaluation trace
ONES has the shortest mean wait, with Optimus recording the longest.
The numbers
| System or setting | seconds |
|---|---|
| DRL | 126.13 |
| Tiresias | 107.11 |
| Optimus | 199.70 |
| ONES (this paper) | 86.70 |
For mean queueing time, the reported reductions are 31.3% against DRL, 19.1% against Tiresias, and 56.6% against Optimus. Tiresias is the closest baseline on this measure. The authors observe that ONES has the smallest mean queueing time even though its longest wait may be greater. The mean reflects the collection of jobs and gives a limited view of an individual job’s experience at the far end of the distribution.
The authors discuss Optimus separately because a fixed scheduling interval contributes directly to waiting. In their explanation, if arrivals are entirely random relative to the schedule, the expected time to the next round is half the interval. A shorter round can make the scheduler respond sooner, but it also exposes jobs to more frequent scheduling and reconfiguration costs. The queueing comparison is thus tied to the 10-minute Optimus setting used in the experiment. It reports the performance of that setting in the workload, with the interval itself part of the baseline design.
What the ablations show
The paper reports no component-by-component ablation of ONES, and instead offers controlled batch-size examples, a migration comparison, a timing breakdown, and a cluster-capacity study. These comparisons answer different questions. The training examples test assumptions behind elastic batching, the migration study times the execution of a change, and the cluster experiments measure the combined scheduler.
Fixed global and fixed local batches
The throughput motivation uses ResNet50 on CIFAR10. The paper compares a global batch held at 256 with an elastic batch that ranges from 256 to 2048 as the allocation grows. Under the fixed global batch, throughput stops increasing and begins to fall when the worker count exceeds 2. Each worker gets a smaller share of the fixed batch, while synchronization still takes time. In the elastic case, enlarging the global batch gives the devices more computation to do, so a larger allocation can continue to improve throughput.
This comparison tests whether changing GPU count alone is enough to use the additional capacity. If the aim were purely to run a fixed number of examples as quickly as possible, the throughput result would already inform the assignment. Deep learning jobs in the cluster also have to reach a training endpoint. For that reason, the paper pairs the throughput example with a convergence example that holds the local batch at 256 while varying the number of GPUs.
In the fixed-local-batch experiment, adding workers increases the global batch. The reported convergence slows as more GPUs are used, especially above 2 GPUs. This helps explain why simply keeping every worker busy still leaves a problem for the scheduler. The training job can consume examples at an attractive rate while making slower progress toward a given accuracy across epochs. The two comparisons support managing the global batch and GPU count together, under a training policy that limits the configurations considered.
Abrupt and gradual growth
The batch transition examples address how quickly ONES should move between configurations. In one ResNet50 run on CIFAR10, the authors raise the batch from 256 to 4k at epoch 30. The loss jumps and then takes further training to recover. The authors connect the disturbance to the effect of a large batch change on gradients and momentum. The result matters for online scheduling because a newly available allocation can look attractive at steady state and still cause a costly interruption to training progress if the job jumps directly to it.
In the gradual example, the batch is 256 for the first 30 epochs, 1024 for the next 30 epochs, and 4096 for the last 30 epochs. The authors show a smoother loss trajectory under this staged growth. The comparison motivates the cap and limited changes in ONES. It demonstrates that the path between batch sizes matters in this training example. It does not quantify how much the cluster’s average completion time would change if the cap were relaxed or if the scheduler used a different growth rule.
Reconfiguring workers and migrating through checkpoints
The reconfiguration study compares the ONES mechanism with checkpoint-based migration for different PyTorch workloads. With checkpoint-based migration, the job stops, its state is saved, and training resumes with a different configuration after reloading. ONES prepares new workers alongside the active group and transfers the current parameters as part of the transition. The reported scaling overhead for ONES is around 1 second, while the checkpoint procedure can take greater than 20 seconds.
The authors identify data preparation and loading onto devices as major costs of the checkpoint procedure. Preparing the new worker while the old group still trains moves some of that work outside the interval being timed as a disruption to training. The direct transfer from a running worker also changes the path by which the new group obtains the current parameters. This comparison supports the mechanism that makes resource changes practical. It does not measure the completion-time effect of substituting checkpoint-based migration for the ONES mechanism throughout the whole trace.
Changing cluster capacity
The paper repeats the scheduling comparison as cluster capacity grows from 16 GPUs to 64 GPUs. The authors describe a nearly linear reduction in mean completion time over the capacities tested and a corresponding decline in queueing. That observation concerns the tested range and workload. Additional devices can reduce the competition that keeps jobs waiting, and elastic jobs can use free devices when expanding a running job is worthwhile.
Relative reductions in mean JCT against DRL, Tiresias and Optimus, respectively, are 19%/44%/24% at 16 GPUs and 27%/46%/42% at 64 GPUs in the capacity study. The improvement over each baseline is larger at the bigger tested capacity. The authors interpret this pattern as evidence that ONES makes effective use of spare devices. The study varies the number of GPUs available to the complete scheduler, so the changes can reflect any combination of faster admission, resized training jobs, placement, and the competing schedulers’ responses to extra capacity.
The execution and queueing breakdown helps locate those gains without assigning them to a particular operation. The placement rule, progress sampling, and the evolutionary operations can all affect which job runs with which allocation. The migration mechanism can affect the cost of applying the allocation. The breakdown records how much time jobs spent executing and waiting under the resulting policy. It leaves the separate contributions of those design choices unresolved.
Limitations
Limits and operating conditions the authors identify
Remaining work is difficult to predict from an ongoing training run. The authors explicitly point to irregular training curves, changes associated with cyclical learning rates, and workloads whose feedback takes the form of a reward. They also identify jobs that stop early, fail, or are cancelled. These cases explain the choice to work with a distribution over progress. The predictor is fitted from completed-job histories and uses observable features. The quality of its forecast still depends on how informative those histories and features are for the job in front of it.
The authors also treat batch growth as conditional on the behavior of training. Their rationale for scaling the learning rate draws on earlier observations for gradient descent optimizers, while their experiments show a loss disturbance after a large batch jump. ONES uses caps and staged expansion to manage this risk. The conditions matter when interpreting elasticity as a capability. A configuration can be available on the cluster and still be undesirable for the job because of how it changes the optimization process.
Reconfiguration has a cost even when it avoids checkpoint-based migration. The paper recognizes the overhead of changing resource allocations and placements and therefore gives each running job time to finish at least one epoch before applying the new schedule. An immediately detected arrival or completion can influence the search while deployment awaits an eligible transition. If an epoch takes substantial time, the distinction between responsiveness in the search and responsiveness in the running cluster becomes important.
The system also assumes exclusive use of a GPU by each worker. The authors make this decision to avoid the interference they associate with sharing. This gives the scheduling representation a clear unit of assignment and simplifies decisions about whether an individual device is occupied. A cluster that deliberately runs multiple jobs on the same GPU would present a different placement problem and a different relationship between the worker’s batch and its throughput.
What the design and evaluation leave open
The strongest direct evidence is for the full ONES system on the Longhorn setup with the authors’ trace. The workload is intentionally constructed from typical tasks and uses smaller dataset variants to control the duration of the experiments. It provides a useful mix for measuring scheduling behavior on real GPUs, while keeping the conclusion tied to that mix. Full dataset training, substantially longer jobs, and different arrival patterns could change both the opportunities to fill idle capacity and the value of preempting a running job.
The capacity study changes how many GPUs are available within the tested range. It measures the effect of capacity on JCT. The broader question of how the centralized scheduler behaves with many more devices, concurrent jobs, or candidate assignments remains open. Worker communication, the cost of profiling, and the effort required to keep the population current could all matter in a larger setting. The reported migration times are likewise tied to the evaluated implementations and their network and storage paths.
The target validation rule makes the timing comparisons more interpretable because each version of a job has to sustain the specified accuracy. It establishes an endpoint for JCT rather than a full study of training quality. The paper’s training curves illustrate the effects of selected size changes, and the trace experiment measures how long jobs take to satisfy the chosen condition. Broader questions about final accuracy and generalization across workloads would require outcomes beyond those timing and loss comparisons.
The progress illustration shows how uncertainty is represented during a run. It leaves open how accurately those distributions predict completion across different kinds of jobs and how the scheduler behaves when historical jobs give little guidance. A new workload could have similar observed loss or accuracy and still have quite different remaining training. Since the estimate of unfinished work depends on the reciprocal of predicted progress, low progress draws can have a large effect on a candidate’s score. The scheduling evaluation measures the consequences of the complete policy, with prediction quality left mostly implicit.
The objective is estimated GPU time for the jobs running in a candidate schedule. It does not sum the eventual submission-to-completion times of all jobs, including those that may arrive later. Admission, resumption, and the penalty for long execution influence how waiting jobs are treated. The policy aims to make good use of resources across the workload, while the evidence for that aim comes from the observed JCT rather than from a proof that the search finds a global optimum.
Baseline comparisons also combine multiple differences. Optimus has a periodic update interval, Tiresias keeps job size fixed, and DRL lacks preemption in the tested design. ONES changes the learning-rate and batch configuration alongside resource allocation, applies changes with a different mechanism, and uses a different search procedure. The measurements can establish the advantage of the tested combination without assigning it to evolutionary search, progress prediction, or any other component in isolation. The paper’s capacity, throughput, and migration studies explain plausible parts of the result while leaving that causal attribution open.
Finally, the shortest average wait and the shortest possible worst-case wait are different outcomes. The paper itself observes that ONES may have a longer maximum queueing time in spite of its lower mean. Its rules for admission and resumption are motivated by starvation avoidance, and its scale-down rule favors making room when long jobs dominate an allocation. The reported data describe the observed waits on the evaluation trace. They provide no bound on how long a particular job may wait under sustained contention.
What came after
The later citing work is VTrain, a simulation framework concerned with evaluating training cost. The connection establishes that VTrain cites ONES. The particular role of that citation remains unspecified, including whether ONES served as a simulator input, a comparison policy, or an example of training configurations changing during a run. VTrain
Cite
Cite as Zhengda Bian, Shenggui Li, Wei Wang and Yang You. 2021. Online Evolutionary Batch Size Orchestration for Scheduling Deep Learning Workloads in GPU Clusters. arXiv:2108.03645.
@misc{bian2021online,
title = {{Online Evolutionary Batch Size Orchestration for Scheduling Deep Learning Workloads in GPU Clusters}},
author = {Zhengda Bian, Shenggui Li, Wei Wang and Yang You},
year = {2021},
doi = {10.48550/arxiv.2108.03645},
eprint = {2108.03645},
archivePrefix = {arXiv},
url = {https://doi.org/10.48550/arxiv.2108.03645}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/bian-2021-online-evolutionary-batch-size-orchestration/