Optimal Decentralized Distributed Algorithms for Stochastic Convex Optimization

Eduard Gorbunov, Darina Dvinskikh, Alexander GasnikovarXiv 2019 · DOI

Abstract

We consider stochastic convex optimization problems with affine constraints and develop several methods using either primal or dual approach to solve it. In the primal case we use special penalization technique to make the initial problem more convenient for using optimization methods. We propose algorithms to solve it based on Similar Triangles Method with Inexact Proximal Step for the convex smooth and strongly convex smooth objective functions and methods based on Gradient Sliding algorithm to solve the same problems in the non-smooth case. We prove the convergence guarantees in smooth convex case with deterministic first-order oracle. We propose and analyze three novel methods to handle stochastic convex optimization problems with affine constraints: SPDSTM, R-RRMA-AC-SA and SSTM_sc. All methods use stochastic dual oracle. SPDSTM is the stochastic primal-dual modification of STM and it is applied for the dual problem when the primal functional is strongly convex and Lipschitz continuous on some ball. R-RRMA-AC-SA is an accelerated stochastic method based on the restarts of RRMA-AC-SA and SSTM_sc is just stochastic STM for strongly convex problems. Both methods are applied to the dual problem when the primal functional is strongly convex, smooth and Lipschitz continuous on some ball and use stochastic dual first-order oracle. We develop convergence analysis for these methods for the unbiased and biased oracles respectively. Finally, we apply all aforementioned results and approaches to solve decentralized distributed optimization problem and discuss optimality of the obtained results in terms of communication rounds and number of oracle calls per node.

Introduction

In modern machine learning, datasets are often too massive to store on a single machine, necessitating distributed optimization where multiple worker nodes process data in parallel. While centralized setups are common, they often suffer from master-node bottlenecks. Decentralized optimization removes this single point of failure by allowing machines to communicate only with their immediate neighbors in a graph. This paper addresses the challenge of solving global problems, such as minimizing $\sum f_i(x)$, under the constraint that all nodes must reach consensus ($Ax=0$), particularly when gradients are stochastic and the network structure is complex.

Algorithmic Framework

The authors propose two primary approaches to decentralized stochastic optimization:

1. The Primal Approach

This approach utilizes a penalization technique to transform the constrained problem into an unconstrained one. A key contribution is the Similar Triangles Method with Inexact Proximal Step (STM_IPS). This method allows nodes to solve local sub-problems approximately, significantly reducing computational overhead. The core logic of the Similar Triangles Method is illustrated in Algorithm 1.

Algorithm 1: Similar Triangles Method (STM), which serves as a foundation for the proposed accelerated decentralized algorithms.

2. The Dual Approach

For strongly convex problems, solving the dual problem is often more efficient. The paper introduces three novel dual-based methods:

  • SPDSTM: A stochastic primal-dual method capable of handling biased oracles.
  • R-RRMA-AC-SA$^2$: An accelerated method using a restart strategy for unbiased noise.
  • SSTM_sc: A directly accelerated method for strongly convex dual functions that handles biased gradients.

By mapping the abstract constraint $Ax=0$ to the network's Laplacian matrix, these algorithms ensure that only local neighbor-to-neighbor communication is required.

Theoretical Complexity and Key Results

The paper establishes that these algorithms achieve optimal theoretical complexity, matching known lower bounds for both communication rounds and local computations (oracle calls).

Oracle Complexity

The number of local gradient calculations per node is shown to be $\tilde{O}(\max\{\frac{L}{\mu}, \frac{\sigma^2}{\mu\epsilon}\})$, where $\sigma^2$ is the noise level and $\epsilon$ is the target accuracy. The following table summarizes the oracle call complexity for various function assumptions in the deterministic setting.

Table 1: Summary of the optimal number of oracle calls for different assumptions on the objective function $f$ in a deterministic setting.

Communication Complexity

For smooth, strongly convex functions, the communication complexity is $\tilde{O}(\sqrt{\frac{L}{\mu}\chi(W)})$, where $\chi(W)$ represents the condition number of the network graph. This highlights the balance between network connectivity and functional properties.

Applications: Population Wasserstein Barycenter

The theoretical results are validated through the calculation of Population Wasserstein Barycenters. This application involves finding the geometric average of probability distributions. The authors demonstrate that their Stochastic Average Approximation (SAA) approach can significantly outperform standard online methods, particularly when network communication is efficient.

Conclusion

This work provides a comprehensive complexity landscape for decentralized stochastic optimization. By addressing biased oracles and providing optimal convergence rates, the proposed algorithms (SPDSTM, SSTM_sc, and R-RRMA-AC-SA$^2$) offer robust solutions for large-scale distributed learning. Future work may extend these results to time-varying networks and more general noise models.

Summary updated

BibTeX
@misc{gorbunov2019optimal,
  author = {Eduard Gorbunov and Darina Dvinskikh and Alexander Gasnikov},
  title = {{Optimal Decentralized Distributed Algorithms for Stochastic Convex Optimization}},
  year = {2019},
  eprint = {1911.07363},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1911.07363},
}
Figure