atlas

Research map / Architectures and efficiency / Mixture of experts

Scaling Beyond the GPU Memory Limit for Large Mixture-of-Experts Model Training

ICML 2024 · Architectures and efficiency › Mixture of experts · approach: Expert routing and specialization

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes ES-MoE, which offloads MoE expert parameters and optimizer states to host memory and SSD with expert-wise pipelined processing, CPU optimization, and dynamic expert placement to train large MoE models on few GPUs.

Problem

Training large Mixture-of-Experts models requires adding GPUs as the number of experts grows, and token load imbalance across experts causes zero-padding waste and straggler GPUs.

Approach

Offload expert parameters and optimizer states per expert to CPU memory/SSD, schedule expert uploads in a pipeline overlapped with token permutation and computation, run CPU optimizer per expert as soon as its backward pass finishes, and dynamically place experts on GPUs by load using greedy makespan scheduling, avoiding batched matmul and zero-padding.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
add expert pinning (ablation)ES-MoE · MoE-L, 16 expertstraining throughput: 19,501 (-3.8%)Helped
add optimizer overlapping (ablation)ES-MoE · MoE-L, 16 expertstraining throughput: 17,943 (-8.7%)Helped
use larger batch size (ablation)ES-MoE · MoE-L, 16 expertstraining throughput: 5,959 (-301%)Helped
eliminate zero padding (ablation)ES-MoE · MoE-L, 16 expertstraining throughput: 4,674 (-27.4%)Helped
fine-tune Fairseq-MoE-15B using ES-MoE on 4 GPUsFairseq-MoE-15B · SST-2accuracyHelped
use ES-MoE instead of Fairseq for MoE-L pretrainingMoE-L, 8 experts · 1B tokenstraining duration: 9.47 -> 6.90Helped

Surprising findings

Limitations

Experimental setup

Datasets: WikiText-103 SST-2 MNLI BoolQ

Benchmarks: WikiText-103 SST-2 MNLI BoolQ

Metrics: training throughput (words/s) maximum number of experts training loss validation loss GPU utilization fine-tuned accuracy

Baselines: FairSeq Tutel ZeRO-OffloadE MegaBlocks

Builds on: ZeRO-Offload Tutel MegaBlocks GShard Switch Transformer

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy