Communication-Efficient Adam-Type Algorithms for Distributed Data Mining

Wenhan Xian, Feihu Huang, Heng Huang · DOI

Introduction

The training of massive Deep Neural Networks (DNNs) has increasingly shifted toward distributed environments to handle the sheer scale of modern datasets. In these systems, multiple worker nodes process data in parallel and synchronize their learning via a central server. However, as model sizes reach billions of parameters ($d$), the communication overhead required to synchronize these parameters becomes a critical bottleneck. While gradient compression techniques like quantization and sparsification have been successful for standard Stochastic Gradient Descent (SGD), they often struggle when applied to adaptive gradient methods like Adam.

The Adaptive Compression Challenge

Adam and its variants (such as AMSGrad) are considered the "gold standard" for DNN training due to their ability to adjust learning rates for each individual parameter. This adaptivity relies on maintaining moving averages of past gradients. The primary challenge in a distributed setting is that these adaptive rates depend on global information. Aggressive compression of gradients can lead to inaccurate local learning rate calculations, causing the model to diverge or converge to a suboptimal solution. Traditional "top-k" sparsification—sending only the $k$ largest values—often fails because the most important coordinates can vary significantly across different workers.

SketchedAMSGrad: A New Approach

To address these challenges, researchers have introduced SketchedAMSGrad, a framework that integrates "sketching" into the AMSGrad optimizer. Sketching, specifically using Count Sketches, allows for the compression of high-dimensional gradient vectors into a much smaller, fixed-size table of counters ($r \times c$).

Key Methodological Components

  1. Sketching as a Linear Operator: Because sketching is a linear operation, the central server can aggregate sketches from multiple workers by simply summing them. This allows the server to recover the global top-k coordinates more accurately after aggregation than individual sparsification methods.
  2. Averaging Strategies: The framework supports two primary synchronization modes:
  3. Parameter Averaging (PA): Workers update their local models and synchronize the parameters.
  4. Gradient Averaging (GA): Workers synchronize compressed gradients, while the server manages the adaptive states. This variant is particularly robust in "non-identical" (non-IID) data settings.
  5. Error Feedback: To mitigate the information loss inherent in compression, the algorithm employs an error-feedback mechanism. This "memory" stores the difference between the actual gradient and its sketched version, re-injecting the error into the next training step to ensure long-term convergence.

Theoretical and Empirical Performance

A significant contribution of this work is the theoretical proof that SketchedAMSGrad achieves a convergence rate of $O(1/\sqrt{nT})$, where $n$ is the number of workers and $T$ is the number of iterations. This indicates a linear speedup—the training time decreases proportionally as more machines are added—while the communication cost per round is reduced from $O(d)$ to $O(\log d)$.

Experimental Results

The researchers evaluated the algorithm using ResNet-50 on CIFAR-10/100 and LeNet-5 on MNIST. Key findings include:

  • Significant Compression: The method achieved a 32x reduction in communication volume compared to uncompressed baselines.
  • Superior Accuracy: On CIFAR-100, SketchedAMSGrad outperformed other state-of-the-art compressed adaptive optimizers, such as 1-bit Adam and Efficient-Adam, in both convergence speed and final test accuracy.
  • Robustness to Non-IID Data: In experiments simulating real-world non-IID data distributions on MNIST with 100 workers, the Gradient Averaging (GA) variant proved particularly effective, significantly outperforming parameter averaging.
  • Tunable Precision: On CIFAR-10, the researchers demonstrated that increasing the "sketch size" directly improved test accuracy, allowing practitioners to tune the trade-off between communication speed and model precision.

Conclusion

SketchedAMSGrad effectively breaks the communication bottleneck for adaptive distributed learning. By combining the theoretical benefits of linear speedup with the practical efficiency of sketching, it provides a scalable solution for large-scale data mining. While sketching introduces some computational overhead and requires tuning of the sketch size, its robustness in non-IID settings makes it a strong candidate for Federated Learning applications, where communication efficiency and data heterogeneity are paramount.

Summary updated

BibTeX
@inproceedings{xian2022communication,
  author = {Wenhan Xian and Feihu Huang and Heng Huang},
  title = {{Communication-Efficient Adam-Type Algorithms for Distributed Data Mining}},
  booktitle = {ICDM},
  year = {2022},
  doi = {10.1109/icdm54844.2022.00162},
}
Figure