Modern distributed optimization methods mostly rely on traditional synchronous approaches, despite substantial recent progress in asynchronous optimization. We revisit Synchronous SGD and its robust variant, called m-Synchronous SGD, which can be interpreted as a method with a backup-worker strategy, and theoretically show that they are nearly optimal in many heterogeneous computation and communication scenarios, which is somewhat unexpected. We analyze the synchronous methods under random times and adversarial partial participation of workers, and prove that their time complexities are optimal in many practical regimes, up to logarithmic factors. While synchronous methods are not universal solutions and there exist tasks where asynchronous methods may be necessary, we show theoretically that they are sufficient for many modern heterogeneous computation and communication scenarios.
Figures & tables
Figure 1Figure 2Figure 3
Appendix figures & tables14 assets
Supplementary material from the paper’s appendix.
Appendix
Notation
Meaning
R+
Denotes [0,∞).
[n]
Denotes a finite set {1,…,n} .
∥x∥
Euclidean norm of a vector x .
g=O(f)
There exists C>0 such that g(z)≤Cf(z) for all z∈Z .
g=Ω(f)
There exists C>0 such that g(z)≥Cf(z) for all z∈Z .
g=Θ(f)
There exist C1,C2>0 such that C1f(z)≤g(z)≤C2f(z) for all z∈Z .
Appendix
Table 1: List of notations used throughout the paper.
Figure 6: Q-Q Plot of the data from Section N versus a normal distribution.
Figure 7: Comparison of the methods on the quadratic optimization problem under different computation time scenarios and noise levels.
Figure 8: Comparison of the methods on the quadratic optimization problem with different number of workers ( p=0.01,τi=i ).
Figure 9: Comparison of the methods on a quadratic optimization problem with different types of random computation times. We take p=0.01 , n=1000 , and τi=i . Three noise regimes are considered: (i) no noise in the first row; (ii) weak noise in the second row; and (iii) stronger noise in the third row. In the first column, we sample computation times from the truncated normal distribution. In the second column, from the gamma distribution. In the third column, from the uniform distribution.
Figure 10: Comparison of the methods on a quadratic optimization problem with different types of random computation times. We take p=0.01 , n=1000 , and τi=i . Three noise regimes are considered: (i) no noise in the first row; (ii) weak noise in the second row; and (iii) stronger noise in the third row. In the first column, we sample computation times from the truncated normal distribution. In the second column, from the gamma distribution. In the third column, from the uniform distribution.
Figure 11: Comparison of the methods on the quadratic optimization problem with the same mean τi=1 and uniform noise ( p=0.01,τi=1,n=1000 ). In these experiments, for all methods, we choose the best step size from the set {2−16,…,2−2,2−1,1,1.2,1.6,1.8,2}.
Figure 12: Experiments with the CIFAR-10 dataset ( n=1000 ). Each row corresponds to a fixed noise level. The first column corresponds to function values, while the second column corresponds to accuracies.
Figure 13: Experiments with the CIFAR-10 dataset ( n=1000 ). Each row corresponds to a fixed noise level. The first column corresponds to function values, while the second column corresponds to accuracies.
Figure 14: Experiments with the MNIST dataset ( n=1000 ). Each row corresponds to a fixed noise level. The first column corresponds to function values, while the second column corresponds to accuracies.
Figure 15: Experiments with the MNIST dataset ( n=1000 ). Each row corresponds to a fixed noise level. The first column corresponds to function values, while the second column corresponds to accuracies.
Figure 16: Training and validation losses versus measured wall-clock time for Synchronous SGD (Algorithm 1 ) and Asynchronous SGD (Algorithm 2 ) in NanoGPT, using 4 workers. We run the experiments with 3 seeds and plot the error bars.
Distributed optimization coordinates computation across multiple agents or machines while balancing convergence, communication, privacy, and reliability.