Flattening Every Memory Peak in Long-Context Mixture-of-Experts Training
Abstract
Training a Mixture-of-Experts (MoE) model at long context or large batch size fails as soon as any one component's peak allocation exceeds device memory, so the target is every peak at once, not the average footprint. Four are left unbounded by the parallelism plans in common use, and each grows differently: expert dispatch with the routing matrix, the vocabulary projection with tokens times vocabulary, gradient checkpoint boundaries with depth times sequence length, and optimizer state with parameter count. Which one runs out first changes with the model, the context length, and the device count, so lowering the largest only exposes the next. We bound all four with schedules whose GPU working set is fixed at launch: PipelinedLLEP extends least-loaded expert parallelism with a cap on the tokens each source contributes to a dispatch chunk, Ring-DTP circulates activations or weight shards around a ring at the vocabulary projection and folds each block of logits into an online log-sum-exp, Selective checkpoint offload (SCO) keeps the one long-lived tensor of each checkpoint boundary in CPU memory, and OffloadStreamAdamW turns the serial CPU Adam update of optimizer offload into a bucket pipeline. All four change only the order and granularity of computation and data movement, so the loss and gradients stay exact. In matched component tests, they cut the MoE dispatch peak by up to 59.3% without losing throughput, the vocabulary projection peak by 86.6%, and the offloaded optimizer step by 2.05times faster. Composed on MoE models from 120B to 667B parameters, they train at 1M context length, 8--32times the reach of a tuned FSDP2 baseline, and up to 10.4times its throughput.
Community
We propose 4 different ways to lower peak memory consumption and improve throughput in large-scale long-context MoE distributed training.
- PipelinedLLEP: Achieve balanced expert parallelism with chunk-wise comm-compute overlap
- Ring-DTP: break-up large dense layer (vocab) across data-tensor-parallel dimensions, 85%+ lower-memory without losing throughput.
- Selective checkpoint offload (SCO) keeps the one long-lived tensor of each checkpoint boundary in CPU memory
- OffloadStreamAdamW turns the serial CPU Adam update of optimizer offload into a bucket pipeline
All four change only the order and granularity of computation and data movement, so the loss and gradients stay exact. In matched component tests, they cut the MoE dispatch peak by up to 59.3%
without losing throughput, the vocabulary projection peak by 86.6%, and the offloaded optimizer
step by 2.05× faster. Composed on MoE models from 120B to 667B parameters, they train at
1M context length, 8–32× the reach of a tuned FSDP2 baseline, and up to 10.4× its throughput
This is an automated message from the Librarian Bot. I found the following papers similar to this paper.
The following papers were recommended by the Semantic Scholar API
- MonoMoE: An Efficient Fused Mega-kernel for Quantized MoE Decoding (2026)
- Q-First: Most of Attention Needs Only the Query in Disaggregated LLM Decoding (2026)
- Epoch: Compiling Diffusion Blocks for Sparse MoE Serving (2026)
- MoE Expert Execution in Disaggregated LLM Serving with a High-Bandwidth ReRAM Near-Memory Architecture (2026)
- Fine-grained Computation-Communication Overlap via Tile-level Signaling and Scheduling for Mixture-of-Experts (2026)
- Launch-Bound and Substitutable: Why Three Inference Optimizations Fail to Pay Off in Mixture-of-Experts Models (2026)
- Efficient Knowledge Distillation for LLMs: Offline Top-K Logits and a Fused Chunked KL Loss (2026)
Please give a thumbs up to this comment if you found it helpful!
If you want recommendations for any Paper on Hugging Face checkout this Space
You can directly ask Librarian Bot for paper recommendations by tagging it in a comment: @librarian-bot recommend
Get this paper in your agent:
hf papers read 2609.14306 Don't have the latest CLI?
curl -LsSf https://hf.co/cli/install.sh | bash Models citing this paper 0
No model linking this paper
Datasets citing this paper 0
No dataset linking this paper
Spaces citing this paper 0
No Space linking this paper
Collections including this paper 0
No Collection including this paper