NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Gossip training for deep learning

Michael Blot, David Picard, Matthieu Cord, Nicolas ThomearXiv 2016

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.

Introduction

Training modern convolutional neural networks (CNNs) is notoriously slow due to their massive parameter counts and the vast datasets required. While distributed training—spreading the workload across multiple GPUs or "workers"—is a standard solution, it often relies on a centralized architecture. In these setups, workers periodically send updates to a central "master" variable, creating communication bottlenecks and synchronization latency where workers idle while waiting for the central server. This paper introduces GoSGD, a fully decentralized and asynchronous algorithm that eliminates these bottlenecks by replacing the central parameter server with peer-to-peer "gossip" exchanges.

Methodology

The proposed GoSGD algorithm integrates Gossip Averaging with Stochastic Gradient Descent. Each worker maintains its own local set of weights and performs two primary steps in every iteration: a standard local SGD update on a mini-batch and a mixing (gossip) update. In the mixing step, with a probability $p$, a worker randomly selects a peer and "pushes" its current weights to them.

Key Innovations

  • Sum-Weight Protocol: To handle asynchrony, the authors employ a protocol where each worker tracks a "sharing variable" ($\alpha$). This allows sequential weight updates as information arrives from peers without requiring handshakes or idling.
  • Fully Asynchronous: Because it is "push-only," no worker is ever idling. If a worker receives multiple weight updates, it processes them in order before its next gradient step.
  • Decentralized Consensus: Peer-to-peer exchange ensures that all local models converge toward a global average at an exponential rate.

Experimental Setup

The researchers evaluated GoSGD using the CIFAR-10 dataset, consisting of 60,000 32x32 color images across 10 classes. The experiments utilized a CNN architecture consistent with existing distributed training literature and were conducted on 4 Titan X GPUs with 8 workers to test real-world hardware efficiency.

Results and Discussion

GoSGD was compared against EASGD (Elastic Averaging SGD) and a "Naive" baseline where workers train independently with no exchange.

Convergence Efficiency

When comparing the number of images processed, GoSGD demonstrates superior convergence. As shown in the training loss curves, GoSGD achieves a lower loss than EASGD for the same computational effort when exchange probability is maximized ($p=1$). This indicates that the gossip mechanism is fundamentally more effective at sharing optimization information between workers.

Train Loss vs. Images Processed per Worker comparing GoSGD (gossip), EASGD (elastic), and a naive baseline.

Wall-Clock Speedup

The most significant advantage of GoSGD is its impact on training time. Due to its fully asynchronous nature, it eliminates the "waiting time" associated with central servers. In wall-clock time, GoSGD reached the target training loss in approximately 4 hours, whereas EASGD required over 7 hours to reach the same level—a nearly 2x speedup.

Train Loss vs. Wall-clock Time (hours) comparing GoSGD (gossip) and EASGD (elastic) at p=0.02.

The gossip strategy also proves to be highly information-efficient; even with a low exchange probability (e.g., $p=0.02$), the system maintains a strong consensus and outperforms elastic methods in time-to-convergence.

Conclusion and Future Work

GoSGD offers a scalable, decentralized alternative for distributed deep learning that significantly reduces training time by eliminating central bottlenecks. While results on CIFAR-10 are encouraging, future work is needed to evaluate performance on larger datasets like ImageNet and more complex architectures. Additionally, further theoretical analysis is required to understand convergence rates in non-convex landscapes and to explore automated tuning of the exchange probability $p$.

Summary updated

BibTeX
@misc{blot2016gossip,
  author = {Michael Blot and David Picard and Matthieu Cord and Nicolas Thome},
  title = {{Gossip training for deep learning}},
  year = {2016},
  eprint = {1611.09726},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1611.09726},
}
Figure