Skip to main content
QUICK REVIEW

[Paper Review] MATCHA: Speeding Up Decentralized SGD via Matching Decomposition Sampling

Jianyu Wang, Anit Kumar Sahu|arXiv (Cornell University)|May 23, 2019
Stochastic Gradient Optimization TechniquesComputer Science36 references41 citations
TL;DR

MATCHA speeds up decentralized SGD by decomposing the network into matchings and activating them probabilistically to reduce communication time while preserving or improving convergence speed.

ABSTRACT

This paper studies the problem of error-runtime trade-off, typically encountered in decentralized training based on stochastic gradient descent (SGD) using a given network. While a denser (sparser) network topology results in faster (slower) error convergence in terms of iterations, it incurs more (less) communication time/delay per iteration. In this paper, we propose MATCHA, an algorithm that can achieve a win-win in this error-runtime trade-off for any arbitrary network topology. The main idea of MATCHA is to parallelize inter-node communication by decomposing the topology into matchings. To preserve fast error convergence speed, it identifies and communicates more frequently over critical links, and saves communication time by using other links less frequently. Experiments on a suite of datasets and deep neural networks validate the theoretical analyses and demonstrate that MATCHA takes up to $5 imes$ less time than vanilla decentralized SGD to reach the same training loss.

Motivation & Objective

  • Motivate and analyze the error-runtime trade-off in decentralized SGD under arbitrary network topologies.
  • Propose a matching decomposition sampling method to reduce communication while preserving convergence speed.
  • Provide theoretical convergence guarantees and quantify the impact of communication budgets on performance.
  • Demonstrate empirical gains on diverse datasets and network topologies across deep learning tasks.

Proposed method

  • Decompose the base communication graph into M disjoint matchings to enable parallel, low-degree communications.
  • Assign activation probabilities p_j to each matching to control the expected per-iteration communication time, with the constraint sum p_j ≤ C_b M.
  • Solve a convex optimization to maximize the algebraic connectivity λ2 of the expected topology: maximize λ2(sum_j p_j L_j) subject to the budget constraint and 0 ≤ p_j ≤ 1.
  • Generate a random topology sequence each iteration by sampling matchings independently according to p_j, yielding a possibly sparse or disconnected active subgraph.
  • Optimize the consensus step by adapting the mixing matrix W^(k) as W^(k) = I − α L^(k) with a computed α to ensure ρ < 1, where L^(k) is the active Laplacian.
  • Provide non-asymptotic convergence guarantees for non-convex objectives and show linear speedup under certain settings.

Experimental results

Research questions

  • RQ1How does the network topology and communication frequency affect the error-versus-wallclock time convergence in decentralized SGD?
  • RQ2Can activating different matchings with a budgeted probability improve the trade-off between communication cost and convergence speed?
  • RQ3What are the theoretical guarantees (convergence and speed) when using Matcha on non-convex objectives with arbitrary communication budgets?
  • RQ4How do Matcha's theoretical claims translate into empirical gains across vision and language tasks on various graph topologies?

Key findings

  • Matcha achieves up to 5.2× reduction in wall-clock time to reach the same training loss compared to vanilla Decentralized SGD.
  • Activating more connectivity-critical links while reducing less important ones preserves or improves error convergence by maintaining or lowering the spectral norm ρ.
  • For a given base graph, Matcha with a proper communication budget can maintain the same or better λ2 (algebraic connectivity) of the expected topology, aiding faster convergence.
  • Non-asymptotic analysis shows that, with appropriate learning rate and spectral properties, Matcha converges to stationary points for non-convex objectives.
  • Empirical results on CIFAR-10/100 and Penn Treebank show that Matcha outperforms vanilla DecenSGD and is competitive with or better than periodic DecenSGD across multiple topologies.

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.