Distributed SAGA: Maintaining linear convergence rate with limited communication

Clément Calauzènes, Nicolas Le RouxarXiv 2017

Abstract

In recent years, variance-reducing stochastic methods have shown great practical performance, exhibiting linear convergence rate when other stochastic methods offered a sub-linear rate. However, as datasets grow ever bigger and clusters become widespread, the need for fast distribution methods is pressing. We propose here a distribution scheme for SAGA which maintains a linear convergence rate, even when communication between nodes is limited.

Introduction

In machine learning, we often need to minimize a loss function that is the sum of millions or billions of individual data point losses. Optimization generally faces a trade-off: batch methods like L-BFGS are easy to distribute but converge slowly on large datasets, while stochastic methods like SAGA are fast on single machines but difficult to distribute due to communication bottlenecks. Frequent synchronization between nodes creates a massive overhead, as network transfers are significantly slower than local memory access. This paper introduces dSAGA (distributed SAGA), a scheme designed to achieve the fast convergence of SAGA with the scalability of a distributed cluster by minimizing communication overhead.

Methods

The dSAGA algorithm partitions data across $K$ different machines. The core innovation lies in how nodes communicate: instead of syncing after every update, each node performs several local passes ($U$) through its own subset of data. To keep local updates heading in the right direction, dSAGA uses a gradient approximation technique. Each node maintains its own parameter vector and a table of stored gradients for its local data. Periodically, nodes share their current parameter positions and the sum of their stored gradients. When working locally, a node approximates missing global information by assuming the Hessian of the loss function is similar across nodes, allowing it to estimate global gradient changes based on local progress. Theoretical analysis confirms that this approach maintains a linear convergence rate for quadratic problems, even with limited communication.

Experimental Evaluation

The researchers evaluated dSAGA on three classification datasets of increasing scale: ALPHA ($5 \times 10^5$ samples), CriteoSmall ($4.5 \times 10^7$ samples), and CriteoLarge ($4 \times 10^9$ samples).

Comparison of dSAGA and L-BFGS performance across ALPHA, CriteoSmall, and CriteoLarge datasets.

As shown in the figure above, dSAGA significantly outperforms L-BFGS on the ALPHA and CriteoSmall datasets, reaching high precision much faster in terms of passes through the data. On the massive CriteoLarge dataset, dSAGA performs comparably to the highly optimized L-BFGS, demonstrating that a stochastic method can match batch methods even at extreme scales.

Key Insights and Robustness

A key finding is that dSAGA is highly robust to communication latency. Increasing the number of local passes ($U$)—thereby communicating less frequently—hardly degrades the convergence speed per data pass. This allows for a significant reduction in network traffic without sacrificing optimization progress.

Robustness of dSAGA convergence to varying communication frequencies (U) on the CriteoSmall dataset.

The experiments also highlighted a limit to parallelization ($K$). If too many nodes are used, the amount of data per node ($N/K$) becomes too small relative to the problem's condition number, causing local solvers to struggle. The authors recommend setting $K$ to the minimum number of nodes required to fit the data in memory.

Conclusion

dSAGA provides a scalable framework for variance-reduced optimization, maintaining linear convergence even in communication-constrained environments. While currently demonstrated for quadratic losses like logistic regression, future work includes generalizing proofs for all strongly convex functions and developing an asynchronous version to handle straggler nodes in real-world clusters.

Summary updated

BibTeX
@misc{calauzenes2017distributed,
  author = {Clément Calauzènes and Nicolas Le Roux},
  title = {{Distributed SAGA: Maintaining linear convergence rate with limited communication}},
  year = {2017},
  eprint = {1705.10405},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1705.10405},
}
Figure