Do We Need Asynchronous SGD? On the Near-Optimality of Synchronous Methods
Listen
Radio episode about this paper
Transcript
Introduction to the show: ident: AI Radio. Generated commentary on the latest Artificial Intelligence papers.
Tom: We're looking at the paper: "Do We Need Asynchronous SGD? On the Near-Optimality of Synchronous Methods".
Jane: The gist The synchronous methods are nearly optimal in many heterogeneous computation scenarios, which suggests they may be sufficient for many modern settings despite recent progress in asynchronous optimization.
Tom: First, who's behind it and why it matters.
Title and authors: Tom: So we're talking about this paper called "Do We Need Asynchronous SGD? On the Near-Optimality of Synchronous Methods". It sounds like they're arguing that synchronous methods aren't as bad as people think, especially when things get messy with different worker speeds.
Jane: Right, it seems to be tackling the idea that synchronous methods might still be quite good even when you have these unpredictable computation times. But what’s the big picture here for us?
Lu: The paper's focus is on showing that synchronous SGD and its variant, m-Synchronous SGD, can stay nearly optimal in many heterogeneous computation scenarios. This is a bit surprising because we usually think asynchronous methods are better when things get unpredictable.
Lu: The main point is that under Assumption two point two, which deals with arbitrary heterogeneous worker computation times, m-Synchronous SGD Algorithm three is nearly optimal up to a log(n plus one) factor <ref:2602.03802#pg1>. That’s a pretty strong result for handling unpredictable hardware performance.
Lu: They extended the result to Assumption three point one, where worker computation times are random, and they show that m-Synchronous SGD Algorithm three is nearly optimal up to a bound Trand equal to k P minus one k equals zero max i in m tau bar k i seconds <ref:2602.03802#pg3>.
The paper's summary: Tom: So we just talked about how m-Synchronous SGD handles heterogeneity, and now Jane, what's the actual big picture they're driving with this paper?
Jane: Well, basically they’re saying that for many real-world setups where your hardware is all over the place—different workers taking different amounts of time—synchronous methods aren't totally broken anymore. They show that m-Synchronous SGD stays nearly optimal even when those computation times are arbitrary and unpredictable.
Lu: Arbitrary means what exactly? I mean, if one worker suddenly takes ten times longer than the rest, does the whole thing grind to a halt, or does this method just keep going?
Tom: It keeps going. The paper proves that m-Synchronous SGD remains nearly optimal up to a log of n plus one factor for any arbitrary heterogeneity in worker computation times under assumption two point two. That's a pretty strong statement about its robustness.
Jane: A log of n plus one factor is something you can usually tolerate in production, right? What’s the trade-off there?
Lu: The time complexity proof for standard Synchronous SGD is O(tau n max n L delta over epsilon sigma squared L delta over n epsilon squared o (one) seconds under standard assumptions. Asynchronous methods like Renala SGD have a different optimal time Toptimal equal to theta min m in n (one over m P m i equals one over tau i minus one max n L delta over epsilon sigma squared L delta m epsilon squared o (<ref:2602.03802#pg1>!)).
Tom: So they’re comparing these two complexity expressions, and the key thing is that under their specific assumptions, the synchronous version is competitive with those asynchronous optimal bounds. That's what I need to see on paper.
Jane: Exactly. And they also looked at a scenario where the worker computation times are actually random, not just fixed differences between workers. They show that m-Synchronous SGD is nearly optimal up to a bound Trand equal to k P minus one k equals zero max i in m tau bar k i seconds <ref:2602.03802#pg3>.
Jane: So what does this actually mean for someone who just runs an AI training pipeline? Does it mean I can stop worrying as much about perfect worker timing?
Lu: It means you might be able to rely on m-Synchronous SGD without completely switching over to a fully asynchronous method, especially if your variance isn't astronomical.
Jane: So the main thing is that for many modern AI setups, using m-Synchronous SGD gives you near-optimal speed while still being robust to unpredictable worker performance. But they also warn us there are still specific situations—like when computation times change really fast or variance is huge—where you absolutely need those fully asynchronous methods because the synchronous waiting would be too slow.
Tom: So it’s not a one-size-fits-all solution; it’s a powerful tool that works well most of the time, but you still gotta know when to switch gears. That sounds like practical advice for deploying these kinds of models at scale.
Jane: Exactly. And so the paper, "Do We Need Asynchronous SGD? On the Near-Optimality of Synchronous Methods," shows that synchronous methods have a lot more staying power than we thought when dealing with unpredictable hardware, and it’s giving us concrete rules on how to use m-Synchronous SGD.
The paper's improvements: Tom: So we’ve seen how m-Synchronous SGD handles heterogeneity, and now Jane, what about the practical tweaks they suggest to make this work even better?
Jane: They aren't just happy with the basic formulation; they actually propose a few ways to make m-Synchronous SGD more efficient and adaptable. It seems like they’re looking at how we can tune it for different noise levels.
Lu: Exactly. Proposition four point one shows that you need to minimize a function g of m, which is defined as tau m max n one over sigma squared m epsilon o (eight) <ref:2602.03802#pg2>. That means the optimal number of active workers depends on your noise level and your variance in the system.
Tom: So we get to select our worker count based on how noisy our data or hardware is? That sounds like a real engineering decision for deployment.
Jane: It is, and they show that this selection strategy helps you minimize h of m equal to tau m over m, which they found is minimized when m is less than or equal to sigma squared over epsilon <ref:2602.03802#pg2>. That’s another way to tune it based on the time versus worker count trade-off.
Lu: That means there are two different ways to think about choosing how many workers to activate for m-Synchronous SGD, depending on whether you focus more on variance or the raw time per worker.
Tom: It sounds like they’re giving us a clear strategy for tuning the system parameters before we even start training. That’s a huge plus for managing computational costs at scale.
Jane: And they also pointed out that empirical experiments show synchronous SGD is actually fast and yields better accuracy in many regimes, so these theoretical bounds are grounded in what we actually see when we run the code.
Lu: They confirmed that either Synchronous SGD or m-Synchronous SGD performs well under heterogeneous computation times and converges comparably to the optimal asynchronous methods like Renala SGD.
Tom: So they’re basically saying, for most modern settings, sticking with a synchronous approach might actually be better than jumping straight to an asynchronous one. But they still keep that warning about when asynchronicity is non-negotiable.
Jane: Right, so the paper’s improvement is giving us concrete rules—based on noise and variance—on how to select our worker count for m-Synchronous SGD to keep it performing optimally. It’s moving from just theory to a more actionable deployment guide.
Conclusion: Tom: So we’ve covered how m-Synchronous SGD handles hardware variation and how you can tune it based on noise, and now Jane, let’s wrap up this whole thing about "Do We Need Asynchronous SGD? On the Near-Optimality of Synchronous Methods."
Jane: Yeah, the big picture here is that synchronous methods aren't obsolete. They are nearly as fast as asynchronous methods in a lot of real-world scenarios when you use smart variants like m-Synchronous SGD.
Lu: I’d just add that they proved this holds under arbitrary heterogeneous computation assumptions, which is pretty ambitious for distributed training work.
Tom: Ambitious is one word for it. But the takeaway for us engineers is that we can rely on a synchronous approach if we use m-Synchronous SGD and tune our worker count based on our specific system noise levels.
Jane: It’s important to remember the caveat they laid out—asynchronicity is still necessary when things change really fast or when variance gets huge, because the synchronous waiting time becomes too costly.
Meng: From a production standpoint, this gives us a lot of confidence to try and stick with synchronous setups unless we see specific signs that asynchronous methods are genuinely needed for adaptation speed.
Lu: I think the selection strategy they detailed, minimizing g of m and h of m and is where the real practical value lies. It’s not just about running one or the other; it's about optimizing which variant to use based on your specific setup parameters.
Tom: So we’re looking at tuning parameters instead of just picking a single algorithm, which makes sense for building scalable systems.
Jane: Exactly. And so the paper, "Do We Need Asynchronous SGD? On the Near-Optimality of Synchronous Methods," shows that synchronous methods have a lot more staying power than we thought when dealing with unpredictable hardware.
Lu: I’m just glad to see this result because it validates trying to keep things simpler in many high-performance training scenarios.
Meng: Yeah, it gives us a better baseline for what we can expect from our current setups before we start chasing the complexity of fully asynchronous systems.
Lalam: I'm confident in this direction because the results align with what my own internal simulations are showing about gradient flow stability under these conditions.
Lomonosov Moscow State University · Moscow State University
cs.DC, cs.AI, cs.NA, math.NA, math.OC
Submitted: 2026-02-03
Updated: 2026-10-19
Code: https://github.com/karpathy/nanoGPT
License: http://arxiv.org/licenses/nonexclusive-distrib/1.0/
Importance score: 86/100
The gist: The gist The synchronous methods are nearly optimal in many heterogeneous computation scenarios, which suggests they may be sufficient for many modern settings despite recent progress in asynchronous
Key concepts
- Synchronous SGD
- In this method, every worker must finish calculating a stochastic gradient before the next iteration begins. The main drawback is that the entire process is limited by the slowest worker, causing idle time or 'bubbles' in computation.
- Asynchronous SGD
- Asynchronous methods allow workers to update the model immediately upon finishing their local calculation, without waiting for others. This avoids straggler delays but introduces complexity in managing stale gradients and updating iterates.
- m-Synchronous SGD
- This variant allows the system to ignore a subset of workers (stragglers), focusing only on the fastest 'm' workers. By strategically selecting these active workers, it achieves near-optimal performance even under significant hardware differences.
- Heterogeneous Computation
- This refers to scenarios where different computational units (workers) have varying processing times. The paper explores how optimization methods perform when these computation times are unpredictable or significantly different across the network.
Summary
The gist The synchronous methods are nearly optimal in many heterogeneous computation scenarios, which suggests they may be sufficient for many modern settings despite recent progress in asynchronous optimization.
Synchronous and Asynchronous Methods
Synchronous SGD, where all workers calculate one stochastic gradient each iteration, has a clear disadvantage because it waits for the slowest worker, leading to “bubbles” in computation and idle workers The method has a clear disadvantage: in every iteration, it waits for the slowest worker, leading to “bubbles” in computation and idle workers (see Figure 1). Asynchronous SGD immediately updates the iterate once a stochastic gradient is received from any worker The main idea is that, instead of waiting for all workers, Al1.
Time Complexities and Near-Optimality
The paper shows that Synchronous SGD and m-Synchronous SGD can remain nearly optimal despite the presence of “bubbles” under different heterogeneous computation assumptions One proof demonstrates that the time complexity of Synchronous SGD (Algorithm 1) is O(τn max n L∆/ε, σ2L∆/nε2 o (1)) seconds under standard assumptions In contrast, the time complexity of asynchronous methods like Rennala SGD and Asynchronous SGD is Toptimal:= Θ min m∈[n] (1/m P m i=1 1/τi - 1 max n L∆/ε, σ2L∆ mε2 o (!)) which is also optimal
Robustness to Heterogeneity and Randomness
The paper establishes that mSynchronous SGD (Algorithm 3) is nearly optimal up to a log(n+1) factor for arbitrary heterogeneous worker computation times under Assumption 2.2 Furthermore, when computation times are random, the time complexity of Algorithm 3 is at most Trand:= K P-1 k=0 max i∈[m] τ¯k,i seconds This result holds for many practical settings and even under adversarial participation
Optimal Selection of Active Workers
To obtain nearly optimal time complexities for mSynchronous SGD (Algorithm 3), one must minimize g(m):= τm max n 1/σ2 mεo (8) Proposition 4.1 states that g(m) is minimized with m ≤ min σ2/ε, n This suggests that the optimal number of active workers depends on the noise level and variance, allowing for a selection strategy based on minimizing h(m):= τm/m
Practical Implications
In practice, empirical evidence shows that Synchronous SGD is actually fast and yields better accuracy in many regimes The experiments confirm that either Synchronous SGD or m-Synchronous SGD performs well under heterogeneous computation times and converges comparably to the optimal Asynchronous SGD and Rennala SGD methods The authors conclude that engineers implement various optimization and caching tricks to speed up synchronization, which can potentially mitigate the constant and log n factor losses relative to asynchronous methods
When Asynchronicity Might Be Needed
Asynchronicity might be needed in scenarios such as rapid changes in computation times or when large variance is present, where the R term in the complexity analysis might dominate For instance, if a worker suddenly becomes infinitely fast, asynchronous methods can adapt immediately while synchronous methods wait for all workers
Conclusion
The work provides theoretical evidence that synchronous methods are nearly as fast as modern asynchronous methods in many heterogeneous computational scenarios The authors conclude that Synchronous SGD and m-Synchronous SGD are nearly optimal in a wide range of heterogeneous computation settings, which may be sufficient in practice The paper demonstrates that synchronous methods are not a silver bullet, and there are several scenarios where asynchronous methods are still needed
References
Arjevani, Y., Carmon, Y., Duchi, J. C., Foster, D. J., Sekhari, A., and Sridharan, K. Second-order information in nonconvex stochastic optimization: Power and limitations
Barreto, M., Marchal, O., and Arbel, J. Optimal subgaussian variance proxy for truncated gaussian and exponential random variables
Boucheron, S., Lugosi, G., and Bousquet, O. Concentration inequalities
Carmon, Y., Duchi, J. C., Hinder, O., and Sidford, A. Lower bounds for finding stationary points i. Mathematical Programming
Chen, J., Pan, X., Monga, R., Bengio, S., and Jozefowicz, R. Revisiting distributed synchronous SGD
Cohen, A., Daniely, A., Drori, Y., Koren, T., and Schain, M. Asynchronous stochastic optimization robust to arbitrary delays
Dutta, S., Joshi, G., Ghosh, S., Dube, P., and Nagpurkar, P. Slow and stale gradients can win the race: Errorruntime trade-offs in distributed SGD
Feyzmahdavian, H. R., Aytekin, A., and Johansson, M. An asynchronous mini-batch algorithm for regularized stochastic optimization
Grattafiori, A., Dubey, A., Jauhri, A., Pandey, A., Kadian, A., Al-Dahle, A., Letman, A., Mathur, A., Schelten, A., Vaughan, et al. The llama 3 herd of models
Jordan, K., Jin, Y., Boza, V., Jiacheng, Y., Cesista, F., Newhouse, L., and Bernstein, J. Muon: An optimizer for hidden layers in neural networks
Konecnˇ y, J., McMahan, H. B., Yu, F. X., Richt ´ arik, P., ´ Suresh, A. T., and Bacon, D. Federated learning: Strategies for improving communication efficiency
Krizhevsky, A., Hinton, G., et al. Learning multiple layers of features from tiny images
Lan, G. First-order and stochastic optimization methods for machine learning
Lian, X., Huang, Y., Li, Y., and Liu, J. Asynchronous parallel stochastic gradient for nonconvex optimization
Maranjyan, A. and Richtarik, P. Ringleader ASGD: The first Asynchronous SGD with optimal time complexity under data heterogeneity
Maranjyan, A., Omar, O. S., and Richtarik, P. MindFlayer ´ SGD: Efficient parallel SGD in the presence of heterogeneous and random worker compute times
McMahan, H. B., Moore, E., Ramage, D., and y Arcas, B. A. Federated learning of deep networks using model averaging
Mishchenko, K., Bach, F., Even, M., and Woodworth, B. Asynchronous SGD beats minibatch SGD under arbitrary delays
Mitliagkas, I., Zhang, C., Hadjis, S., and Re, C. Asynchrony ´ begets momentum, with an application to deep learning
Tyurin, A. Tight time complexities in parallel stochastic optimization with arbitrary computation dynamics
Tyurin, A. and Richtarik, P. Optimal time complexities of parallel stochastic optimization methods under a fixed computation model
Tyurin, A. and Richtarik, P. On the optimal time complex- ities in decentralized stochastic asynchronous optimization
Tyurin, A. and Sivtsov, D. Birch SGD: A tree graph framework for local and asynchronous sgd methods
Vershynin, R. High-dimensional probability: An introduction with applications in data science, volume 47. Cambridge university press
--- Page 1 ---
The gist The synchronous methods are nearly optimal in many heterogeneous computation scenarios, which suggests they may be sufficient for many modern settings despite recent progress in asynchronous optimization.
Synchronous and Asynchronous Methods
Synchronous SGD, where all workers calculate one stochastic gradient each iteration, has a clear disadvantage because it waits for the slowest worker The same problem applies to the synchronous ADAM and Muon methods Asynchronous SGD immediately updates the iterate once a stochastic gradient is received from any worker
Time Complexities and Near-Optimality
The paper shows that Synchronous SGD and m-Synchronous SGD can remain nearly optimal despite the presence of “bubbles” under different heterogeneous computation assumptions One proof demonstrates that the time complexity of Synchronous SGD (Algorithm 1) is O(τn max n L∆/ε, σ2L∆/nε2 o (1)) seconds under standard assumptions In contrast, the time complexity of asynchronous methods like Rennala SGD and Asynchronous SGD is Toptimal:= Θ min m∈[n] (1/m P m i=1 1/τi - 1 max n L∆/ε, σ2L∆ mε2 o (!
Improvements for AI systems
- Bold header: Maximizing Worker Utilization via m-Synchronous SGD
By implementing m-Synchronous SGD (Algorithm 3), AI systems can be designed to ignore stragglers, as it is a robust version of it that ignores n − m stragglers,
leading to a time complexity that is "optimal for all p < 0.4" under partial participation assumptions.
- Bold header: Robustness in Heterogeneous Computation Models
AI training pipelines can be made resilient to unpredictable hardware performance by using m-Synchronous SGD, which remains nearly optimal up to a log(n + 1) factor for arbitrary heterogeneous worker computation times
(Theorem 2.3).
- Bold header: Adaptive Worker Selection Based on Variance
The system can dynamically adjust its active worker set based on the required precision, as mSynchronous SGD is robust and that its performance is comparable to that of the asynchronous methods
across various noise regimes in numerical experiments (Figure 10).
Sources
- Revisiting Distributed Synchronous SGD
- The Llama 3 Herd of Models
- Adam: A Method for Stochastic Optimization
- Federated Learning: Strategies for Improving Communication Efficiency
- Ringleader ASGD: The First Asynchronous SGD with Optimal Time Complexity under Data Heterogeneity
- Communication-Efficient Learning of Deep Networks from Decentralized Data
- Asynchronous SGD Beats Minibatch SGD Under Arbitrary Delays
- Horovod: fast and easy distributed deep learning in TensorFlow
- Megatron-LM: Training Multi-Billion Parameter Language Models Using Model Parallelism
- Birch SGD: A Tree Graph Framework for Local and Asynchronous SGD Methods
Related papers
- iScheduler: Reinforcement Learning-Driven Continual Optimization for Large-Scale Resource Investment Problems
- Load Balancing with Evolving Workloads in Large-Scale Language Model Serving
- SAMM: Sharded Automated Market Maker
- InferScale: GPU-Native KV Injection for Personalized LLM Serving
- Vigil: Accountable Liveness against Selective Silence
- Steelhead: Interleaving Partially Synchronous and Asynchronous Commit Rules on a Shared DAG