Tight Time Complexities in Parallel Stochastic Optimization with Arbitrary Computation Dynamics

Alexander Tyurin

Introduction

In distributed machine learning, models are trained across multiple workers—such as GPUs, CPUs, or edge devices—using parallel or asynchronous stochastic gradient descent (SGD). Historically, theoretical analyses of these algorithms have relied on highly idealized assumptions, primarily that workers possess fixed, unchanging computation speeds and never disconnect.

In reality, distributed systems are chaotic. They suffer from computation heterogeneity: some workers are inherently faster, speeds fluctuate over time due to thermal throttling or shared workloads, and devices randomly drop offline due to network issues. This paper introduces a "universal computation model" that accounts for this real-world unpredictability, establishing tight theoretical lower bounds for optimization time complexity under arbitrary conditions.

Modeling Real-World Computation Chaos

To address the gap between theory and practice, the author asks a fundamental question: What is the absolute best time complexity we can achieve in distributed optimization when workers have arbitrary, unpredictable computation dynamics?

Examples of arbitrary computation dynamics modeled in the paper, including irregular, periodic, and random outage scenarios.

To tackle this, the paper introduces a novel theoretical framework:

  • The Universal Computation Model: Instead of assigning a fixed delay to each worker, the model represents each worker $i$ with a continuous "computation power" function $v_i(t)$ over time. Just as energy is the integral of power in physics, the number of stochastic gradients a worker can compute in a given time window is the integral of $v_i(t)$. This elegantly captures fixed speeds, periodic slowdowns, and random outages (where $v_i(t) = 0$).
  • Time Multiple Oracles Protocol: The analysis shifts from traditional oracle complexity (counting the number of gradient steps) to time complexity (measuring actual wall-clock time). This allows algorithms to asynchronously query different workers at different times.
  • Dynamic Worst-Case Constructions: To prove lower bounds, the author constructs dynamic "worst-case" functions. For heterogeneous setups (where workers have different data), the paper introduces a highly novel "resisting allocation" algorithm that dynamically assigns parts of the worst-case function to different workers on the fly, based on their fluctuating speeds.

Key Insights: Implicit Bounds and "Blind" Optimality

Because the computation power $v_i(t)$ can be literally any function, the resulting optimal time complexity bounds are implicit—defined via mathematical minimums of sets rather than simple closed-form equations. This is a necessary feature to capture true real-world unpredictability.

One of the most surprising takeaways is that optimal algorithms can achieve these tight lower bounds automatically. They do not need prior knowledge of the workers' computation powers or outage schedules to be optimal.

The paper also highlights a fundamental difference in scaling:

  • Homogeneous Scaling: When all workers share the same data, time complexity scales based on a "mean-like" aggregation of worker speeds. The paper proves that Rennala SGD matches the tight lower bound for this setup up to constant factors.
  • Heterogeneous Scaling: In federated learning scenarios where data is partitioned, complexity scales based on a harsher "harmonic-like" aggregation. This mathematically proves why heterogeneous data distribution is fundamentally harder to optimize asynchronously. Malenia SGD is shown to match the tight lower bound for this heterogeneous setup.

Explicit Formulas for Specific Scenarios

While the general bounds are implicit, the author provides explicit, readable formulas for specific real-world scenarios. For example, if workers experience "random outages," the optimal time complexity formula clearly shows how the frequency of outages acts as a bottleneck, and how the algorithm naturally ignores workers whose outage periods are too large.

Limitations and Future Directions

As acknowledged by the author, the implicit nature of the general lower bounds means they do not yield a single neat algebraic equation unless specific constraints (like fixed speeds or predictable periodic trends) are applied. However, they remain computationally easy to solve for specific functions using methods like bisection.

A fascinating open question for future research is determining optimal time complexities when a worker's computation power $v_i(t)$ is mathematically correlated with the randomness of the stochastic gradients it computes—for instance, if processing a particularly noisy batch of data inherently slows down the GPU.

Summary updated

BibTeX
@inproceedings{tyurin2025tight,
  author = {Alexander Tyurin},
  title = {{Tight Time Complexities in Parallel Stochastic Optimization with Arbitrary Computation Dynamics}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=cUN8lJB4rD},
}
Figure