Pre-gated MoE: An Algorithm-System Co-Design for Fast and Scalable Mixture-of-Expert Inference
Pre-gated MoE: совместный дизайн алгоритма и системы для быстрого и масштабируемого вывода в архитектуре Mixture-of-Experts
2024-06-29
SCID: 54.1/v2mqtu3e
Discuss with AI
LLM inference optimizationMixture-of-ExpertsPre-gated MoEpre-gating functionsparse expert activation
Figures from the paper
Abstract (AI)
Large language models (LLMs) based on transformers have made significant strides in recent years, the success of which is driven by scaling up their model size. Despite their high algorithmic performance, the computational and memory requirements of LLMs present unprecedented challenges. To tackle the high compute requirements of LLMs, the Mixture-ofExperts (MoE) architecture was introduced which is able to scale its model size without proportionally scaling up its computational requirements. Unfortunately, MoE’s high memory demands and dynamic activation of sparse experts restrict its applicability to real-world problems. Previous solutions that offload MoE’s memory-hungry expert parameters to CPU memory fall short because the latency to migrate activated experts from CPU to GPU incurs high performance overhead. Our proposed Pre-gated MoE system effectively tackles the compute and memory challenges of conventional MoE architectures using our algorithm-system codesign. Pre-gated MoE employs our novel pre-gating function which alleviates the dynamic nature of sparse expert activation, allowing our proposed system to address the large memory footprint of MoEs while also achieving high performance. We demonstrate that Pre-gated MoE is able to improve performance, reduce GPU memory consumption, while also maintaining the same level of model quality. These features allow our Pre-gated MoE system to cost-effectively deploy large-scale LLMs using just a single GPU with high performance.
Key Findings
1
Introduced Pre-gated MoE, an algorithm-system co-design using a novel pre-gating function to reduce dynamic sparse expert activation.
2
Pre-gated MoE alleviates MoE’s high memory footprint, enabling expert parameters to be managed without frequent CPU-to-GPU migration overhead.
3
Pre-gated MoE enables cost-effective deployment of large-scale LLMs on a single GPU with high performance.
4
The system improves runtime performance and reduces GPU memory consumption compared to conventional MoE architectures while maintaining equivalent model quality.
Research Object
Pre-gated Mixture-of-Experts (MoE) system for inference in large language models
Research Subject
Algorithm-system co-design that uses a novel pre-gating function to alleviate dynamic sparse expert activation, reducing GPU memory footprint and improving inference performance and scalability while preserving model quality
Publication Details
Publication Date
2024-06-29
Journal
Publisher
ISSN
Cited by
48
Access Type
Author Information
Download PDF
Subscribe to digest
References available in scid.ai4
PaLM: Scaling Language Modeling with Pathways2022
Exploring the Limits of Transfer Learning with a Unified Text-to-Text\n Transformer2019
HuggingFace's Transformers: State-of-the-art Natural Language Processing2019
AI-Assisted Pipeline for Dynamic Generation of Trustworthy Health Supplement Content at Scale2018