Adaptive Communication Strategies to Achieve the Best Error-Runtime Trade-off in Local-Update SGD

Jianyu Wang, Gauri Joshi

TL;DR

Training large-scale machine learning models is often bottlenecked by the time it takes for worker nodes to communicate. This paper introduces ADACOMM, an adaptive strategy for distributed SGD that starts with infrequent communication to maximize training speed and gradually increases communication frequency to ensure high final accuracy, achieving up to a 3x speedup over traditional synchronous methods.

What Problem Does This Paper Address?

In distributed machine learning, Stochastic Gradient Descent (SGD) is typically run across many worker nodes. The standard approach is "fully synchronous SGD," where every worker must communicate its gradients after every single iteration. This creates two massive bottlenecks:

  1. Communication Overhead: Moving data between servers is much slower than computing on a GPU.
  2. The Straggler Problem: The entire system moves only as fast as its slowest node.

Researchers often use "Local-Update SGD" (or Periodic-Averaging SGD), where workers perform $\tau$ local updates before averaging their models. While this is faster per iteration, there is a catch: if $\tau$ is too large, the models on different workers drift too far apart, leading to a high "error floor" (the model stops getting better even if you train longer). This paper tackles the challenge of finding the "Goldilocks" communication frequency that balances training speed with final model precision.

Methods

The authors move away from analyzing error vs. iterations and instead focus on error vs. wall-clock time. Their core contribution is ADACOMM, which features:

  • Theoretical Runtime Modeling: They model computation and communication delays as random variables. This allows them to prove that local updates don't just save bandwidth—they also mitigate the impact of slow "straggler" nodes.
  • Optimal Communication Period: By analyzing the trade-off between speed and error, they derive a theoretical formula for the optimal communication interval ($\tau^*$).
  • Practical Adaptive Rule: Since theoretical constants (like the Lipschitz constant) are hard to measure in real-time, they propose a simplified update rule: $\tau_l \approx \sqrt{\frac{F(x_{lT_0})}{F(x_0)}} \tau_0$. Essentially, as the training loss ($F$) decreases, the communication interval ($\tau$) should also decrease.
  • Integration with Momentum: They adapt the strategy to work with "Block Momentum," ensuring that the adaptive communication doesn't interfere with the benefits of momentum-based optimization.

Datasets

The researchers evaluated their approach using two standard image classification benchmarks:

  • CIFAR-10: 50,000 training images across 10 classes.
  • CIFAR-100: 50,000 training images across 100 classes.

They tested these on two popular deep learning architectures: VGG-16 (which has high communication needs) and ResNet-50 (which is more computationally intensive).

Key Insights and Ideas

  • Wall-Clock Time is King: Most optimization papers focus on how many steps it takes to converge. This paper argues that if those steps take too long due to network lag, the algorithm isn't actually "fast."
  • The "Win-Win" Strategy: In the early stages of training, the model is far from the solution, and "noisy" infrequent communication is fine—it gets the model into the right neighborhood quickly. As the model nears the optimum, it needs "cleaner" frequent communication to settle into a high-accuracy state.
  • Straggler Mitigation: Local updates act as a buffer. By averaging less frequently, the system is less likely to be held up by a temporary spike in latency on a single worker node.
  • Analogy to Learning Rate: Decaying the communication interval ($\tau$) is conceptually similar to decaying the learning rate. Both are ways to reduce variance and "fine-tune" the model as it approaches convergence.

Key Results

  • 3.3x Speedup: On VGG-16 (CIFAR-10), ADACOMM reached the target training loss 3.3 times faster than fully synchronous SGD.
  • Better Generalization: In several tests, the adaptive method actually achieved higher final test accuracy than the fixed-interval or synchronous baselines within the same time budget.
  • Robustness: Even on ResNet-50, where communication is less of a bottleneck, ADACOMM still provided a 1.4x speedup. When combined with Block Momentum, this jumped to a 2x speedup for ResNet and 3.5x for VGG.

Limitations and Future Work

  • Initial Heuristics: The algorithm still requires a "starting" communication period ($\tau_0$), which the authors currently determine via a short grid search (running a few epochs to see what works).
  • Loss Monitoring: The adaptive rule relies on monitoring the training loss. While easy to do, it adds a small amount of overhead.
  • Topology Scoping: The current work focuses on a parameter-server or all-reduce style setup. The authors suggest that extending this logic to decentralized or "gossip-based" networks is a promising future direction.
  • Hyperparameter Sensitivity: While the square-root rule is robust, the "decay factor" ($\gamma$) used when training saturates is a manual setting that might need tuning for different hardware setups.

Summary updated

BibTeX
@inproceedings{wang2019adaptive,
  author = {Jianyu Wang and Gauri Joshi},
  title = {{Adaptive Communication Strategies to Achieve the Best Error-Runtime Trade-off in Local-Update SGD}},
  booktitle = {MLSys},
  year = {2019},
  url = {https://openreview.net/forum?id=l2atOpehUd6},
}
Figure