Asynchronous decentralized convex optimization through short-term gradient averaging

Jérôme Fellus, David Picard, Philippe-Henri Gosselin

Abstract

Large-scale machine learning often involves datasets that exceed the memory capacity of a single machine or are inherently distributed across networks. This paper introduces AGSTAG, a decentralized optimization algorithm that combines a "short-term" gradient averaging technique with asynchronous gossip protocols. AGSTAG bridges the gap between the memory efficiency of Stochastic Gradient Descent (SGD) and the stability of Stochastic Averaged Gradient (SAG). By maintaining a finite buffer of recent gradients and utilizing local randomized exchanges, the algorithm achieves fast convergence in fully decentralized, asynchronous environments without requiring a central coordinator or raw data exchange.

Introduction

In the era of "Big Data," training models like Support Vector Machines (SVMs) on massive datasets presents significant challenges. Traditional Stochastic Gradient Descent (SGD) is fast but often unstable due to high variance in gradient estimates. Conversely, Stochastic Averaged Gradient (SAG) offers high stability and fast convergence but requires storing a gradient for every training example, which is infeasible for billions of data points. Furthermore, most distributed optimization methods rely on a central "master node," creating potential bottlenecks and single points of failure.

This research addresses these issues by proposing a "sweet spot" between SGD and SAG. The authors introduce a tunable memory-to-performance ratio through a short-term averaging scheme, implemented within a decentralized framework that respects data privacy and operates without global synchronization.

The AGSTAG Framework

The proposed solution consists of two primary components:

  1. Short-Term Averaged Gradient (STAG): Unlike SAG, which stores all past gradients, STAG maintains a First-In-First-Out (FIFO) buffer of the $M$ most recent gradients. This user-defined parameter $M$ allows practitioners to control memory usage while benefiting from the variance reduction of averaging.
  2. Asynchronous Gossip (AGSTAG): To decentralize the process, nodes use a gossip protocol. Each node maintains a local estimate of the average gradient. Periodically, a node independently shares half of its estimate with a random neighbor. Over time, these local interactions ensure that nodes converge toward a global average of the $M$ most recent gradients across the entire network.
Convergence time as a function of buffer size M for different accuracy thresholds epsilon.

As shown in Figure 2, the choice of $M$ significantly impacts convergence time. For coarse accuracy ($\epsilon = 10^{-2}$), smaller buffers are sufficient, whereas higher precision ($\epsilon = 10^{-3}$) requires larger buffers to maintain stability and ensure convergence.

Experimental Evaluation

The authors evaluated AGSTAG using the MNIST dataset (60,000 handwritten digits) for a binary $L_2$ linear SVM training task. The experiments focused on how the algorithm scales with the number of nodes ($N$) and how the buffer size ($M$) influences performance.

Key Results and Scaling

A major finding is the efficiency of AGSTAG in distributed settings. In a network of $N$ nodes, the effective number of gradients averaged globally is $N \times M$. This allows individual nodes to maintain very small local buffers while still achieving the stability associated with a much larger aggregate buffer.

Objective function vs. evaluated gradients per node for varying network sizes N.

Figure 1 illustrates the scaling benefits: as the number of nodes $N$ increases, the number of gradient evaluations required per node to reach a target objective value decreases significantly. Larger networks also support larger constant step-sizes, which further accelerates training without risking divergence.

Conclusion and Future Work

AGSTAG successfully demonstrates that decentralized, asynchronous gossip protocols can effectively "sense" the global state of a large network to perform stable optimization. By tuning the buffer size $M$, the algorithm provides a flexible trade-off between memory constraints and convergence speed.

Future research may address the theoretical gap in proving exponential convergence for arbitrary buffer sizes, as current proofs for SAG do not directly extend to the STAG FIFO mechanism. Additionally, exploring the impact of restricted network topologies (e.g., grids or lines) where gossip propagation might be slower remains an important area for investigation.

Summary updated

BibTeX
@inproceedings{fellus2015asynchronous,
  author = {Jérôme Fellus and David Picard and Philippe-Henri Gosselin},
  title = {{Asynchronous decentralized convex optimization through short-term gradient averaging}},
  booktitle = {ESANN},
  year = {2015},
}
Figure