Abstract
In large-scale distributed deep learning, Asynchronous Stochastic Gradient Descent (ASGD) offers significant speed advantages over synchronous methods by eliminating "straggler" delays. However, ASGD suffers from gradient staleness, where delayed updates can lead to poor convergence. This paper proposes LC-ASGD, a novel approach that treats the training process as a time series. By employing LSTM-based predictors to forecast future loss values and staleness, the algorithm compensates for gradient delays. Experimental results on CIFAR-10 and ImageNet demonstrate that LC-ASGD achieves superior accuracy and scalability compared to existing asynchronous methods with minimal computational overhead.
Introduction
The efficiency of distributed deep neural network (DNN) training is often hampered by the synchronization overhead in Synchronous SGD (SSGD). While Asynchronous SGD (ASGD) allows workers to operate independently, it introduces the "staleness" problem: gradients calculated on an older version of the model are applied to a newer version, potentially leading to instability. Previous solutions like DC-ASGD attempted to use Taylor expansions to approximate corrections, but these often fail under the high and volatile delays common in real-world clusters.
Methodology: The LC-ASGD Algorithm
The core innovation of LC-ASGD is the shift from purely mathematical approximations to data-driven forecasting. The system implements two LSTM-based recurrent neural networks on the parameter server to manage the asynchronous flow.
Loss and Step Predictors
- Loss Predictor (LSTM): Instead of using the stale loss value reported by a worker, the server forecasts the expected loss several steps ahead. It treats the sequence of incoming losses as a predictable time series.
- Step Predictor (LSTM): This component predicts the "staleness" ($k_m$), which represents the number of model updates that occur while a specific worker is performing its local computation. This predictor accounts for varying communication latencies and hardware performance.
By combining these predictions, the server provides workers with a "compensated loss," allowing them to calculate gradients that are more aligned with the future state of the global model.
Asynchronous Batch Normalization (Async-BN)
Standard Batch Normalization (BN) often fails in asynchronous settings because local statistics can fluctuate significantly. LC-ASGD introduces Async-BN, which maintains a global moving average of means and variances across all workers, ensuring a more stable and consistent normalization signal throughout the training process.
Experimental Evaluation
The authors evaluated LC-ASGD using two primary benchmarks:
- CIFAR-10: Utilizing a ResNet-18 architecture.
- ImageNet: Utilizing a ResNet-50 architecture to assess performance at a larger scale.
Key Results and Discussion
LC-ASGD demonstrated remarkable resilience to the performance degradation typically seen as the number of workers increases in distributed systems.
- Accuracy Gains: On CIFAR-10 with 16 workers, LC-ASGD achieved a test error of 5.52%, outperforming standard ASGD (6.41%) and even surpassing synchronous baselines in certain setups.
- Scalability on ImageNet: When training on ImageNet with 16 workers, LC-ASGD maintained a 24.82% error rate. Notably, while competing methods saw error rates spike by 3-5% during scaling, LC-ASGD's error rate only increased by 1.35%.
- Efficiency: The computational overhead of running the LSTM predictors was found to be minimal—less than 2% for ImageNet and approximately 8% for CIFAR-10.
Conclusion and Future Work
LC-ASGD effectively mitigates the gradient staleness problem by reframing training dynamics as a forecasting task. By leveraging LSTMs to predict loss and staleness, the algorithm enables high-performance asynchronous training that scales gracefully. Future research may focus on optimizing the $\lambda$ hyperparameter for loss compensation and exploring the algorithm's performance in heterogeneous "distributed data" environments, such as those found in Federated Learning.
Summary updated