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

An Asynchronous Mini-Batch Algorithm for Regularized Stochastic Optimization

Hamid Reza Feyzmahdavian, Arda Aytekin, Mikael Johansson

TL;DR

This paper introduces an asynchronous mini-batch algorithm for large-scale machine learning that eliminates the "straggler problem" by allowing worker nodes to update a global model without waiting for one another. The authors prove that even when using "stale" gradients from slower workers, the algorithm achieves the same optimal convergence rates as serial methods, enabling near-linear speedup in distributed environments.

What Problem Does This Paper Address?

In large-scale machine learning, we often distribute data across multiple computers (workers) to speed up training. The standard approach is parallel mini-batching, where every worker computes a gradient on a small slice of data, and then they all synchronize to update the master model.

The bottleneck is synchronization. If one computer is slightly slower—due to hardware differences, network lag, or background tasks—every other worker sits idle waiting for it. This is known as the "straggler problem." To solve this, researchers have looked toward asynchronous algorithms where workers can read the current model, compute a gradient, and apply it whenever they are ready, even if the model has changed in the meantime. However, providing rigorous mathematical proof that these "stale" updates won't lead to divergence or significantly slower training has been a major challenge, especially for regularized problems (like those using Lasso or $l_1$ penalties).

Methods

The authors propose an Asynchronous Mini-Batch Algorithm based on the composite mirror descent framework.

Key features include:

  • Lock-Free/Atomic Updates: Workers read the decision variable $x$ from shared memory, compute an averaged gradient over a mini-batch of size $b$, and then perform an atomic update.
  • Handling Stality: The algorithm explicitly accounts for the delay $\tau$, which represents how many updates occurred while a specific worker was busy computing its gradient.
  • Flexible Geometry: By using Bregman distance functions (prox-functions) instead of standard Euclidean distance, the algorithm can be tailored to the specific geometry of the problem's constraints (e.g., using the entropy function for probability simplex constraints).
  • Step-size Strategies: They provide specific formulas for both constant and time-varying step-sizes that "dampen" the potential instability caused by asynchronous delays.

Datasets

The researchers evaluated their algorithm using the rcv1 (Reuters Corpus Volume 1) dataset.

  • Scale: Approximately 800,000 documents with 50,000 unique tokens.
  • Task: Sparse binary classification (identifying sports-related documents) using $l_1$-regularized logistic regression.
  • Setup: A master-worker implementation using OpenMPI.

Key Insights and Ideas

  • Asynchrony is "Free" (Asymptotically): The most significant insight is that as long as the maximum delay ($\tau_{max}$) is bounded, its impact on the convergence rate eventually becomes negligible. The "noise" from the stochastic gradients eventually outweighs the "noise" from the delays.
  • Sharper Bounds: Previous work suggested that delays might significantly degrade performance. This paper provides tighter mathematical bounds, showing that for general convex functions, the rate is $O(1/\sqrt{T})$, and for strongly convex functions, it is $O(1/T)$—matching the best possible rates for serial algorithms.
  • Near-Linear Speedup: Because workers never wait, adding more processors results in a nearly proportional increase in the number of updates per second without sacrificing the quality of each update.

Key Results

  • Theoretical Convergence: The authors proved that for strongly convex problems, the algorithm converges at a rate of $O(\frac{\tau_{max}^4}{T^2} + \frac{1}{T})$. As $T$ (iterations) grows, the first term (the delay penalty) vanishes much faster than the second term.
  • Empirical Speedup: In real-world tests on the rcv1 dataset, the algorithm demonstrated a near-linear relative speedup. For example, using 10 workers resulted in a speedup factor of nearly 9x compared to a single worker (see Figure 2 in the paper).
  • Robustness: The algorithm successfully handled the non-smooth $l_1$ regularization term, which is commonly used to produce "sparse" models (models where many parameters are zero).

Limitations and Future Work

  • Bounded Delay Assumption: The theoretical proofs rely on the assumption that there is a maximum delay $\tau_{max}$. In extremely unstable distributed systems where a worker might hang indefinitely, this assumption might be violated.
  • Smooth Loss Requirement: The current analysis assumes the loss function (the part of the objective without the regularization) is smooth (has Lipschitz continuous gradients). Extending this to non-smooth loss functions remains a challenge.
  • Communication Overhead: While the algorithm eliminates waiting, it still requires frequent communication between workers and the master. In very high-latency networks, the cost of sending gradients might eventually limit the speedup.

Summary updated

BibTeX
@article{feyzmahdavian2016asynchronous,
  author = {Hamid Reza Feyzmahdavian and Arda Aytekin and Mikael Johansson},
  title = {{An Asynchronous Mini-Batch Algorithm for Regularized Stochastic Optimization}},
  journal = {IEEE Trans. Automatic Control},
  year = {2016},
  url = {https://openreview.net/forum?id=pQLhkBHJOkW},
}
Figure