DropCompute: simple and more robust distributed synchronous training via compute variance reduction

Niv Giladi, Shahar Gottlieb, Moran Shkolnik, Asaf Karnieli, Ron Banner, Elad Hoffer, Kfir Yehuda Levy, Daniel Soudry

Introduction

Synchronous distributed training, typically implemented via All-Reduce, is the gold standard for large-scale deep learning. However, its performance is fundamentally limited by the "straggler" problem: the entire system must wait for the slowest worker to complete its computation before synchronizing gradients. As clusters scale to hundreds or thousands of devices, the probability of a single node lagging due to hardware variance, OS jitter, or data heterogeneity increases, leading to significant tail latency and reduced system utilization.

The DropCompute Methodology

DropCompute addresses this bottleneck through a decentralized, compute-variance reduction strategy. Instead of waiting for every worker to finish its full workload, DropCompute introduces a time threshold, $\tau$.

  1. Micro-batching: Workers divide their local batch into smaller micro-batches.
  2. Thresholding: Each worker monitors its own execution time. If the threshold $\tau$ is reached before all micro-batches are processed, the worker stops, averages the gradients from the completed micro-batches, and proceeds to the communication phase.
  3. Dynamic Tuning: The optimal $\tau$ is determined automatically. Workers periodically exchange latency statistics to find a "sweet spot" that maximizes throughput while minimizing the drop rate.
Compute time distributions showing how dropping a small percentage of compute significantly reduces the maximum compute time (the bottleneck).

Theoretical and Empirical Insights

The core motivation for DropCompute lies in the statistics of the "tail." The expected wait time for the slowest of $N$ workers grows at a rate of $\Theta(\sqrt{\log N})$. By clipping this tail—dropping just 1-5% of the slowest computations—the system can achieve disproportionately large gains in overall speed.

Crucially, the authors provide theoretical proof that SGD with a stochastic batch size (resulting from dropped micro-batches) maintains the same convergence rate as standard SGD, provided the batch size remains bounded. This ensures that the efficiency gains do not come at the cost of model stability.

Experimental Results

The researchers evaluated DropCompute on clusters of up to 200 Gaudi accelerators using BERT-Large, ResNet-50, and BERT-1.5B models.

  • Performance Gains: In systems with high compute variance, DropCompute achieved up to an 18% speedup. Even in highly optimized environments, a 5% improvement was observed.
  • Scalability: As shown in the scaling plots, the performance gap between DropCompute and the baseline widens as the number of workers increases, demonstrating its necessity for massive-scale training.
  • Accuracy Preservation: For BERT-Large pre-training, dropping up to 10% of compute resulted in a SQuAD F1 score of 91.19, compared to the baseline's 91.32—a negligible difference within the margin of error.
Speedup comparison between Baseline and DropCompute as the number of workers increases, showing improved scaling.

Conclusion and Future Work

DropCompute offers a simple, hardware-agnostic solution to the straggler problem in distributed training. By "letting go" of the slowest fraction of work, it significantly improves cluster throughput and reduces training costs. Future work may involve integrating these mechanisms directly into the backward pass to eliminate the need for manual gradient accumulation and extending the approach to mitigate network-level communication variance.

Summary updated

BibTeX
@inproceedings{giladi2023dropcompute,
  author = {Niv Giladi and Shahar Gottlieb and Moran Shkolnik and Asaf Karnieli and Ron Banner and Elad Hoffer and Kfir Yehuda Levy and Daniel Soudry},
  title = {{DropCompute: simple and more robust distributed synchronous training via compute variance reduction}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=KAWaeKOEkx},
}
Figure