Accelerated Stochastic Mirror Descent: From Continuous-time Dynamics to Discrete-time Algorithms

Pan Xu, Tianhao Wang, Quanquan Gu

Introduction

First-order stochastic optimization algorithms, such as Stochastic Gradient Descent (SGD) and Stochastic Mirror Descent (SMD), are the workhorses of modern machine learning. To enhance their efficiency, researchers often employ "acceleration" techniques, most notably Nesterov's momentum. While these methods achieve theoretically optimal convergence rates, their discrete-time update formulas can often appear as "black magic"—mathematically complex and lacking a clear physical or intuitive basis.

This paper bridges the gap between continuous-time physical dynamics and discrete-time optimization. By modeling accelerated SMD as a stochastic differential equation (SDE), the authors provide a principled framework for understanding acceleration and deriving new, intuitive algorithms that maintain optimal convergence properties.

A Physics-Inspired Framework

The authors' approach begins with the Bregman Lagrangian, a functional that treats optimization as a mechanical system aimed at minimizing "action" over time. To adapt this to the stochastic setting, they introduce a diffusion term (Brownian motion) to represent the noise inherent in stochastic gradients.

The Continuous-Time SDE

A critical challenge in stochastic acceleration is that noise can compound over time, potentially destabilizing the system. To counteract this, the proposed SDE incorporates a time-decaying shrinkage parameter. This parameter dampens the adverse effects of stochastic noise, ensuring the system remains stable and converges toward the global minimum. Using Lyapunov analysis—a method for proving stability by showing a decrease in a system's "energy"—the authors demonstrate that their continuous-time dynamics achieve an optimal expected convergence rate.

From Continuous Dynamics to Practical Algorithms

Translating the continuous-time SDE into practical code requires careful discretization. The authors explore three primary schemes:

  1. Implicit Euler: While theoretically robust, it requires solving an exact minimization problem at each step, making it computationally impractical.
  2. Accelerated Stochastic Mirror Descent (ASMD): A hybrid approach combining implicit and explicit steps. It is easy to implement and highly practical.
  3. ASMD3: An extension of ASMD that includes an additional sequence. This modification ensures the algorithm gracefully reduces to the optimal deterministic convergence rate ($O(1/k^2)$) when gradient noise is absent.

Empirical Evaluation

The proposed algorithms were evaluated using a synthetic linear regression task ($n=100, d=200$). The experiments tested two distinct constraint settings:

  • Setting (1): Projection onto an $L_2$ norm ball using squared Euclidean distance.
  • Setting (2): Projection onto a probability simplex using negative entropy (Kullback-Leibler divergence).
Convergence performance in Setting (1): L2 norm ball constraint.
Convergence performance in Setting (2): Probability simplex constraint.

Key Results

The theoretical analysis shows that ASMD and ASMD3 achieve the optimal convergence rate of $O(1/k^2 + \sigma/\sqrt{k})$, where $\sigma^2$ represents the variance of the stochastic gradient. Empirically, as shown in the figures above, ASMD and ASMD3 significantly outperform standard SMD and remain competitive with state-of-the-art methods like AC-SA. Notably, ASMD3 demonstrates superior stability and speed across both Euclidean and non-Euclidean geometries.

Conclusion and Future Directions

This work demonstrates that physics-based modeling provides a powerful blueprint for optimization. By viewing acceleration through the lens of Lagrangian mechanics and SDEs, the authors demystify complex acceleration techniques and provide a systematic way to derive new algorithms.

While the results are promising, the current framework relies on the assumption of convexity. Extending these continuous-time dynamics to non-convex landscapes, such as those found in deep neural networks, remains a significant area for future research.

Summary updated

BibTeX
@inproceedings{xu2018accelerated,
  author = {Pan Xu and Tianhao Wang and Quanquan Gu},
  title = {{Accelerated Stochastic Mirror Descent: From Continuous-time Dynamics to Discrete-time Algorithms}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2018},
}
Figure