NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Accelerating Distributed Optimization: A Primal-Dual Perspective on Local Steps

Junchi Yang, Murat Yildirim, Qiu FengarXiv 2024 · DOI

In distributed machine learning, the "wire" is often the primary bottleneck. Moving gradients and model weights between a central coordinator and dozens of clients—or across a peer-to-peer network—is significantly slower than performing local computations. This paper bridges the gap between popular "local step" methods (like Federated Averaging) and theoretical communication efficiency limits. By reframing local updates as inner-loop primal iterations within a primal-dual framework, the authors introduce algorithms that achieve near-optimal communication complexity without requiring the massive, impractical minibatches often seen in previous "optimal" methods.

The Problem: Communication vs. Computation

To mitigate communication overhead, researchers use "local step" methods where clients perform multiple iterations of Stochastic Gradient Descent (SGD) locally before communicating. While popular, these methods often suffer from "client drift" and suboptimal convergence rates. Conversely, theoretical algorithms that achieve optimal communication rates usually rely on massive minibatches to reduce noise, which is often impossible due to memory constraints on edge devices.

The authors ask a fundamental question: Can we design a local-step method that hits optimal communication and gradient complexity simultaneously, without needing giant minibatches?

GA-MSGD: A Primal-Dual Approach

The authors propose a new algorithm: (Accelerated) Gradient Ascent Multi-Stochastic Gradient Descent (GA-MSGD). The core innovation is a change in perspective. Instead of viewing local steps as a heuristic to save time, they view them as the inner loop of a primal-dual optimization applied to the Lagrangian of the distributed problem.

  • Primal Steps (Local): Clients run multiple steps of SGD on their local variables. Because these updates only depend on local data, they require zero communication.
  • Dual Steps (Communication): After the local steps, the "dual variable" (which enforces consensus across the network) is updated via Gradient Ascent. This is where communication happens.

To ensure robustness across different problem types, they integrate this approach with the Catalyst framework—a meta-algorithm that wraps optimization methods in an "outer loop" to improve stability and speed, especially for non-convex or poorly conditioned problems.

Theoretical Insights

  • The Lagrangian Connection: The structure of distributed optimization naturally maps to a primal-dual setup where local steps are mathematically justified as solving a primal subproblem.
  • Hidden Strong Concavity: While the Lagrangian is typically only linear in dual variables, the authors demonstrate that because the dual variable is confined to the "span of the coupling matrix," the dual problem behaves as if it were strongly concave. This allows for much faster (linear) convergence.
  • Breaking the Minibatch Dependency: By leveraging the primal-dual structure, the algorithm maintains efficiency even with small, noisy batches. It matches the communication efficiency of "optimal" minibatch methods while maintaining superior "per-sample" efficiency.

Key Results

The paper provides a comprehensive complexity analysis across centralized and decentralized settings.

Comparison of communication and sample complexities for centralized strongly convex optimization.

In centralized strongly convex settings, their method is the first local-step algorithm to achieve $O(\sqrt{\kappa})$ communication and $O(\sqrt{\kappa})$ gradient complexity simultaneously (where $\kappa$ is the condition number). It also provides the first non-asymptotic $O(\sqrt{\kappa})$ communication complexity for stochastic problems without requiring minibatches.

Communication complexity comparison for decentralized optimization across different objective types.

For decentralized (peer-to-peer) networks, the accelerated version (Acc-GA-MSGD) matches the theoretical lower bounds for communication, scaling effectively with the network's connectivity (represented by the spectral gap of the weight matrix).

Limitations and Future Work

While GA-MSGD achieves near-optimal rates, the basic version does not automatically show "linear speedup" (where adding more clients directly reduces the total samples needed). Achieving this requires combining the framework with other techniques like SCAFFOLD. Additionally, while the paper uses SGD for inner loops, the framework is flexible enough to potentially incorporate adaptive optimizers like Adam or Shampoo in future research. Finally, the authors suggest that more tailored stopping rules for the Catalyst wrapper could further reduce total complexity.

Summary updated

BibTeX
@misc{yang2024accelerating,
  author = {Junchi Yang and Murat Yildirim and Qiu Feng},
  title = {{Accelerating Distributed Optimization: A Primal-Dual Perspective on Local Steps}},
  year = {2024},
  eprint = {2407.02689},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2407.02689},
}
Figure