Accelerating Distributed ML Training via Selective Synchronization

Sahil Tyagi, Martin Swany
7/16/2023
cs.DCcs.CVcs.LG

Official code: sahiltyagi4/SelSync (0 stars, last commit 2024-08-13).

Abstract

In distributed training, deep neural networks (DNNs) are launched over multiple workers concurrently and aggregate their local updates on each step in bulk-synchronous parallel (BSP) training. However, BSP does not linearly scale-out due to high communication cost of aggregation. To mitigate this overhead, alternatives like Federated Averaging (FedAvg) and Stale-Synchronous Parallel (SSP) either reduce synchronization frequency or eliminate it altogether, usually at the cost of lower final accuracy. In this paper, we present \texttt{SelSync}, a practical, low-overhead method for DNN training that dynamically chooses to incur or avoid communication at each step either by calling the aggregation op or applying local updates based on their significance. We propose various optimizations as part of \texttt{SelSync} to improve convergence in the context of \textit{semi-synchronous} training. Our system converges to the same or better accuracy than BSP while reducing training time by up to 14$\times$.

View on arXivView PDF

Code Implementations(1)

SelSync: {Sel}ective {Sync}hronization for distributed data-parallel DNN training.

00Shell, PythonJan 28, 20242 years ago

Similar Papers

Cite this paper

@article{tyagi2023accelerating,
  title  = {Accelerating Distributed ML Training via Selective Synchronization},
  author = {Sahil Tyagi and Martin Swany},
  year   = {2023},
  eprint = {2307.07950},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2307.07950v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2307.07950.svg)](https://codeofpaper.com/paper/2307.07950)

Discussion