Skip to main content
QUICK REVIEW

[Paper Review] Gossip training for deep learning

Michaël Blot, David Picard|arXiv (Cornell University)|Nov 29, 2016
Stochastic Gradient Optimization TechniquesComputer Science13 references37 citations
TL;DR

This paper proposes GoSGD, a fully asynchronous and decentralized gossip-based training method for deep learning that accelerates convergence in stochastic gradient descent (SGD) by enabling peer-to-peer weight averaging among workers. Experiments on CIFAR-10 show GoSGD achieves lower training loss in ~4 hours compared to EASGD’s 7+ hours, demonstrating superior efficiency and consensus speed with minimal communication overhead.

ABSTRACT

We address the issue of speeding up the training of convolutional networks. Here we study a distributed method adapted to stochastic gradient descent (SGD). The parallel optimization setup uses several threads, each applying individual gradient descents on a local variable. We propose a new way to share information between different threads inspired by gossip algorithms and showing good consensus convergence properties. Our method called GoSGD has the advantage to be fully asynchronous and decentralized. We compared our method to the recent EASGD in \cite{elastic} on CIFAR-10 show encouraging results.

Motivation & Objective

  • To address the slow training of deep convolutional networks (CNNs) with large parameters.
  • To reduce synchronization bottlenecks in distributed SGD by eliminating central parameter servers.
  • To improve consensus among distributed workers using gossip-style peer-to-peer communication.
  • To enable faster convergence with minimal communication overhead while maintaining model accuracy.
  • To validate the effectiveness of gossip-based averaging in deep learning via empirical comparison with EASGD.

Proposed method

  • GoSGD uses M independent workers, each maintaining a local copy of CNN weights $x_i$ and a mixing weight $\alpha_i$ initialized to $1/M$.
  • Each worker performs local SGD updates using mini-batch gradients $v_i^t$ with learning rate $\eta^t$.
  • With probability $p$, each worker randomly selects a peer and performs a sum-weight gossip update to mix weights and update mixing weights.
  • The consensus is maintained through pairwise exchanges that ensure exponential convergence to the average $\overline{x}^t = \frac{1}{M}\sum x_i^t$.
  • The final test model is the average of all worker weights, which benefits from improved gradient approximation due to consensus.
  • The method is fully asynchronous and decentralized, requiring no synchronization or central coordination.

Experimental results

Research questions

  • RQ1Can gossip-based communication improve convergence speed in distributed SGD for deep learning?
  • RQ2How does GoSGD compare to EASGD in terms of training time and loss convergence on CIFAR-10?
  • RQ3What is the impact of the gossip exchange probability $p$ on consensus and training efficiency?
  • RQ4Can decentralized, asynchronous training maintain model accuracy while reducing communication and synchronization overhead?
  • RQ5Does peer-to-peer weight averaging lead to better gradient approximation than centralized parameter servers?

Key findings

  • GoSGD achieved a lower training loss than EASGD after processing the same number of images, indicating faster convergence.
  • With $p = 1$, GoSGD outperformed EASGD in terms of loss reduction, suggesting superior consensus and information sharing.
  • When $p = 0.02$, GoSGD reached the same training loss in approximately 4 hours, while EASGD required over 7 hours.
  • The method demonstrated that low-frequency gossip exchanges ($p = 0.01$) still ensure strong consensus, reducing communication costs without sacrificing performance.
  • GoSGD’s decentralized and asynchronous design eliminated idle time and enabled faster utilization of GPU resources.
  • The averaging of worker models produced a test model with improved gradient approximation due to consensus, enhancing optimization stability.

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.