Lancet: Accelerating Mixture-of-Experts Training via Whole Graph Computation-Communication Overlapping

Fuente: arXiv
Guardado en:
Detalles Bibliográficos
Autores principales: Jiang, Chenyu, Tian, Ye, Jia, Zhen, Zheng, Shuai, Wu, Chuan, Wang, Yida
Formato: Preprint
Publicado: 2024
Materias:
Acceso en línea:
Etiquetas: Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
_version_ 1866917654441230336
author Jiang, Chenyu
Tian, Ye
Jia, Zhen
Zheng, Shuai
Wu, Chuan
Wang, Yida
author_facet Jiang, Chenyu
Tian, Ye
Jia, Zhen
Zheng, Shuai
Wu, Chuan
Wang, Yida
contents The Mixture-of-Expert (MoE) technique plays a crucial role in expanding the size of DNN model parameters. However, it faces the challenge of extended all-to-all communication latency during the training process. Existing methods attempt to mitigate this issue by overlapping all-to-all with expert computation. Yet, these methods frequently fall short of achieving sufficient overlap, consequently restricting the potential for performance enhancements. In our study, we extend the scope of this challenge by considering overlap at the broader training graph level. During the forward pass, we enable non-MoE computations to overlap with all-to-all through careful partitioning and pipelining. In the backward pass, we achieve overlap with all-to-all by scheduling gradient weight computations. We implement these techniques in Lancet, a system using compiler-based optimization to automatically enhance MoE model training. Our extensive evaluation reveals that Lancet significantly reduces the time devoted to non-overlapping communication, by as much as 77%. Moreover, it achieves a notable end-to-end speedup of up to 1.3 times when compared to the state-of-the-art solutions.
format Preprint
id arxiv_https___arxiv_org_abs_2404_19429
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Lancet: Accelerating Mixture-of-Experts Training via Whole Graph Computation-Communication Overlapping
Jiang, Chenyu
Tian, Ye
Jia, Zhen
Zheng, Shuai
Wu, Chuan
Wang, Yida
Distributed, Parallel, and Cluster Computing
Machine Learning
The Mixture-of-Expert (MoE) technique plays a crucial role in expanding the size of DNN model parameters. However, it faces the challenge of extended all-to-all communication latency during the training process. Existing methods attempt to mitigate this issue by overlapping all-to-all with expert computation. Yet, these methods frequently fall short of achieving sufficient overlap, consequently restricting the potential for performance enhancements. In our study, we extend the scope of this challenge by considering overlap at the broader training graph level. During the forward pass, we enable non-MoE computations to overlap with all-to-all through careful partitioning and pipelining. In the backward pass, we achieve overlap with all-to-all by scheduling gradient weight computations. We implement these techniques in Lancet, a system using compiler-based optimization to automatically enhance MoE model training. Our extensive evaluation reveals that Lancet significantly reduces the time devoted to non-overlapping communication, by as much as 77%. Moreover, it achieves a notable end-to-end speedup of up to 1.3 times when compared to the state-of-the-art solutions.
title Lancet: Accelerating Mixture-of-Experts Training via Whole Graph Computation-Communication Overlapping
topic Distributed, Parallel, and Cluster Computing
Machine Learning
url https://arxiv.org/abs/2404.19429