Escaping From Saddle Points Using Asynchronous Coordinate Gradient Descent

Marco Bornstein, Jin-Peng Liu, Jingling Li, Furong HuangarXiv 2022

Abstract

Large-scale non-convex optimization problems are expensive to solve due to computational and memory costs. To reduce the costs, first-order (computationally efficient) and asynchronous-parallel (memory efficient) algorithms are necessary to minimize non-convex functions in machine learning. However, asynchronous-first-order methods applied within non-convex settings run into two difficulties: (i) parallelization delays, which affect convergence by disrupting the monotonicity of first-order methods, and (ii) sub-optimal saddle points where the gradient is zero. To solve these two difficulties, we propose an asynchronous-coordinate-gradient-descent algorithm shown to converge to local minima with a bounded delay. Our algorithm overcomes parallelization-delay issues by using a carefully constructed Hamiltonian function. We prove that our designed kinetic-energy term, incorporated within the Hamiltonian, allows our algorithm to decrease monotonically per iteration. Next, our algorithm steers iterates clear of saddle points by utilizing a perturbation sub-routine. Similar to other state-of-the-art (SOTA) algorithms, we achieve a poly-logarithmic convergence rate with respect to dimension. Unlike other SOTA algorithms, which are synchronous, our work is the first to study how parallelization delays affect the convergence rate of asynchronous first-order algorithms. We prove that our algorithm outperforms synchronous counterparts under large parallelization delays, with convergence depending sublinearly with respect to delays. To our knowledge, this is the first local optima convergence result of a first-order asynchronous algorithm for non-convex settings.

Introduction

In the era of massive-scale machine learning, training non-convex models like deep neural networks presents two primary challenges: the presence of saddle points and the "straggler" problem in parallel computing. Saddle points are regions where the gradient is zero but the point is not a local minimum, often causing standard gradient descent to stall. To accelerate computation, parallelization is used; however, synchronous systems are limited by the slowest worker. Asynchronous systems, while more efficient, introduce "stale" gradients (delays) that can break the convergence guarantees of traditional first-order methods.

This paper introduces Saddle-Escaping Asynchronous Coordinate Gradient Descent (SE-ACGD). It is the first asynchronous first-order algorithm theoretically proven to converge to local minima in non-convex landscapes, effectively bridging the gap between high-performance asynchronous execution and rigorous optimization guarantees.

The Asynchronous Challenge

Asynchronous parallelization allows multiple workers to compute gradients and update a central model without waiting for one another. While this maximizes hardware utilization, it introduces staleness.

Asynchronous communication pattern in coordinate gradient descent.

As illustrated in the figure above, different workers (1 through 4) compute coordinate gradients at varying speeds. By the time a worker sends its gradient to the server, the global state may have been updated by other workers, leading to a delay in the information used for the update. SE-ACGD is specifically designed to remain stable and convergent under these conditions.

Methodology: SE-ACGD

The SE-ACGD algorithm relies on two innovative components to handle delays and saddle points:

1. The Hamiltonian Objective

To counteract the instability of asynchronous updates, the authors propose minimizing a Hamiltonian function rather than the raw objective function. The Hamiltonian is defined as a sum of "potential energy" (the function value) and "kinetic energy" (a term penalizing the distance between successive iterates). This construction acts as a Lyapunov function, ensuring that the total "energy" of the system decreases monotonically at each step, even when gradients are stale.

2. Perturbation Sub-routine (P-ACGD)

To escape saddle points, the algorithm employs a perturbation mechanism. When the Hamiltonian's rate of decrease falls below a certain threshold—indicating the iterate might be stuck in a flat region—the algorithm injects a small amount of random noise. If the current point is a saddle point, this perturbation is likely to push the iterate into a region with a significant downward slope, allowing the optimization to resume progress toward a local minimum.

Key Insights and Theoretical Results

The theoretical analysis of SE-ACGD yields several significant findings:

  • Sub-linear Delay Dependence: A major contribution of this work is the analysis of how parallelization delays affect convergence. The authors prove that SE-ACGD's convergence rate depends sub-linearly on the maximum delay, allowing it to significantly outperform synchronous methods in high-latency environments.
  • Dimension Independence: Similar to state-of-the-art synchronous methods, SE-ACGD achieves a poly-logarithmic convergence rate with respect to the dimension $d$. This ensures scalability to models with millions or billions of parameters.
  • Monotonicity via Physics: By borrowing the concept of a Hamiltonian from physics, the researchers provide a robust mathematical framework to "smooth out" the noise inherent in asynchronous updates.

Experimental Validation

The authors validated SE-ACGD using synthetic $d$-dimensional non-convex benchmarks designed with clear saddle points and local minima. In tests with dimensions ranging from $10^4$ to $10^7$, SE-ACGD demonstrated superior performance over synchronous baselines like Parallel Perturbed Gradient Descent. As artificial network delays were increased, the synchronous method's throughput dropped sharply due to waiting, whereas SE-ACGD maintained high progress, effectively "leaping ahead."

Conclusion and Future Work

SE-ACGD represents a milestone in non-convex optimization, providing the first local optima convergence result for an asynchronous first-order algorithm. While the current work establishes a strong theoretical foundation, future research will focus on incorporating Nesterov-style acceleration to further improve convergence rates and testing the algorithm on large-scale deep learning tasks such as Transformer training.

Summary updated

BibTeX
@misc{bornstein2022escaping,
  author = {Marco Bornstein and Jin-Peng Liu and Jingling Li and Furong Huang},
  title = {{Escaping From Saddle Points Using Asynchronous Coordinate Gradient Descent}},
  year = {2022},
  eprint = {2211.09908},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2211.09908},
}
Figure