Accelerating Asynchronous Algorithms for Convex Optimization by Momentum Compensation

Cong Fang, Yameng Huang, Zhouchen LinarXiv 2018

Abstract

In parallel machine learning optimization, asynchronous execution maximizes hardware utilization but introduces gradient staleness, which typically destabilizes accelerated methods like Nesterov’s Accelerated Gradient Descent. This paper presents "momentum compensation," a novel framework that restores acceleration in asynchronous settings. By mathematically compensating for the momentum "lost" during communication delays, the authors derive three new algorithms—AAGD, AASCD, and AASVRG—that achieve optimal convergence rates. Experimental evaluations on diverse datasets show that these methods significantly outperform existing asynchronous solvers, particularly on ill-conditioned problems.

Introduction

Parallelizing optimization is essential for large-scale machine learning. While synchronous methods are theoretically sound, they are often bottlenecked by "stragglers"—slower threads that delay the entire system. Asynchronous methods avoid this by allowing threads to update parameters independently. However, these updates often rely on "stale" gradients computed from outdated parameter states. This staleness is particularly disruptive for accelerated algorithms, which rely on precise momentum trajectories to navigate the optimization landscape efficiently.

Methodology: Momentum Compensation

The core innovation of this work is the "Momentum Compensation" technique. In standard accelerated schemes, an extrapolation point is used to incorporate momentum from previous steps. In an asynchronous environment, the available gradient $\nabla f(x^{j(k)})$ corresponds to a past state $x^{j(k)}$, where the delay $\tau = k - j(k)$ represents the number of updates that occurred while the gradient was being computed.

The authors identify that the error introduced by this delay is not merely noise but a structural gap in the momentum trajectory. By introducing a compensated extrapolation point $w^{j(k)}$ that incorporates the sum of momentum terms that would have been applied during the delay period, the algorithm effectively "bridges" the gap between the stale gradient and the current model state. This approach was applied to three fundamental optimization paradigms:

  1. AAGD: Accelerated Asynchronous Gradient Descent.
  2. AASCD: Accelerated Asynchronous Stochastic Coordinate Descent.
  3. AASVRG: Accelerated Asynchronous Stochastic Variance Reduced Gradient.

Key Results and Theoretical Optimality

The proposed algorithms achieve theoretical lower bounds for convex optimization, matching the performance of serial accelerated methods despite the asynchronous execution. For non-strongly convex (NC) functions, the algorithms reach a convergence rate of $O(1/\sqrt{\epsilon})$, a significant improvement over the $O(1/\epsilon)$ rate of non-accelerated asynchronous methods. For strongly convex (SC) functions, they achieve $O(\sqrt{\kappa} \log(1/\epsilon))$, where $\kappa$ is the condition number.

Table 1: Convergence rates for various optimization algorithms under non-strongly convex (NC) and strongly convex (SC) settings.

Empirical testing on a variety of sparse (e.g., rcv1, news20) and dense (e.g., MNIST, EPSILON) datasets confirmed these theoretical gains. The algorithms demonstrated near-linear speedup with increasing thread counts on sparse data and consistently converged faster in terms of CPU time than established baselines like HOGWILD!, ASGD, and ASVRG. The benefits were most pronounced on ill-conditioned problems, where standard asynchronous methods often struggle.

Conclusion and Future Work

Momentum compensation provides a robust theoretical and practical bridge between asynchronous execution and Nesterov-style acceleration. While the current analysis relies on a bounded delay assumption and focuses on convex optimization, it sets the stage for future research into lock-free "wild" implementations and extensions to non-convex landscapes, such as those found in deep neural networks.

Summary updated

BibTeX
@misc{fang2018accelerating,
  author = {Cong Fang and Yameng Huang and Zhouchen Lin},
  title = {{Accelerating Asynchronous Algorithms for Convex Optimization by Momentum Compensation}},
  year = {2018},
  eprint = {1802.09747},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1802.09747},
}
Figure