rTop-k: A Statistical Estimation Approach to Distributed SGD

Leighton Pate Barnes, Huseyin A. Inan, Berivan Isik, Ayfer Özgür · DOI

Abstract

Distributed training of large-scale machine learning models is often limited by communication bottlenecks. This paper introduces rTop-k, a novel gradient sparsification technique that treats gradient aggregation as a statistical estimation problem. By combining the strengths of top-k and random-k selection, rTop-k achieves significant communication cost reductions (up to 99.9%) while maintaining or even improving model accuracy and generalization compared to standard baselines.

Introduction

In distributed machine learning, multiple worker nodes calculate gradients on their local data and send them to a central server to update a global model. For large models like deep neural networks, the "communication bottleneck"—the time spent moving millions of parameters across the network—often outweighs the speed gains from parallel computing.

Existing solutions usually involve sparsification: only sending a small fraction ($k$) of the total gradients ($d$). Two common strategies are:

  1. Top-k: Send the $k$ gradients with the largest magnitudes. This is effective but introduces significant bias.
  2. Random-k: Send $k$ gradients chosen uniformly at random. This is unbiased but suffers from high variance because it often ignores the most important (largest) updates.

The authors aim to find a mathematically grounded middle ground that captures the "skewed" nature of gradients without the pitfalls of pure top-k or random-k.

Methods

The researchers take a unique approach by casting each round of distributed SGD as a communication-constrained statistical estimation problem.

Distributed SGD framework with gradient sparsification. Workers send $k$ bits representing sparsified gradients to a centralized processor.

The rTop-k Algorithm

Based on a new Sparse Bernoulli Model for gradients, the authors derive the rTop-k operator. It works in two steps:

  1. Identify the "Top-r": Select the $r$ largest magnitude gradients (where $r > k$).
  2. Random Subsample: From those $r$ candidates, randomly select $k$ gradients to actually communicate.

Like other modern sparsification methods, rTop-k uses error compensation to store unsent gradients locally, adding them to the next round's calculation so no information is permanently lost.

Experimental Results

The authors validated rTop-k across diverse domains, including image classification (ResNet on CIFAR-10 and ImageNet) and language modeling (LSTM on PTB).

Training Loss and Top-1 Accuracy on ImageNet. rTop-k with 99.9% compression (red dashed) outperforms standard Top-k with 99% compression (cyan dashed).

Key Findings

  • Superior Compression: On ImageNet, rTop-k with 99.9% compression (sending only 1 in 1000 gradients) achieved better accuracy than standard top-k with only 99% compression. This represents a 10x improvement in communication efficiency.
  • Outperforming the Baseline: In language modeling (PTB), rTop-k achieved a validation perplexity of 82.02, which was actually better than the no-compression baseline of 82.14.
  • The "Regularization" Effect: Interestingly, the noise introduced by sparsification can sometimes act as a form of regularization, helping the model generalize better to unseen data than even the full-precision baseline.

Conclusion and Future Work

rTop-k provides a statistically grounded approach to gradient sparsification that mitigates the bias of top-k and the variance of random-k. While it introduces a new hyperparameter $r$, the authors provide heuristics for its selection. Future work may extend this statistical framework to other constraints like quantization or decentralized topologies.

Summary updated

BibTeX
@article{barnes2020rtop,
  author = {Leighton Pate Barnes and Huseyin A. Inan and Berivan Isik and Ayfer Özgür},
  title = {{rTop-k: A Statistical Estimation Approach to Distributed SGD}},
  journal = {IEEE J. Sel. Areas Inf. Theory},
  year = {2020},
  doi = {10.1109/jsait.2020.3042094},
}
Figure