DSA: Decentralized Double Stochastic Averaging Gradient Algorithm

Aryan Mokhtari, Alejandro Ribeiro

Abstract

This paper considers optimization problems where nodes of a network have access to summands of a global objective. Each of these local objectives is further assumed to be an average of a finite set of functions. The motivation for this setup is to solve large scale machine learning problems where elements of the training set are distributed to multiple computational elements. The decentralized double stochastic averaging gradient (DSA) algorithm is proposed as a solution alternative that relies on: (i) The use of local stochastic averaging gradients. (ii) Determination of descent steps as differences of consecutive stochastic averaging gradients. Strong convexity of local functions and Lipschitz continuity of local gradients is shown to guarantee linear convergence of the sequence generated by DSA in expectation. Local iterates are further shown to approach the optimal argument for almost all realizations. The expected linear convergence of DSA is in contrast to the sublinear rate characteristic of existing methods for decentralized stochastic optimization. Numerical experiments on a logistic regression problem illustrate reductions in convergence time and number of feature vectors processed until convergence relative to these other alternatives.

Introduction

In large-scale machine learning, datasets often exceed the capacity of a single machine. A common solution is to distribute data across a network of nodes (agents), where each node possesses a subset of the total data. The objective is for these nodes to collaboratively find a global model that minimizes the aggregate loss across the entire network, communicating only with immediate neighbors.

Historically, decentralized optimization faced a significant trade-off. Decentralized Gradient Descent (DGD) is computationally simple but suffers from a bias that prevents convergence to the exact optimum when using a constant stepsize. EXTRA (Exact First-Order Algorithm) introduced a correction mechanism to achieve exact convergence but requires computing full gradients of local data at every iteration. For nodes with millions of samples, this is computationally prohibitive. While stochastic methods reduce per-iteration costs by using random samples, prior to the introduction of DSA, all such decentralized methods were limited to sublinear convergence rates.

The DSA Algorithm

The Decentralized Double Stochastic Averaging (DSA) algorithm bridges this gap by combining the "double" iterate structure of EXTRA with the "stochastic averaging" (SAGA) technique.

Stochastic Averaging Mechanism

To avoid the cost of full gradient computations, DSA maintains a local table of gradients for each data point at every node. In each iteration, a node selects a single random data point, updates its gradient in the table, and uses the average of the table's entries as an estimate of the true local gradient.

Figure 1: The update mechanism of the local stochastic gradient table in DSA. Each node maintains a table of gradients for its local samples, updating only one entry per iteration to reduce computational overhead.

The "Double" Update Rule

The "Double" in DSA refers to the use of information from the two most recent iterates ($x^t$ and $x^{t-1}$). This structure acts as a correction mechanism, effectively canceling out the bias introduced by the network topology. By combining this with variance reduction from the stochastic averaging, DSA achieves exact convergence with a constant stepsize.

Theoretical Insights

The core innovation of DSA lies in its interpretation as a stochastic saddle-point method on an augmented Lagrangian. This perspective allows for a rigorous proof of linear convergence. Specifically, for strongly convex local functions with Lipschitz continuous gradients, the error is shown to decrease exponentially: $O(\delta^t)$ for some $0 < \delta < 1$. This is a significant improvement over the $O(1/t)$ rates typical of previous stochastic decentralized algorithms.

Experimental Results

The authors validated DSA using both synthetic data and the KDD Cup 2004 Protein Homology Dataset (145,000 samples, 74 features).

  • Computational Efficiency: On the KDD dataset, DSA reached an error of $10^{-8}$ using only 380 gradient evaluations per node. In comparison, the deterministic EXTRA algorithm required 1,725 evaluations.
  • Scalability: The performance gap between DSA and deterministic methods widens as the number of local samples ($q$) increases, making DSA particularly effective for massive datasets.
  • Network Robustness: While denser networks generally converge faster, DSA maintains its linear convergence properties across various topologies, including sparse line and cycle graphs.

Conclusion and Future Work

DSA represents a milestone in decentralized optimization, being the first stochastic method to achieve linear convergence to the exact global optimum. While it requires more memory than simple SGD to store the gradient table, the savings in computation time are substantial. Future research directions include extending the algorithm to non-convex problems and replacing the SAGA-style update with memory-efficient alternatives like SVRG (Stochastic Variance Reduced Gradient).

Summary updated

BibTeX
@article{mokhtari2016dsa,
  author = {Aryan Mokhtari and Alejandro Ribeiro},
  title = {{DSA: Decentralized Double Stochastic Averaging Gradient Algorithm}},
  journal = {J. Mach. Learn. Res.},
  year = {2016},
  url = {https://openreview.net/forum?id=B_bxNDDmUhs},
}
Figure