Shortcut-connected Expert Parallelism for Accelerating Mixture-of-Experts

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Cai, Weilin, Jiang, Juyong, Qin, Le, Cui, Junwei, Kim, Sunghun, Huang, Jiayi
Natura: Preprint
Pubblicazione: 2024
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866918037385379840
author Cai, Weilin
Jiang, Juyong
Qin, Le
Cui, Junwei
Kim, Sunghun
Huang, Jiayi
author_facet Cai, Weilin
Jiang, Juyong
Qin, Le
Cui, Junwei
Kim, Sunghun
Huang, Jiayi
contents Expert parallelism has emerged as a key strategy for distributing the computational workload of sparsely-gated mixture-of-experts (MoE) models across multiple devices, enabling the processing of increasingly large-scale models. However, the All-to-All communication inherent to expert parallelism poses a significant bottleneck, limiting the efficiency of MoE models. Although existing optimization methods partially mitigate this issue, they remain constrained by the sequential dependency between communication and computation operations. To address this challenge, we propose ScMoE, a novel shortcut-connected MoE architecture integrated with an overlapping parallelization strategy. ScMoE decouples communication from its conventional sequential ordering, enabling up to 100% overlap with computation. Compared to the prevalent top-2 MoE baseline, ScMoE achieves speedups of 1.49 times in training and 1.82 times in inference. Moreover, our experiments and analyses indicate that ScMoE not only achieves comparable but in some instances surpasses the model quality of existing approaches.
format Preprint
id arxiv_https___arxiv_org_abs_2404_05019
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Shortcut-connected Expert Parallelism for Accelerating Mixture-of-Experts
Cai, Weilin
Jiang, Juyong
Qin, Le
Cui, Junwei
Kim, Sunghun
Huang, Jiayi
Machine Learning
Computation and Language
Distributed, Parallel, and Cluster Computing
Expert parallelism has emerged as a key strategy for distributing the computational workload of sparsely-gated mixture-of-experts (MoE) models across multiple devices, enabling the processing of increasingly large-scale models. However, the All-to-All communication inherent to expert parallelism poses a significant bottleneck, limiting the efficiency of MoE models. Although existing optimization methods partially mitigate this issue, they remain constrained by the sequential dependency between communication and computation operations. To address this challenge, we propose ScMoE, a novel shortcut-connected MoE architecture integrated with an overlapping parallelization strategy. ScMoE decouples communication from its conventional sequential ordering, enabling up to 100% overlap with computation. Compared to the prevalent top-2 MoE baseline, ScMoE achieves speedups of 1.49 times in training and 1.82 times in inference. Moreover, our experiments and analyses indicate that ScMoE not only achieves comparable but in some instances surpasses the model quality of existing approaches.
title Shortcut-connected Expert Parallelism for Accelerating Mixture-of-Experts
topic Machine Learning
Computation and Language
Distributed, Parallel, and Cluster Computing
url https://arxiv.org/abs/2404.05019