DeepSpeed-MoE: Advancing Mixture-of-Experts Inference and Training to Power Next-Generation AI Scale

By Samyam Rajbhandari, Conglong Li, Zi-Mei Yao, Minjia Zhang, Reza Yazdani Aminabadi, Ammar Ahmad Awan, Jeff Rasley, Yuxiong He. 2022

591 citations recorded by the source corpus.

As the training of giant dense models hits the boundary on the availability and capability of the hardware resources today, Mixture-of-Experts (MoE) models become one of the most promising model architectures due to their significant training cost reduction compared to a quality-equivalent dense model. Its training cost saving is demonstrated from encoder-decoder models (prior works) to a 5x saving for auto-aggressive language models (this work along with parallel explorations). However, due to the much larger model size and unique architecture, how to provide fast MoE model inference remains challenging and unsolved, limiting its practical usage. To tackle this, we present DeepSpeed-MoE, an end-to-end MoE training and inference solution as part of the DeepSpeed library, including novel MoE architecture designs and model compression techniques that reduce MoE model size by up to 3.7x, and a highly optimized inference system that provides 7.3x better latency and cost compared to existing MoE inference solutions. DeepSpeed-MoE offers an unprecedented scale and efficiency to serve massive MoE models with up to 4.5x faster and 9x cheaper inference compared to quality-equivalent dense models. We hope our innovations and systems help open a promising path to new directions in the large model landscape, a shift from dense to sparse MoE models, where training and deploying higher-quality models with fewer resources becomes more widely possible.

Subfields: Artificial Intelligence, Large Language Models, Efficiency & Compression

How researchers see this paper

The researchers whose trusted networks rank it highest, strongest advocate first. Every researcher gets a different order.

In Artificial Intelligence

  1. Quoc V. Le
  2. Yoshua Bengio
  3. Jianfeng Gao
  4. Sergey Levine
  5. Mohit Bansal
  6. Ruslan Salakhutdinov
  7. Luke S. Zettlemoyer
  8. Pieter Abbeel

In Large Language Models

  1. Joseph Dean
  2. William Fedus
  3. Barret Zoph
  4. Yuxiong He
  5. Samyam Rajbhandari
  6. Ammar Ahmad Awan
  7. Joo Seong Jeong
  8. Fei Huang

In Efficiency & Compression

  1. Barret Zoph
  2. Yuxiong He
  3. Joseph Dean
  4. Samyam Rajbhandari
  5. Minjia Zhang
  6. William Fedus
  7. Reza Yazdani Aminabadi
  8. Karen Simonyan

Citations in the corpus