Skip to main content
QUICK REVIEW

[Paper Review] Communication-efficient distributed SGD with Sketching

Nikita Ivkin, Daniel Rothchild|arXiv (Cornell University)|Mar 12, 2019
Stochastic Gradient Optimization TechniquesComputer Science37 references16 citations
TL;DR

This paper proposes Sketched-SGD, a communication-efficient distributed stochastic gradient descent algorithm that transmits gradient sketches of size 𝒪(log d) instead of full gradients, achieving sub-linear communication complexity. It demonstrates up to 40x reduction in total communication cost with no drop in model accuracy on transformer, LSTM, and residual networks, scaling effectively to 256 workers without performance degradation.

ABSTRACT

Large-scale distributed training of neural networks is often limited by network bandwidth, wherein the communication time overwhelms the local computation time. Motivated by the success of sketching methods in sub-linear/streaming algorithms, we introduce Sketched SGD, an algorithm for carrying out distributed SGD by communicating sketches instead of full gradients. We show that Sketched SGD has favorable convergence rates on several classes of functions. When considering all communication -- both of gradients and of updated model weights -- Sketched SGD reduces the amount of communication required compared to other gradient compression methods from $\mathcal{O}(d)$ or $\mathcal{O}(W)$ to $\mathcal{O}(\log d)$, where $d$ is the number of model parameters and $W$ is the number of workers participating in training. We run experiments on a transformer model, an LSTM, and a residual network, demonstrating up to a 40x reduction in total communication cost with no loss in final model performance. We also show experimentally that Sketched SGD scales to at least 256 workers without increasing communication cost or degrading model performance.

Motivation & Objective

  • Address the communication bottleneck in large-scale distributed deep learning, where network bandwidth limits training speed.
  • Reduce per-worker communication cost below 𝒪(d) and 𝒪(W) to 𝒪(log d), enabling efficient scaling across many workers.
  • Develop a method that maintains convergence guarantees and model performance while achieving high compression.
  • Overcome limitations of existing gradient compression techniques that scale poorly with the number of workers (W).
  • Enable practical, scalable distributed training with minimal communication overhead using sketching from streaming algorithms.

Proposed method

  • Use Count Sketch and sparse recovery techniques to compress gradients into sketches of size 𝒪(log d) per worker.
  • Transmit only the sketch of local gradients instead of full gradients, reducing communication from 𝒪(d) to 𝒪(log d).
  • Reconstruct approximate full gradients at the parameter server using sketching recovery algorithms with bounded error.
  • Maintain convergence properties by ensuring the sketch preserves sufficient information for effective optimization.
  • Integrate the sketching mechanism into standard synchronous data-parallel SGD, preserving standard training workflows.
  • Support both unbiased and biased gradient estimation, with theoretical convergence guarantees under appropriate assumptions.

Experimental results

Research questions

  • RQ1Can sketching reduce communication cost in distributed SGD below 𝒪(d) while preserving convergence?
  • RQ2Does the proposed method scale efficiently to large numbers of workers (W) without increased communication or performance loss?
  • RQ3Can sketching achieve high compression ratios (e.g., 40x) without degrading final model accuracy on real-world models?
  • RQ4How does Sketched-SGD compare to existing gradient compression methods (e.g., top-k, quantization) in terms of communication efficiency and scalability?
  • RQ5What is the theoretical convergence behavior of Sketched-SGD under sketching-induced gradient approximation?

Key findings

  • Sketched-SGD reduces total communication cost by up to 40x on transformer, LSTM, and residual network models with no loss in final model performance.
  • The method scales effectively to at least 256 workers without increasing communication cost or degrading model accuracy.
  • Communication cost per worker is reduced to 𝒪(log d), sub-linear in model size d and constant in number of workers W.
  • Experiments on MNIST show that Sketched-SGD achieves training and test error rates matching vanilla SGD, consistent with theoretical convergence rates.
  • The sketch size of 280 (40 columns, 7 rows) achieved a compression ratio of around 4 with k=10 and P=10 in small-scale experiments.
  • Theoretical analysis confirms that Sketched-SGD maintains favorable convergence rates under standard assumptions for smooth and convex functions.

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.