From promise to practice: realizing high-performance decentralized training

Fuente: arXiv
Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Wang, Zesen, Zhang, Jiaojiao, Wu, Xuyang, Johansson, Mikael
Format: Preprint
Veröffentlicht: 2024
Schlagworte:
Online-Zugang:
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866909351276445696
author Wang, Zesen
Zhang, Jiaojiao
Wu, Xuyang
Johansson, Mikael
author_facet Wang, Zesen
Zhang, Jiaojiao
Wu, Xuyang
Johansson, Mikael
contents Decentralized training of deep neural networks has attracted significant attention for its theoretically superior scalability over synchronous data-parallel methods like All-Reduce. However, realizing this potential in multi-node training is challenging due to the complex design space that involves communication topologies, computation patterns, and optimization algorithms. This paper identifies three key factors that can lead to speedups over All-Reduce training and constructs a runtime model to determine when, how, and to what degree decentralization can yield shorter per-iteration runtimes. Furthermore, to support the decentralized training of transformer-based models, we study a decentralized Adam algorithm that allows for overlapping communications and computations, prove its convergence, and propose an accumulation technique to mitigate the high variance caused by small local batch sizes. We deploy the proposed approach in clusters with up to 64 GPUs and demonstrate its practicality and advantages in both runtime and generalization performance under a fixed iteration budget.
format Preprint
id arxiv_https___arxiv_org_abs_2410_11998
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle From promise to practice: realizing high-performance decentralized training
Wang, Zesen
Zhang, Jiaojiao
Wu, Xuyang
Johansson, Mikael
Distributed, Parallel, and Cluster Computing
Machine Learning
Decentralized training of deep neural networks has attracted significant attention for its theoretically superior scalability over synchronous data-parallel methods like All-Reduce. However, realizing this potential in multi-node training is challenging due to the complex design space that involves communication topologies, computation patterns, and optimization algorithms. This paper identifies three key factors that can lead to speedups over All-Reduce training and constructs a runtime model to determine when, how, and to what degree decentralization can yield shorter per-iteration runtimes. Furthermore, to support the decentralized training of transformer-based models, we study a decentralized Adam algorithm that allows for overlapping communications and computations, prove its convergence, and propose an accumulation technique to mitigate the high variance caused by small local batch sizes. We deploy the proposed approach in clusters with up to 64 GPUs and demonstrate its practicality and advantages in both runtime and generalization performance under a fixed iteration budget.
title From promise to practice: realizing high-performance decentralized training
topic Distributed, Parallel, and Cluster Computing
Machine Learning
url https://arxiv.org/abs/2410.11998