Rescaled Asynchronous SGD: Optimal Distributed Optimization under Data and System Heterogeneity

Ammar Mahran, Arto Maranjyan, Peter Richtárik

TL;DR

Rescaled Asynchronous SGD (ASGD) provides a remarkably simple fix for "objective inconsistency" in distributed learning. By scaling each worker's stepsize proportional to their computation time, the algorithm ensures that fast and slow workers contribute equally to the global model, achieving optimal convergence speeds without the memory or synchronization overhead of previous methods.

What Problem Does This Paper Address?

In distributed machine learning, we often use Asynchronous SGD (ASGD) to keep hardware busy. Unlike synchronous methods, where the server waits for every worker to finish before updating the model, ASGD allows the server to apply gradients as soon as they arrive.

However, ASGD runs into a major problem when data is heterogeneous (non-IID) and hardware is unbalanced (system heterogeneity). If Worker A has a high-end GPU and Worker B has an old CPU, Worker A will finish many more iterations in the same timeframe. In a standard ASGD setup, the global model will be "pulled" much more toward Worker A’s local data. This is known as objective inconsistency: the model doesn't minimize the average loss across all data; it minimizes a version biased toward the fastest workers.

Existing solutions usually involve "gathering phases" (waiting for a subset of workers) or "buffering" (storing gradients), both of which introduce idle time or heavy memory usage.

Methods

The authors propose Rescaled ASGD. The core idea is elegant: instead of changing the communication protocol, just change the stepsize ($\gamma_i$) for each worker $i$.

Specifically, they set the worker-specific stepsize to be proportional to that worker's computation time ($\tau_i$).

  • Fast workers (small $\tau_i$) take many small steps.
  • Slow workers (large $\tau_i$) take fewer, larger steps.

The authors define a "cycle" as the time it takes for the slowest worker to complete one update. By the end of a cycle, the "aggregate learning rate" contributed by every worker is equalized. This ensures the search trajectory targets the true global objective rather than a frequency-weighted surrogate.

The paper provides a rigorous theoretical analysis in the non-convex setting, showing that this method converges to stationary points and matches the theoretical lower bounds for wall-clock time complexity.

Datasets

The researchers evaluated their method using:

  • MNIST: The classic handwritten digit dataset.
  • Heterogeneous Setup: To simulate "maximal heterogeneity," they partitioned the data by label across 10 workers (e.g., Worker 1 only sees "0"s, Worker 2 only sees "1"s). This is a stress test for objective inconsistency, as a biased model would quickly forget how to recognize certain digits.

Key Insights and Ideas

  • The "Aggregate" Perspective: The primary conceptual shift is that asynchronous methods don't need to approximate the true gradient in every single iteration. As long as the global gradient step is approximated correctly when summed across workers and over time, the model will converge.
  • Vanilla ASGD is Implicitly Biased: The authors prove mathematically that Vanilla ASGD (with equal stepsizes) actually targets a "frequency-weighted average" of local objectives. If you know your hardware speeds, you can predict exactly how biased your model will be.
  • Staleness is a Second-Order Concern: A common fear in ASGD is "staleness" (using old model weights to compute gradients). This paper shows that in the leading term of time complexity, the effects of staleness and data heterogeneity are negligible; the arithmetic mean of computation times is what truly dictates the speed of progress.

Key Results

  • Optimal Complexity: Rescaled ASGD achieves a wall-clock time complexity of $O(\frac{\Delta L \sigma^2}{n \epsilon^2} \tau_A)$, where $\tau_A$ is the arithmetic mean of computation times. This matches the known lower bound for distributed optimization.
  • Robustness to Stragglers: In experiments with fluctuating computation times, Rescaled ASGD outperformed state-of-the-art baselines like Malenia SGD and Ringleader ASGD. Because those methods rely on "gathering phases," they are frequently bottlenecked by the slowest worker (stragglers), whereas Rescaled ASGD keeps moving unimpeded.
  • Accuracy: On the partitioned MNIST task, Rescaled ASGD successfully converged to the global objective, while unscaled versions remained biased toward the faster workers' data classes.

Limitations and Future Work

  • Harmonic Assumptions: The theoretical proof relies on "Harmonic Periods" (computation times being multiples of each other). While experiments show the method works fine with random, fluctuating times, the theory for the most general case is still an open area.
  • Step-size Tuning: The method requires knowing (or estimating) the computation times $\tau_i$ to set the stepsizes. In highly volatile cloud environments, accurately tracking these times in real-time could add implementation complexity.
  • Communication Efficiency: The paper focuses on optimization logic rather than communication compression. Combining rescaling with techniques like quantization or sparsification would be a logical next step for real-world federated learning applications.

Summary updated

BibTeX
@inproceedings{mahran2026rescaled,
  author = {Ammar Mahran and Arto Maranjyan and Peter Richtárik},
  title = {{Rescaled Asynchronous SGD: Optimal Distributed Optimization under Data and System Heterogeneity}},
  booktitle = {MusIML @ ICML},
  year = {2026},
  url = {https://openreview.net/forum?id=kB6Xx2QbPp},
}
Figure