Shortcut-connected Expert Parallelism for Accelerating Mixture-of-Experts
Weilin Cai, Juyong Jiang, Le Qin, Junwei Cui, Sunghun Kim, Jiayi Huang
TL;DR
The paper tackles the bottleneck of All-to-All communication in sparsely-gated MoE models by introducing ScMoE, a shortcut-connected architecture that decouples communication from computation and uses an overlapping parallelization strategy. By processing preceding-layer representations with a top-1 MoE via shortcuts while a shared expert handles current-layer representations, ScMoE achieves substantial training and inference speedups across vision and language models, while maintaining or exceeding baseline model quality. The work also analyzes gating behavior and representation similarity to justify the design and presents memory-limited inference techniques that further extend practical deployment. Overall, ScMoE offers a device-agnostic method to accelerate MoE models on both single and multi-node setups, with broad applicability and potential for further optimization.
Abstract
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.
