[Paper Review] DBS: Dynamic Batch Size For Distributed Deep Neural Network Training
This paper proposes Dynamic Batch Size (DBS), a novel strategy for distributed DNN training that improves cluster utilization by dynamically adjusting batch sizes and dataset partitions based on worker performance. By minimizing idle time through performance-aware load balancing, DBS reduces training time by up to 12% on 4-worker clusters and demonstrates strong robustness against system disturbances, while maintaining convergence comparable to S-SGD with theoretical guarantees.
Synchronous strategies with data parallelism, such as the Synchronous StochasticGradient Descent (S-SGD) and the model averaging methods, are widely utilizedin distributed training of Deep Neural Networks (DNNs), largely owing to itseasy implementation yet promising performance. Particularly, each worker ofthe cluster hosts a copy of the DNN and an evenly divided share of the datasetwith the fixed mini-batch size, to keep the training of DNNs convergence. In thestrategies, the workers with different computational capability, need to wait foreach other because of the synchronization and delays in network transmission,which will inevitably result in the high-performance workers wasting computation.Consequently, the utilization of the cluster is relatively low. To alleviate thisissue, we propose the Dynamic Batch Size (DBS) strategy for the distributedtraining of DNNs. Specifically, the performance of each worker is evaluatedfirst based on the fact in the previous epoch, and then the batch size and datasetpartition are dynamically adjusted in consideration of the current performanceof the worker, thereby improving the utilization of the cluster. To verify theeffectiveness of the proposed strategy, extensive experiments have been conducted,and the experimental results indicate that the proposed strategy can fully utilizethe performance of the cluster, reduce the training time, and have good robustnesswith disturbance by irrelevant tasks. Furthermore, rigorous theoretical analysis hasalso been provided to prove the convergence of the proposed strategy.
Motivation & Objective
- To address the inefficiency in synchronous distributed DNN training caused by performance heterogeneity among workers.
- To reduce idle time and improve cluster utilization by dynamically adjusting batch sizes and dataset partitions based on worker performance.
- To maintain training convergence while enhancing robustness to system-level disturbances such as background tasks.
- To provide a theoretically grounded, practical alternative to fixed-batch synchronous training methods like S-SGD.
Proposed method
- Worker performance is evaluated at the end of each training epoch using GPU time and sub-dataset size from the previous epoch.
- Batch size and dataset partition are dynamically adjusted in the next epoch based on the performance evaluation to balance computational load.
- The strategy operates within a synchronous training framework, preserving convergence guarantees while eliminating idle waiting time.
- The dynamic adjustment is applied iteratively across training epochs to maintain load balance throughout the training process.
- The method is designed to be compatible with existing synchronous training frameworks such as S-SGD and model averaging, requiring no changes to the optimization algorithm.
- Theoretical analysis is provided to prove convergence under the proposed dynamic batch size strategy.
Experimental results
Research questions
- RQ1Can dynamic batch size adjustment based on worker performance reduce idle time and improve cluster utilization in distributed DNN training?
- RQ2How does the proposed DBS strategy compare to fixed-batch synchronous training (e.g., S-SGD) in terms of training time and convergence?
- RQ3To what extent does DBS maintain performance under system disturbances such as background tasks?
- RQ4Does the dynamic adjustment of batch size and data partition preserve model convergence compared to standard synchronous methods?
Key findings
- DBS reduces training time by approximately 12% on a 4-worker cluster compared to S-SGD with fixed batch size.
- The performance gain decreases with cluster scale, dropping to 10% on an 8-worker cluster and further reducing at 16 workers due to increased synchronization and communication costs.
- DBS maintains load balance even under system disturbances: after a GPU resource spike, the strategy quickly restores balanced training times across workers.
- The whole training time of DBS increases much less than S-SGD under disturbances, demonstrating superior robustness.
- Convergence of DBS is approximately equivalent to S-SGD, confirming that dynamic batching does not compromise training stability.
- Theoretical analysis confirms that the DBS strategy maintains convergence under the assumptions of synchronous training with dynamic batch size.
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.