Flattening Every Memory Peak in Long-Context Mixture-of-Experts Training
Summary
This paper introduces techniques to manage memory peaks in training large Mixture-of-Experts models with long context lengths, including Pipelined LLEP, Ring-DTP, SCO, and OffloadStreamAdamW, which enable fixed GPU working sets and improve throughput up to 10.4x.
View Cached Full Text
Cached at: 09/17/26, 10:53 AM
Paper page - Flattening Every Memory Peak in Long-Context Mixture-of-Experts Training
Source: https://huggingface.co/papers/2609.14306
Abstract
TrainingaMixture-of-Experts(MoE)modelatlongcontextorlargebatchsizefailsassoonasanyonecomponent’speakallocationexceedsdevicememory,sothetargetiseverypeakatonce,nottheaveragefootprint.Fourareleftunboundedbytheparallelismplansincommonuse,andeachgrowsdifferently:expertdispatchwiththeroutingmatrix,thevocabularyprojectionwithtokenstimesvocabulary,gradientcheckpointboundarieswithdepthtimessequencelength,andoptimizerstatewithparametercount.Whichonerunsoutfirstchangeswiththemodel,thecontextlength,andthedevicecount,soloweringthelargestonlyexposesthenext.WeboundallfourwithscheduleswhoseGPUworkingsetisfixedatlaunch:PipelinedLLEPextendsleast-loadedexpertparallelismwithacaponthetokenseachsourcecontributestoadispatchchunk,Ring-DTPcirculatesactivationsorweightshardsaroundaringatthevocabularyprojectionandfoldseachblockoflogitsintoanonlinelog-sum-exp,Selectivecheckpointoffload(SCO)keepstheonelong-livedtensorofeachcheckpointboundaryinCPUmemory,andOffloadStreamAdamWturnstheserialCPUAdamupdateofoptimizeroffloadintoabucketpipeline.Allfourchangeonlytheorderandgranularityofcomputationanddatamovement,sothelossandgradientsstayexact.Inmatchedcomponenttests,theycuttheMoEdispatchpeakbyupto59.3%withoutlosingthroughput,thevocabularyprojectionpeakby86.6%,andtheoffloadedoptimizerstepby2.05timesfaster.ComposedonMoEmodelsfrom120Bto667Bparameters,theytrainat1Mcontextlength,8--32timesthereachofatunedFSDP2baseline,andupto10.4timesitsthroughput.
View arXiv pageView PDFAdd to collection
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 paper0
No model linking this paper
Cite arxiv.org/abs/2609.14306 in a model README.md to link it from this page.
Datasets citing this paper0
No dataset linking this paper
Cite arxiv.org/abs/2609.14306 in a dataset README.md to link it from this page.
Spaces citing this paper0
No Space linking this paper
Cite arxiv.org/abs/2609.14306 in a Space README.md to link it from this page.
Collections including this paper0
No Collection including this paper
Add this paper to acollectionto link it from this page.
Similar Articles
MESH: Memory-Efficient Sinkhorn Optimization for Mixture-of-Experts Training
This paper introduces MESH, a memory-efficient Sinkhorn-based optimizer for Mixture-of-Experts (MoE) training that restores temporal momentum without storing full optimizer state, reducing memory by 62.5% while maintaining competitive evaluation loss compared to AdamW.
MawForge: Memory-Bounded Expert Materialization for Local Mixture-of-Experts Inference
MawForge presents a memory-bounded approach for serving large Mixture-of-Experts (MoE) language models on constrained unified-memory machines by storing the full model on disk and materializing expert tensors into a bounded cache on demand. Experiments on a MacBook Pro M5 Pro demonstrate effective serving of 34GB and 25GB models within a 24GB memory envelope, with analysis of cache size trade-offs and speculative decoding results.
PuzzleMoE: Efficient Compression of Large Mixture-of-Experts Models via Sparse Expert Merging and Bit-packed inference
PuzzleMoE introduces a pairwise dual-mask expert merging algorithm and bit-level packing technique to compress large Mixture-of-Experts models, maintaining performance while reducing storage and accelerating inference.
Understanding Is Done Early: A Depth Division of Labor in Large Language Models and Its Use for Unbounded-Context Memory
This paper introduces CoMem, a method that exploits the depth-wise division of labor in LLMs to cache intermediate residual tensors and recompute only upper layers for retrieval, enabling bounded read compute and memory independent of stored-context length. Evaluated on Qwen3-8B, CoMem achieves strong long-context performance with significant memory savings and prefill speedups.
Let's Scale Step by Step: Compute-Efficient Hyperparameter Transfer for Large-Scale Mixture-of-Experts
The paper proposes a compute-efficient two-step hyperparameter transfer framework to predict optimal learning rates for large Mixture-of-Experts models, enabling efficient pretraining without costly hyperparameter sweeps.