Constant step-size stochastic approximation with delayed updates

Aditya Mahajan, Silviu-Iulian Niculescu, Mathukumalli VidyasagarCDC 2024

Stochastic approximation (SA) is a cornerstone of modern machine learning, yet its standard theory often overlooks the impact of feedback delays. This paper introduces a "DDE approach," demonstrating that delayed SA tracks a Delay-Differential Equation (DDE) rather than a standard Ordinary Differential Equation (ODE). Through theoretical analysis and numerical simulations, the authors reveal how delay fundamentally alters algorithm dynamics, typically acting as a destabilizing force but occasionally offering surprising stabilizing effects in multi-delay systems.

Introduction

Stochastic approximation (SA) serves as the mathematical engine for a wide array of applications, from reinforcement learning (RL) to adaptive control. Traditionally, SA theory assumes instantaneous feedback: an update is made, and its noisy result is immediately available. However, real-world systems—such as distributed computing clusters, financial markets, or biological networks—frequently encounter processing or communication delays. While the "ODE approach" is the standard for analyzing constant step-size SA, it fails to account for these delays. This research addresses this gap by asking: how does a constant processing delay affect the convergence and stability of these algorithms?

The DDE Approach

The authors extend the classic ODE framework to a novel "DDE approach." In standard SA, the algorithm is modeled as a noisy Euler discretization of an ODE ($\dot{\theta}(t) = f(\theta(t))$). When updates are delayed by $d$ discrete steps, the continuous-time limit shifts to a Delay-Differential Equation:

$$\dot{\theta}(t) = f(\theta(t - \tau))$$

where the continuous-time delay $\tau$ is defined as the product of the discrete delay $d$ and the learning rate $\alpha$. By constructing continuous-time processes that interpolate the discrete iterates, the authors prove that the mean-squared distance between the algorithm's path and the DDE trajectory is bounded by $\mathcal{O}(\sqrt{\alpha})$.

The Destabilizing Effect of Delay

Introducing delay does more than just slow down convergence; it fundamentally changes the system's dynamics. The algorithm inherits the complex behaviors of DDEs, including oscillations and potential instability. In systems with a single delay, increasing the delay generally pushes the system toward divergence. There exists a critical threshold—a product of the learning rate and the delay—beyond which the algorithm will fail to converge.

Evolution of iterates for various delays, showing the transition from stability to divergence.

Numerical Results and Thresholds

The theoretical findings are supported by synthetic numerical simulations. For instance, with a learning rate of $\alpha=0.1$, the researchers identified a sharp stability threshold. A delay of $d=6$ allows the system to remain stable and converge to zero, albeit with significant oscillations. However, increasing the delay to $d=7$ causes the system to violently diverge, matching the theoretical stability bounds derived from the DDE's characteristic roots.

Comparison of stability at d=6 and divergence at d=7, highlighting the sharp threshold predicted by theory.

The Surprising Stabilizing Effect of Multi-Delay

One of the paper's most counterintuitive insights is that in systems with multiple delay paths, increasing delay can sometimes stabilize an otherwise unstable system. The authors illustrate this using an "edge vs. cloud" computing model. By combining fast but noisy updates from the edge with slow but precise updates from the cloud, specific "bands" of delay values emerge that guarantee stability. For example, a 2D system might be stable for delays $\tau \in [0, 3.4)$ and then again for $\tau \in (6.9, 9.0)$, with a region of instability in between.

Conclusion and Future Directions

While this work provides a robust framework for understanding delayed SA, it relies on the technical assumption of "uniform integrability" for the iterates. Future research aims to generalize the "scaled ODE approach" to the DDE setting, which would provide more practical, verifiable conditions to ensure stability without assuming it a priori. This would further bridge the gap between theoretical DDE analysis and the practical implementation of delayed learning algorithms.

Summary updated

BibTeX
@inproceedings{mahajan2024constant,
  author = {Aditya Mahajan and Silviu-Iulian Niculescu and Mathukumalli Vidyasagar},
  title = {{Constant step-size stochastic approximation with delayed updates}},
  booktitle = {CDC},
  year = {2024},
  doi = {10.1109/cdc56724.2024.10886824},
}
Figure