Accelerated Sparsified SGD with Error Feedback

Tomoya Murata, Taiji SuzukiarXiv 2019

Introduction

Distributed machine learning often faces a significant bottleneck: communication. As models grow and training is distributed across numerous nodes, the time required to synchronize gradients can dwarf the time spent on local computation. To mitigate this, researchers employ gradient compression techniques like sparsification. However, compression introduces errors that can degrade convergence. While Error Feedback (EF) mechanisms help recover information, they often lack the speed required for high-precision tasks. This paper introduces S-SNAG-EF (Sparsified Stochastic Nesterov’s Accelerated Gradient with Error Feedback), a novel algorithm that integrates Nesterov’s acceleration with error-feedback to achieve fast, high-accuracy convergence in communication-constrained environments.

Methodology: The S-SNAG-EF Algorithm

The core of the proposed approach is the integration of three distinct optimization strategies:

  1. Unbiased Random Sparsification: Instead of transmitting full gradient vectors, each node sends only $k$ randomly selected components. This ensures the gradient estimate remains unbiased, facilitating theoretical stability.
  2. Error Feedback (EF): To prevent information loss, each processor maintains a local buffer of unsent gradient components, which are added to subsequent updates.
  3. Nesterov’s Acceleration: The authors adapt the classic three-sequence acceleration framework to the compressed setting. Uniquely, S-SNAG-EF utilizes dual error buffers to manage the different update paths required by the accelerated method.
  4. Recursive Regularization: For nonconvex objectives, the algorithm employs a "wrapper" technique that solves a sequence of regularized convex subproblems, ensuring robust theoretical guarantees.

Experimental Evaluation

The authors evaluated S-SNAG-EF on the CIFAR-10 dataset using $L_2$-regularized logistic regression for multi-class classification. The performance was compared against vanilla SGD, non-accelerated sparsified SGD (S-SGD-EF), and "Top-$k$" sparsification.

Figure 1: Test loss comparison with 10 processors and a 1% communication ratio (99% sparsification). S-SNAG-EF (purple) demonstrates superior convergence compared to other compressed methods.

As shown in Figure 1, even under extreme compression (1% communication ratio), S-SNAG-EF eventually outperforms other sparsified competitors, approaching the performance of uncompressed SGD.

Key Results and Insights

The theoretical analysis confirms that S-SNAG-EF achieves a better dependence on target accuracy ($\epsilon$) than non-accelerated methods. It also preserves "linear speedup," where the stochastic error component scales inversely with the number of processors.

Figure 5: Training and test metrics for 10 processors at a 10% communication ratio. S-SNAG-EF performs nearly identically to vanilla SGD across loss and accuracy metrics.

Empirical results in Figure 5 highlight that at a 10% communication ratio, S-SNAG-EF is virtually indistinguishable from vanilla SGD in terms of both loss and accuracy, significantly outperforming other sparsification techniques.

Discussion and Limitations

While S-SNAG-EF offers significant advantages, it exhibits a "slow start" in the initial iterations as the error feedback buffers stabilize. Additionally, the algorithm introduces more hyperparameters, such as the strong convexity parameter $\mu$ and feedback scaling $\gamma$, which may require careful tuning. Future work involves scaling these methods to deep neural networks like Transformers and ResNets in high-performance computing environments.

Summary updated

BibTeX
@misc{murata2019accelerated,
  author = {Tomoya Murata and Taiji Suzuki},
  title = {{Accelerated Sparsified SGD with Error Feedback}},
  year = {2019},
  eprint = {1905.12224},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1905.12224},
}
Figure