Skip to main content
QUICK REVIEW

[Paper Review] Sparse Communication for Training Deep Networks

Negar Foroutan Eghlidi, Martin Jaggi|arXiv (Cornell University)|Sep 19, 2020
Stochastic Gradient Optimization TechniquesComputer Science29 references15 citations
TL;DR

This paper proposes random-block sparsification, a simple yet effective gradient compression technique for distributed deep learning that reduces communication overhead while maintaining training accuracy close to standard SGD. By selecting random blocks of gradients for transmission and using error feedback, the method achieves faster training than standard SGD in multi-GPU settings, particularly with AllReduce communication.

ABSTRACT

Synchronous stochastic gradient descent (SGD) is the most common method used for distributed training of deep learning models. In this algorithm, each worker shares its local gradients with others and updates the parameters using the average gradients of all workers. Although distributed training reduces the computation time, the communication overhead associated with the gradient exchange forms a scalability bottleneck for the algorithm. There are many compression techniques proposed to reduce the number of gradients that needs to be communicated. However, compressing the gradients introduces yet another overhead to the problem. In this work, we study several compression schemes and identify how three key parameters affect the performance. We also provide a set of insights on how to increase performance and introduce a simple sparsification scheme, random-block sparsification, that reduces communication while keeping the performance close to standard SGD.

Motivation & Objective

  • Address the communication bottleneck in distributed synchronous SGD, especially in large-scale or edge-device training settings.
  • Investigate practical factors affecting performance in gradient sparsification, such as sparsification scope, scheme type, and communication aggregation.
  • Develop a simple, efficient sparsification scheme that reduces communication cost without sacrificing model accuracy.
  • Provide practical guidelines for deploying sparsified SGD in real-world distributed training systems.

Proposed method

  • Propose a new sparsification scheme called random-block sparsification, where gradients are divided into fixed-size blocks and a random subset of blocks is transmitted per iteration.
  • Integrate error feedback to preserve convergence by storing and reapplying the difference between original and sparsified gradients.
  • Use AllReduce and AllGather as communication backbones to evaluate performance across different aggregation strategies.
  • Implement layer-wise and global sparsification scopes to compare the impact of gradient sharing granularity on model accuracy and training speed.
  • Measure training time breakdown across forward pass, backward pass, gradient exchange, and compression/decompression to isolate performance bottlenecks.
  • Evaluate multiple sparsification schemes—top-k, random-k, and block-random-k—under varying numbers of workers and sparsification ratios.

Experimental results

Research questions

  • RQ1How does the choice of sparsification scope (layer-wise vs. global) affect model accuracy and training efficiency?
  • RQ2Which sparsification scheme (top-k, random-k, block-random-k) offers the best trade-off between communication reduction and model performance?
  • RQ3How do communication aggregation methods (AllReduce vs. AllGather) influence the performance of sparsified SGD?
  • RQ4What is the impact of increasing the number of workers on test accuracy and training time in sparsified SGD?
  • RQ5Can a simple sparsification scheme like block-random-k outperform standard SGD in terms of training speed while maintaining comparable accuracy?

Key findings

  • Layer-wise sparsification consistently outperforms global sparsification in terms of test accuracy, as it ensures all layers contribute to parameter updates in each iteration.
  • Top-k sparsification achieves the highest test accuracy across all configurations, followed by block-random-k and random-k, due to its ability to prioritize the most informative gradients.
  • Block-random-k reduces training time below standard SGD (273ms vs. 375ms per batch on 8 GPUs) due to lower compression overhead, despite transmitting more data than top-k.
  • The random-k scheme shows comparable performance to block-random-k under layer-wise sparsification, but suffers from higher accuracy degradation under global sparsification due to limited layer participation.
  • AllReduce and AllGather show negligible differences in test accuracy for random-k, but AllReduce causes a significant drop in accuracy for block-random-k with more workers, likely due to reduced gradient diversity.
  • Increasing the number of workers leads to a generalization gap, reducing test accuracy across all configurations, which is exacerbated under global sparsification.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.