Dual-Free Stochastic Decentralized Optimization with Variance Reduction

Hadrien Hendrikx, Francis R. Bach, Laurent Massoulié

TL;DR

This paper introduces DVR, a novel decentralized stochastic optimization algorithm with variance reduction that only requires standard primal gradients. By applying Bregman coordinate descent to a cleverly chosen dual problem, DVR achieves the computational speed of single-machine variance-reduced methods without relying on expensive dual oracles, making it highly efficient for large-scale distributed machine learning.

The Challenge of Decentralized Stochastic Optimization

In large-scale machine learning, data is often distributed across multiple machines (nodes) that communicate over a network without a central server—a setup known as decentralized optimization. When local datasets are large, single-machine algorithms typically use stochastic gradient descent combined with variance reduction (like SVRG or SAGA) to speed up training.

However, translating these fast stochastic methods to a decentralized setting has been challenging. Existing decentralized stochastic algorithms face a dilemma: they either suffer from slow convergence rates (failing to fully exploit the speedup of stochastic updates), or they achieve fast rates but require computing expensive "dual oracles" (like proximal operators or gradients of Fenchel conjugates). For complex models, computing these dual oracles is computationally prohibitive.

The authors tackle this gap by designing an algorithm that maintains fast, linear convergence rates while only requiring standard, cheap stochastic gradients (primal oracles).

Methods: The "Dual-Free" Trick

The authors develop DVR (Decentralized stochastic algorithm with Variance Reduction) using an innovative mathematical approach:

  1. Augmented Dual Formulation: They start by framing the decentralized optimization task as a dual problem on an "augmented graph." This graph explicitly separates the network into "communication edges" (links between physical machines) and "computation edges" (virtual links representing local data points).
  2. The Bregman Substitution: To solve this dual problem, one would normally use coordinate descent, which requires those expensive dual oracles. To bypass this, the authors replace the standard Euclidean distance in the coordinate update step with a specific Bregman divergence. This clever substitution mathematically cancels out the need to evaluate the complex dual function.
  3. Primal Implementation: Thanks to the Bregman divergence trick, the resulting algorithm can be written entirely using standard primal stochastic gradients. Nodes simply alternate between taking local stochastic gradient steps and gossiping (averaging parameters) with their neighbors.
  4. Acceleration: To further improve performance, the authors apply Chebyshev polynomials to accelerate network communication and the Catalyst framework to accelerate global iteration complexity.

Key Insights

  • Bregman Divergence as a Bridge: The most elegant insight of the paper is using Bregman divergence in the dual space to eliminate the need for dual oracles. It effectively translates a complex dual coordinate descent method into a simple, implementable primal stochastic gradient method.
  • Decoupling Computation and Communication: By explicitly separating "computation edges" and "communication edges" in the math, the algorithm can sample local gradients and communicate across the network at vastly different, optimized frequencies.
  • Best of Both Worlds: DVR proves that researchers do not need to sacrifice computational efficiency (by relying on expensive proximal operators) to achieve optimal communication rates in decentralized networks.

Key Results

The authors evaluated their algorithm on the RCV1 (Reuters Corpus Volume I) dataset, framing the task as a regularized logistic regression problem. The experiments were simulated over a network of 81 nodes using two different graph topologies: an Erdős-Rényi random graph and a Grid graph.

Performance comparison of DVR and Accelerated DVR against baselines across different network topologies and metrics.
  • Theoretical Speed: DVR achieves a computational complexity of $O(m + \kappa_s)$ (where $m$ is the local dataset size and $\kappa_s$ is the condition number). This perfectly matches the theoretical speed limit of running a variance-reduced algorithm locally on a single machine.
  • Empirical Computation: On the RCV1 dataset, DVR vastly outperformed state-of-the-art primal algorithms like EXTRA, NIDS, and GT-SAGA in terms of computational time (measured by the number of individual gradients computed).
  • Accelerated Performance: When combined with Catalyst and Chebyshev acceleration, DVR became the fastest overall method in the experiments. It remained competitive in communication rounds with optimal batch algorithms while requiring drastically less computation per step.

Limitations and Future Work

The authors acknowledge that the base DVR algorithm has a slightly worse communication complexity than some unaccelerated batch methods (like EXTRA) before applying Catalyst or Chebyshev acceleration. Furthermore, Catalyst acceleration adds some conceptual and implementation overhead.

For future work, the authors suggest that their Bregman divergence methodology could be extended to tackle non-convex problems (which would open the door to training deep neural networks) and to develop asynchronous versions of the algorithm to better handle heterogeneous computing environments where some nodes are slower than others.

Summary updated

BibTeX
@inproceedings{hendrikx2020dual,
  author = {Hadrien Hendrikx and Francis R. Bach and Laurent Massoulié},
  title = {{Dual-Free Stochastic Decentralized Optimization with Variance Reduction}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2020},
  url = {https://openreview.net/forum?id=EZk6zcLVrwb},
}
Figure