atlas

Research map / Architectures and efficiency / Mixture of experts

Toward Efficient Inference for Mixture of Experts

NeurIPS 2024 · Architectures and efficiency › Mixture of experts · approach: Expert routing and specialization · 15 citations (OpenAlex)

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.

Characterizes MoE inference inefficiencies for language modeling and machine translation and proposes dynamic gating, expert buffering, and load balancing to raise throughput, cut memory, and balance expert load.

Problem

MoE Transformer inference is slow and memory-hungry due to static gating with fixed expert capacities, skewed expert activation, and limited GPU memory, with few direct baselines for efficient MoE serving.

Approach

Replace static capacity-padded gating with dynamic gating that sends variable token counts to experts (via a size all-to-all and index-based reordering), add an expert buffering cache that keeps hot experts in GPU memory and offloads the rest to CPU with LIFO eviction, and balance expert placement across GPUs using greedy and anti-correlation heuristics driven by runtime activation statistics.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
replace static gating with dynamic gatingMoE inference · LMthroughput versus Fairseq: 6.21×Helped
replace static gating with dynamic gatingMoE inference · MT encoderthroughput versus Fairseq: 5.75×Helped
replace static gating with dynamic gatingMoE inference · MT decoderthroughput versus Fairseq: 2.58×Helped
replace static gating with dynamic gatingMoE inference · LM, batch size 8, Appleactivation memory: 6.29GB to 1.28GB; 79.6%Helped
replace static gating with dynamic gatingMoE inference · MT, batch size 8, Appleactivation memory: 1.89GB to 1.05GB; 44.2%Helped
add expert buffering to dynamic gating (ablation)MoE inference · MT decoder, single-nodethroughputHurt
add expert buffering to dynamic gatingMoE inference · MT decoder, two-nodethroughput versus baselines: 2.21×Helped
add expert buffering to dynamic gatingMoE inference · MT decoder, four-nodethroughput versus baselines: 4.30×Helped
buffer expert parameters in CPU memoryMoE inference · MT tasks, AppleGPU static memory: 2.25GBHelped
add Greedy load balancingDynamic Gating · LMthroughput: 1.11× and 1.19×Helped
add Anti-Correlation load balancingDynamic Gating · MT decoderthroughput: 1.02×Helped
use small batch sizes (4–16) rather than larger batches (ablation)Dynamic Gating versus Megablock · LM and MT inferencethroughputHurt

Surprising findings

Limitations

Experimental setup

Datasets: The Pile (Wikipedia, PubMed, GitHub) NLLB-200 validation data

Metrics: throughput latency memory use cache miss rate max load avg-max load

Baselines: Fairseq MoE (static gating) Tutel FasterMoE Megablocks

Builds on: GShard Fairseq MoE Tutel FasterMoE Megablocks

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