Distributed Stochastic Non-Convex Optimization: Momentum-Based Variance Reduction

Prashant Khanduri, Pranay Sharma, Swatantra Kafle, Saikiran Bulusu, Ketan Rajawat, Pramod K. Varshney

TL;DR

This paper introduces two new distributed algorithms (AD-STORM and D-STORM) for non-convex stochastic optimization that achieve optimal computational complexity and linear speedup without requiring massive batch sizes. By leveraging momentum-based variance reduction in a single-loop architecture, these algorithms significantly reduce the gradient computation burden on individual worker nodes, making them highly suitable for heterogeneous data environments like federated learning.

What Problem Does This Paper Address?

In large-scale machine learning, optimization problems are often non-convex and distributed across multiple worker nodes coordinated by a central server. To handle the inherent noise of stochastic gradient descent (SGD), state-of-the-art algorithms use variance reduction techniques.

However, traditional distributed variance reduction methods (like SPIDER or SVRG) rely on a "double-loop" structure. This requires workers to periodically compute massive "mega-batch" gradients to reset the variance anchor point. This introduces severe computational bottlenecks and memory overhead at the worker level. Furthermore, many existing distributed methods assume that data is identically distributed (IID) across all workers—an assumption that completely breaks down in real-world federated learning scenarios where data is highly heterogeneous.

The authors address this gap by designing a distributed framework that achieves optimal convergence rates and scales linearly with the number of workers, all while avoiding large batch sizes and accommodating non-IID data distributions.

Methods

The authors propose a "single-loop" architecture that eliminates mega-batches entirely by utilizing a momentum-based gradient estimator. This estimator combines the properties of the SARAH recursive gradient estimator with standard unbiased SGD updates. Each worker node only needs to compute two stochastic gradients at each iteration.

The paper introduces two specific algorithmic variants:

  1. AD-STORM (Adaptive Distributed STORM): This version automatically adjusts its step size on the fly based on past and present stochastic gradient norms. It requires knowledge of a universal gradient bound ($G$) but is robust to parameter tuning.
  2. D-STORM (Distributed STORM): A non-adaptive variant that uses deterministic step sizes. It removes the need for a gradient bound ($G$) but requires knowledge of the variance parameter ($\sigma^2$).
Algorithm 1: AD-STORM pseudocode

The server node (SN) acts as a central aggregator, collecting scalar gradient statistics or descent directions from the worker nodes (WNs), averaging them, and broadcasting them back to maintain synchronization.

Datasets

Not discussed in the paper. This work is purely theoretical and focuses on establishing mathematical convergence proofs.

Key Insights and Ideas

  • The Power of Single-Loop Momentum: By replacing the double-loop structure with a continuous momentum update, the algorithms achieve variance reduction dynamically. Workers never face a sudden spike in computational demand from mega-batch calculations.
  • Exploiting the Distributed Architecture for Speed: A key insight in the analysis shows that distributing the workload allows the system to effectively use larger step sizes than would be stable in a centralized setting. This directly enables a linear speedup relative to the number of workers ($K$).
  • Robustness to Non-IID Data: The convergence proofs do not rely on identical data distributions across workers. The algorithms remain stable and optimal even when every worker node sees completely different data profiles, making it a natural fit for federated learning.

Key Results

  • Optimal Computational Complexity: Both algorithms reach an $\epsilon$-stationary point (where the expected gradient norm is small) using just $\tilde{O}(K^{-1}\epsilon^{-3})$ gradient computations at each worker node. This matches the theoretical lower bounds for non-convex stochastic optimization up to logarithmic factors.
  • Linear Speedup: The total number of gradient evaluations required per worker decreases linearly as the number of workers ($K$) increases, demonstrating perfect parallel efficiency.
  • Convergence Rate: In $T$ iterations, the algorithms achieve an expected gradient norm bound of $\tilde{O}(K^{-1/3}T^{-1/2} + K^{-1/3}T^{-1/3})$.

Limitations and Future Work

  • Parameter Dependencies: AD-STORM requires prior knowledge of the global gradient bound ($G$), while the non-adaptive D-STORM requires knowing the variance parameter ($\sigma^2$). In practice, these constants can be difficult to estimate accurately.
  • Communication Overhead: Because these are single-loop algorithms that synchronize at every iteration, they require frequent communication between the workers and the server.

As a next step, the authors suggest exploring "restarted" versions of these algorithms where communication happens less frequently (local updates) to save bandwidth. They also highlight the extension of these methods to fully decentralized, serverless (peer-to-peer) network architectures as an important direction for future research.

Summary updated

BibTeX
@misc{khanduri2020distributed,
  author = {Prashant Khanduri and Pranay Sharma and Swatantra Kafle and Saikiran Bulusu and Ketan Rajawat and Pramod K. Varshney},
  title = {{Distributed Stochastic Non-Convex Optimization: Momentum-Based Variance Reduction}},
  year = {2020},
  eprint = {2005.00224},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2005.00224},
}
Figure