Skip to main content
QUICK REVIEW

[Paper Review] SlowMo: Improving Communication-Efficient Distributed SGD with Slow Momentum

Jianyu Wang, Vinayak Tantia|arXiv (Cornell University)|Oct 1, 2019
Stochastic Gradient Optimization TechniquesComputer Science42 references68 citations
TL;DR

SlowMo is a general slow-momentum framework that sits on top of base distributed optimizers (e.g., Local SGD, SGP) to improve optimization and generalization without adding significant communication. It achieves convergence guarantees for smooth non-convex objectives and matches or exceeds base methods in accuracy while preserving efficiency.

ABSTRACT

Distributed optimization is essential for training large models on large datasets. Multiple approaches have been proposed to reduce the communication overhead in distributed training, such as synchronizing only after performing multiple local SGD steps, and decentralized methods (e.g., using gossip algorithms) to decouple communications among workers. Although these methods run faster than AllReduce-based methods, which use blocking communication before every update, the resulting models may be less accurate after the same number of updates. Inspired by the BMUF method of Chen & Huo (2016), we propose a slow momentum (SlowMo) framework, where workers periodically synchronize and perform a momentum update, after multiple iterations of a base optimization algorithm. Experiments on image classification and machine translation tasks demonstrate that SlowMo consistently yields improvements in optimization and generalization performance relative to the base optimizer, even when the additional overhead is amortized over many updates so that the SlowMo runtime is on par with that of the base optimizer. We provide theoretical convergence guarantees showing that SlowMo converges to a stationary point of smooth non-convex losses. Since BMUF can be expressed through the SlowMo framework, our results also correspond to the first theoretical convergence guarantees for BMUF.

Motivation & Objective

  • Reduce communication overhead in distributed optimization while preserving or improving model accuracy.
  • Provide a unified SlowMo framework that enhances base optimizers (SGD, SGP, etc.) with periodic synchronization and momentum updates.
  • Offer theoretical convergence guarantees for SlowMo on smooth non-convex objectives.
  • Demonstrate empirical gains in image classification and neural machine translation across multiple tasks.

Proposed method

  • Workers run a base optimizer for tau local steps between communications.
  • After tau steps, workers average their parameters via AllReduce to form x_{t,τ}.
  • A slow momentum update is applied: u_{t+1} = β u_t + (1/γ_t)(x_{t,0} - x_{t,τ}).
  • Outer update: x_{t+1,0} = x_{t,0} - α γ_t u_{t+1} to propagate the momentum.
  • The SlowMo update can recover BMUF, Local SGD, and Lookahead as special cases by choosing parameters accordingly.
  • Theoretical results show convergence to stationary points of smooth non-convex losses with rate O(1/√(m T τ)) under standard assumptions.

Experimental results

Research questions

  • RQ1Does SlowMo consistently improve optimization and generalization across different base distributed optimizers (e.g., SGP, Local SGD, BMUF) while maintaining communication efficiency?
  • RQ2What are the convergence guarantees of SlowMo for smooth non-convex objectives, and how do parameters (τ, α, β) affect performance?
  • RQ3How does SlowMo perform on large-scale vision and language tasks compared to baselines like AR-SGD, SGP, and OSGP?
  • RQ4What is the impact of removing exact averaging in SlowMo variants (e.g., SGP-SlowMo-noaverage) on performance and communication?
  • RQ5How do choices of τ influence speed-accuracy tradeoffs and model drift across tasks?

Key findings

  • SlowMo consistently improves both training loss and validation accuracy/BLEU across CIFAR-10, ImageNet, and WMT’16 En-De when combined with base optimizers like SGP, OSGP, and Local SGD.
  • On CIFAR-10, SlowMo with SGP/OSGP/Local SGD improves validation accuracy by up to about 0.8–1.5 percentage points over the base methods.
  • On ImageNet, SlowMo improves top-1 accuracy from 69.94% (Local SGD) to 73.24% and from 74.96% (OSGP) to 75.54% with SGP, with comparable per-iteration time.
  • On WMT’16 En-De, SlowMo improves BLEU from 26.62/26.92 to 27.14/27.84 for Local Adam/SGP baselines, respectively.
  • SlowMo achieves a convergence rate of O(1/√(m T τ)) and provides linear speedup with the number of workers under stated conditions.
  • There exists a variant (SGP-SlowMo-noaverage) that removes the exact averaging step yet attains similar performance, suggesting the momentum buffer synchronization largely drives gains.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.