MegaBlocks: Efficient Sparse Training with Mixture-of-Experts
On the map: Mixture-of-experts → Efficient MoE training and inference systems
Abstract (arXiv)
We present MegaBlocks, a system for efficient Mixture-of-Experts (MoE) training on GPUs. Our system is motivated by the limitations of current frameworks, which restrict the dynamic routing in MoE layers to satisfy the constraints of existing software and hardware. These formulations force a tradeoff between model quality and hardware efficiency, as users must choose between dropping tokens from the computation or wasting computation and memory on padding. To address these limitations, we reformulate MoE computation in terms of block-sparse operations and develop new block-sparse GPU kernels that efficiently handle the dynamism present in MoEs. Our approach never drops tokens and maps efficiently to modern hardware, enabling end-to-end training speedups of up to 40% over MoEs trained with the state-of-the-art Tutel library and 2.4x over DNNs trained with the highly-optimized Megatron-LM framework.
Key facts. Cited by 204 papers in the map (data through 7 Oct 2026). Placed in Efficient MoE training and inference systems, one of 12 directions in Mixture-of-experts. Builds on 30 of its 51 references that are in the map. First posted on arXiv 29 Nov 2022.
Builds on
30 of 51 references.
Closest ancestors · 1
Same direction, newest first
Other references · 29
- 2017Attention Is All You Needcited by 59,932
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
- 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,160
- 2017Outrageously Large Neural Networks: The Sparsely-Gated Mixture-of-Experts Layercited by 3,413
- 2021Switch Transformers: Scaling to Trillion Parameter Models with Simple and Efficient Sparsitycited by 3,014
- 2020The Pile: An 800GB Dataset of Diverse Text for Language Modelingcited by 2,346
- 2015Learning both Weights and Connections for Efficient Neural Networkscited by 1,998
- 2019Megatron-LM: Training Multi-Billion Parameter Language Models Using Model Parallelismcited by 1,829
- 2020GShard: Scaling Giant Models with Conditional Computation and Automatic Shardingcited by 1,601
- 2019Generating Long Sequences with Sparse Transformerscited by 1,523
- 2017Mixed Precision Trainingcited by 1,135
17 more
- 2021GLaM: Efficient Scaling of Language Models with Mixture-of-Expertscited by 890
- 2021Scaling Vision with Sparse Mixture of Expertscited by 740
- 2021Efficient Large-Scale Language Model Training on GPU Clusters Using Megatron-LMcited by 621
- 2022Mixture-of-Experts with Expert Choice Routingcited by 611
- 2017In-Datacenter Performance Analysis of a Tensor Processing Unitcited by 610
- 2019The State of Sparsity in Deep Neural Networkscited by 471
- 2021BASE Layers: Simplifying Training of Large, Sparse Modelscited by 315
- 2022Reducing Activation Recomputation in Large Transformer Modelscited by 300
- 2022Unified Scaling Laws for Routed Language Modelscited by 249
- 2021Hash Layers For Large Sparse Modelscited by 236
- 2018Efficient Neural Audio Synthesiscited by 218
- 2021Efficient Large Scale Language Modeling with Mixtures of Expertscited by 175
- 2020Sparse GPU Kernels for Deep Learningcited by 138
- 2020Memory-Efficient Pipeline-Parallel DNN Trainingcited by 133
- 2019Fast Sparse ConvNetscited by 86
- 2017Block-Sparse Recurrent Neural Networkscited by 38
- 2018Balanced Sparsity for Efficient DNN Inference on GPUcited by 27
Built on by
Citing papers per year: 2023: 12; 2024: 55; 2025: 55; 2026: 82.
204 papers.
Sort:
By area:
- 2024Mixtral of Expertscited by 1,785
- 2024OLMoE: Open Mixture-of-Experts Language Modelscited by 291
- 2023Challenges and Applications of Large Language Modelscited by 251
- 2024A Survey on Efficient Inference for Large Language Modelscited by 197
- 2024Arcee's MergeKit: A Toolkit for Merging Large Language Modelscited by 189
- 2024OpenMoE: An Early Effort on Open Mixture-of-Experts Language Modelscited by 185
- 2023Efficient Large Language Models: A Surveycited by 183
- 2023SOLAR 10.7B: Scaling Large Language Models with Simple yet Effective Depth Up-Scalingcited by 172
- 2024Mixture-of-Transformers: A Sparse and Scalable Architecture for Multi-Modal Foundation Modelscited by 151
- 2024Not All Experts are Equal: Efficient Expert Pruning and Skipping for Mixture-of-Experts Large Language Modelscited by 140
- 2023Towards Efficient Generative Large Language Model Serving: A Survey from Algorithms to Systemscited by 101
- 2024A Survey of Resource-efficient LLM and Multimodal Foundation Modelscited by 84
38 more
- 2024Mixtures of Experts Unlock Parameter Scaling for Deep RLcited by 75
- 2024Relaxed Recursive Transformers: Effective Parameter Sharing with Layer-wise LoRAcited by 72
- 2024MoMa: Efficient Early-Fusion Pre-training with Mixture of Modality-Aware Expertscited by 61
- 2024JetMoE: Reaching Llama2 Performance with 0.1M Dollarscited by 55
- 2024ReMoE: Fully Differentiable Mixture-of-Experts with ReLU Routingcited by 53
- 2025Demons in the Detail: On Implementing Load Balancing Loss for Training Specialized Mixture-of-Expert Modelscited by 53
- 2024Jamba-1.5: Hybrid Transformer-Mamba Models at Scalecited by 48
- 2024Upcycling Large Language Models into Mixture of Expertscited by 48
- 2025Parameters vs FLOPs: Scaling Laws for Optimal Sparsity for Mixture-of-Experts Language Modelscited by 48
- 2025Scaling Laws for Native Multimodal Modelscited by 47
- 2023QMoE: Practical Sub-1-Bit Compression of Trillion-Parameter Modelscited by 42
- 2024CATS: Contextually-Aware Thresholding for Sparsity in Large Language Modelscited by 41
- 2024Mixture Compressor for Mixture-of-Experts LLMs Gains Morecited by 38
- 2025Training Sparse Mixture Of Experts Text Embedding Modelscited by 32
- 2024Shortcut-connected Expert Parallelism for Accelerating Mixture-of-Expertscited by 31
- 2024How Far Are We From AGI: Are LLMs All We Need?cited by 31
- 2025Joint MoE Scaling Laws: Mixture of Experts Can Be Memory Efficientcited by 29
- 2024Multilinear Mixture of Experts: Scalable Expert Specialization through Factorizationcited by 28
- 2024HMoE: Heterogeneous Mixture of Experts for Language Modelingcited by 28
- 2025PARD: Accelerating LLM Inference with Low-Cost PARallel Draft Model Adaptationcited by 28
- 2023PIT: Optimization of Dynamic Sparse Deep Learning Models via Permutation Invariant Transformationcited by 25
- 2025Apple Intelligence Foundation Language Models: Tech Report 2025cited by 25
- 2025Drop-Upcycling: Training Sparse Mixture of Experts with Partial Re-initializationcited by 23
- 2025SpecEE: Accelerating Large Language Model Inference with Speculative Early Exitingcited by 23
- 2024Lancet: Accelerating Mixture-of-Experts Training via Whole Graph Computation-Communication Overlappingcited by 22
- 2024Configurable Foundation Models: Building LLMs from a Modular Perspectivecited by 22
- 2025Load Balancing Mixture of Experts with Similarity Preserving Routerscited by 22
- 2024Mixture of Experts in a Mixture of RL settingscited by 21
- 2024Layerwise Recurrent Router for Mixture-of-Expertscited by 21
- 2024Mixture of Parrots: Experts improve memorization more than reasoningcited by 20
- 2025SonicMoE: Accelerating MoE with IO and Tile-aware Optimizationscited by 20
- 2025EAC-MoE: Expert-Selection Aware Compressor for Mixture-of-Experts Large Language Modelscited by 18
- 2023Adaptive Gating in Mixture-of-Experts based Language Modelscited by 16
- 2024BAM! Just Like That: Simple and Efficient Parameter Upcycling for Mixture of Expertscited by 16
- 2024GRIN: GRadient-INformed MoEcited by 16
- 2024Lynx: Enabling Efficient MoE Inference through Dynamic Batch-Aware Expert Selectioncited by 16
- 2024Scattered Mixture-of-Experts Implementationcited by 15
- 2024Don't flatten, tokenize! Unlocking the key to SoftMoE's efficacy in deep RLcited by 14
50 most cited of 204 All 204 (JSON)
- 2026Redundancy Meets Synergy: Dependency-aware Expert Selection for MoE via Submodular Optimization30 Sep 2026
- 2026ID Balancing: Stable Training of Extremely Sparse MoE via PID-Based Load Control30 Sep 2026
- 2026Breaking the Uniformity Trap: Scaling Video Diffusion Model via SplitMoE29 Sep 2026
- 2026Mixture-of-Kittens: MoE Megakernel for NVL72s28 Sep 2026
- 2026TopoEP: Topology-Aware Load Balancing for Expert-Parallel MoE Training28 Sep 2026
- 2026GenomeOcean Anywhere: Private WebGPU Inference for Genome MoEs27 Sep 2026
- 2026A Multi-Engine Dataflow for MoE Decoding on Scratchpad-Based Tensor Accelerators17 Sep 2026
- 2026Flattening Every Memory Peak in Long-Context Mixture-of-Experts Training13 Sep 2026
- 2026Dissecting GPU Utilization for LLM Inference on Nvidia Hopper11 Sep 2026
- 2026Characterizing Job Power Elasticity for Power-Flexible AI Training10 Sep 2026
- 2026How Fragile Is Safety Alignment at Frontier Scale? A Single-Direction Attack on a 320B MoE9 Sep 2026
- 2026Epoch: Compiling Diffusion Blocks for Sparse MoE Serving9 Sep 2026
38 more
- 2026MoEMB: Scaling Universal Multimodal Embeddings with Efficient Mixture-of-Experts Models8 Sep 2026
- 2026Beyond Magnitude: Contrastive Routing for Modular Mixture-of-Experts1 Sep 2026
- 2026TerraceMoE: A Cost Model for Hierarchical MoE All-to-All Communication28 Aug 2026
- 2026MonoMoE: An Efficient Fused Mega-kernel for Quantized MoE Decoding19 Aug 2026
- 2026APEX: Adaptive Expert Prefetching for Memory-Efficient Edge MoE Inference12 Aug 2026
- 2026The Evolution of Mixture-of-Experts Architectures in Large Language Models: Routing, Topology, Load Balancing, and Expert Parallelism9 Aug 2026
- 2026UniMoMo: Expert Merging-Based MoE Acceleration for Large Recommendation Models9 Aug 2026
- 2026TopoCompress: Topology Aware Token Compression Algorithm for Distributed Edge MoE Inference1 Aug 2026
- 2026HetRoute Heterogeneous and Cost-aware Collaborative Routing Framework for Distributed Edge MoE Inference1 Aug 2026
- 2026Z-Loss Backward Geometry in Dense Output Heads and Sparse Routers31 Jul 2026
- 2026HiFloat4 Format for End-To-End Reinforcement Learning Post-Training of Large Language Models29 Jul 2026
- 2026X-Stage: Modeling Post-Issue Backpressure in GPU Communication--Computation Fusion25 Jul 2026
- 2026Decoding the Skew: Distribution-Aware MoE Inference with Adaptive Kernel Dispatch25 Jul 2026
- 2026Searching for Plans You Can Actually Build: A Realizability-Aware Full-Space Optimizer for MoE Training and Serving21 Jul 2026
- 2026LongStraw: Long-Context RL Beyond 2M Tokens under a Fixed GPU Budget16 Jul 2026
- 2026Less Experts, Faster Decoding: Cost-Aware Speculative Decoding for Mixture-of-Experts14 Jul 2026
- 2026CTA-Pipelining: A Latency-Oriented Spatial Scaling Method for Multi-GPU Systems8 Jul 2026
- 2026TriRoute: Unified Learned Routing for Joint Adaptive Attention, Experts, and KV-Cache Allocation7 Jul 2026
- 2026Communication-Aware Placement and Pruning for Efficient Mixture-of-Experts Inference6 Jul 2026
- 2026From Tensor Buffer to Distributed Memory Hierarchy: A Survey of KV Cache Management for LLM Serving30 Jun 2026
- 2026FoMoE: Breaking the Full-Replica Barrier with a Federation of MoEs17 Jun 2026
- 2026Redesign Mixture-of-Experts Routers with Manifold Power Iteration10 Jun 2026
- 2026UltraEP: Unleash MoE Training and Inference on Rack-Scale Nodes with Near-Optimal Load Balancing2 Jun 2026
- 2026Threshold-Based Exclusive Batching for LLM Inference30 May 2026
- 2026Mellum2 Technical Report29 May 2026
- 2026ConMoE: Expert-Pool Consolidation via Prototype Reassignment for MoE Compression28 May 2026
- 2026ReMoE: Boosting Expert Reuse through Router Fine-Tuning in Memory-Constrained MoE LLM Inference26 May 2026
- 2026Agentic Kernel Optimization: Generating State-of-the-Art GPU Kernels Without Hand-Written CUDA25 May 2026
- 2026Safety-Oriented Routing Analysis of Mixtral MoE Under Benign and Harmful Prompts22 May 2026
- 2026GEMQ: Global Expert-Level Mixed-Precision Quantization for MoE LLMs21 May 2026
- 2026NanoCP: Request-Level Dynamic Context Parallelism for Data-Expert Parallel Decoding20 May 2026
- 2026GEM: GPU-Variability-Aware Expert to GPU Mapping for MoE Systems19 May 2026
- 2026When Does Sparse MoE Help in Vision? The Role of Backbone Compute Leverage in Sparse Routing15 May 2026
- 2026Dense vs Sparse Pretraining at Tiny Scale: Active-Parameter vs Total-Parameter Matching13 May 2026
- 2026EMO: Frustratingly Easy Progressive Training of Extendable MoE13 May 2026
- 2026Slicing and Dicing: Configuring Optimal Mixtures of Experts12 May 2026
- 2026Surviving Partial Rank Failures in Wide Expert-Parallel MoE Inference11 May 2026
- 2026Hierarchical Mixture-of-Experts with Two-Stage Optimization8 May 2026
50 newest of 204 All 204 (JSON)
- 2024Mixtral of Expertscited by 1,785
- 2024OLMoE: Open Mixture-of-Experts Language Modelscited by 291
- 2024OpenMoE: An Early Effort on Open Mixture-of-Experts Language Modelscited by 185
- 2024Not All Experts are Equal: Efficient Expert Pruning and Skipping for Mixture-of-Experts Large Language Modelscited by 140
- 2024Mixtures of Experts Unlock Parameter Scaling for Deep RLcited by 75
- 2024MoMa: Efficient Early-Fusion Pre-training with Mixture of Modality-Aware Expertscited by 61
- 2024JetMoE: Reaching Llama2 Performance with 0.1M Dollarscited by 55
- 2024ReMoE: Fully Differentiable Mixture-of-Experts with ReLU Routingcited by 53
- 2025Demons in the Detail: On Implementing Load Balancing Loss for Training Specialized Mixture-of-Expert Modelscited by 53
- 2024Upcycling Large Language Models into Mixture of Expertscited by 48
- 2025Parameters vs FLOPs: Scaling Laws for Optimal Sparsity for Mixture-of-Experts Language Modelscited by 48
- 2023QMoE: Practical Sub-1-Bit Compression of Trillion-Parameter Modelscited by 42
12 most cited of 136 All 136 (JSON)
- 2026Redundancy Meets Synergy: Dependency-aware Expert Selection for MoE via Submodular Optimization30 Sep 2026
- 2026ID Balancing: Stable Training of Extremely Sparse MoE via PID-Based Load Control30 Sep 2026
- 2026Mixture-of-Kittens: MoE Megakernel for NVL72s28 Sep 2026
- 2026TopoEP: Topology-Aware Load Balancing for Expert-Parallel MoE Training28 Sep 2026
- 2026GenomeOcean Anywhere: Private WebGPU Inference for Genome MoEs27 Sep 2026
- 2026A Multi-Engine Dataflow for MoE Decoding on Scratchpad-Based Tensor Accelerators17 Sep 2026
- 2026Flattening Every Memory Peak in Long-Context Mixture-of-Experts Training13 Sep 2026
- 2026Epoch: Compiling Diffusion Blocks for Sparse MoE Serving9 Sep 2026
- 2026MoEMB: Scaling Universal Multimodal Embeddings with Efficient Mixture-of-Experts Models8 Sep 2026
- 2026Beyond Magnitude: Contrastive Routing for Modular Mixture-of-Experts1 Sep 2026
- 2026TerraceMoE: A Cost Model for Hierarchical MoE All-to-All Communication28 Aug 2026
- 2026MonoMoE: An Efficient Fused Mega-kernel for Quantized MoE Decoding19 Aug 2026
12 newest of 136 All 136 (JSON)
- 2024A Survey on Efficient Inference for Large Language Modelscited by 197
- 2023Towards Efficient Generative Large Language Model Serving: A Survey from Algorithms to Systemscited by 101
- 2025PARD: Accelerating LLM Inference with Low-Cost PARallel Draft Model Adaptationcited by 28
- 2025SpecEE: Accelerating Large Language Model Inference with Speculative Early Exitingcited by 23
- 2025iServe: An Intent-based Serving System for LLMscited by 1
- 2026From Tensor Buffer to Distributed Memory Hierarchy: A Survey of KV Cache Management for LLM Servingcited by 0
- 2026From Tensor Buffer to Distributed Memory Hierarchy: A Survey of KV Cache Management for LLM Serving30 Jun 2026
- 2025PARD: Accelerating LLM Inference with Low-Cost PARallel Draft Model Adaptation23 Apr 2025
- 2025SpecEE: Accelerating Large Language Model Inference with Speculative Early Exiting11 Apr 2025
- 2025iServe: An Intent-based Serving System for LLMs8 Jan 2025
- 2024A Survey on Efficient Inference for Large Language Models22 Apr 2024
- 2023Towards Efficient Generative Large Language Model Serving: A Survey from Algorithms to Systems23 Dec 2023
- 2025Decentralized Diffusion Modelscited by 12
- 2025KnapFormer: An Online Load Balancer for Efficient Diffusion Transformers Trainingcited by 3
- 2024CoCoGesture: Toward Coherent Co-speech 3D Gesture Generation in the Wildcited by 2
- 2026Breaking the Uniformity Trap: Scaling Video Diffusion Model via SplitMoEcited by 0
- 2026Breaking the Uniformity Trap: Scaling Video Diffusion Model via SplitMoE29 Sep 2026
- 2025KnapFormer: An Online Load Balancer for Efficient Diffusion Transformers Training8 Aug 2025
- 2025Decentralized Diffusion Models9 Jan 2025
- 2024CoCoGesture: Toward Coherent Co-speech 3D Gesture Generation in the Wild27 May 2024
- 2024Jamba-1.5: Hybrid Transformer-Mamba Models at Scalecited by 48
- 2024Jamba-1.5: Hybrid Transformer-Mamba Models at Scale22 Aug 2024
- 2023Challenges and Applications of Large Language Modelscited by 251
- 2024Arcee's MergeKit: A Toolkit for Merging Large Language Modelscited by 189
- 2023Efficient Large Language Models: A Surveycited by 183
- 2023SOLAR 10.7B: Scaling Large Language Models with Simple yet Effective Depth Up-Scalingcited by 172
- 2024Mixture-of-Transformers: A Sparse and Scalable Architecture for Multi-Modal Foundation Modelscited by 151
- 2024A Survey of Resource-efficient LLM and Multimodal Foundation Modelscited by 84
- 2024Relaxed Recursive Transformers: Effective Parameter Sharing with Layer-wise LoRAcited by 72
- 2025Scaling Laws for Native Multimodal Modelscited by 47
- 2024CATS: Contextually-Aware Thresholding for Sparsity in Large Language Modelscited by 41
- 2024How Far Are We From AGI: Are LLMs All We Need?cited by 31
- 2023PIT: Optimization of Dynamic Sparse Deep Learning Models via Permutation Invariant Transformationcited by 25
- 2024Configurable Foundation Models: Building LLMs from a Modular Perspectivecited by 22
12 most cited of 50 All 50 (JSON)
- 2026Dissecting GPU Utilization for LLM Inference on Nvidia Hopper11 Sep 2026
- 2026Characterizing Job Power Elasticity for Power-Flexible AI Training10 Sep 2026
- 2026HiFloat4 Format for End-To-End Reinforcement Learning Post-Training of Large Language Models29 Jul 2026
- 2026X-Stage: Modeling Post-Issue Backpressure in GPU Communication--Computation Fusion25 Jul 2026
- 2026LongStraw: Long-Context RL Beyond 2M Tokens under a Fixed GPU Budget16 Jul 2026
- 2026CTA-Pipelining: A Latency-Oriented Spatial Scaling Method for Multi-GPU Systems8 Jul 2026
- 2026Threshold-Based Exclusive Batching for LLM Inference30 May 2026
- 2026TACO: Efficient Communication Compression of Intermediate Tensors for Scalable Tensor-Parallel LLM Training27 Apr 2026
- 2026COREY: Entropy-Guided Runtime Chunk Scheduling for Selective Scan Kernels12 Apr 2026
- 2026Sustainability Is Not Linear: Quantifying Performance, Energy, and Privacy Trade-offs in On-Device Intelligence27 Mar 2026
- 2026Optimal Splitting of Language Models from Mixtures to Specialized Domains19 Mar 2026
- 2026Dynamic sparsity in tree-structured feed-forward layers at scale18 Mar 2026
12 newest of 50 All 50 (JSON)
Similar, not cited
Close in wording, no citation either way
- 2026Scalable Training of Mixture-of-Experts Models with Megatron Core
- 2021M6-T: Exploring Sparse Expert Models and Beyond
- 2022HetuMoE: An Efficient Trillion-scale Mixture-of-Expert Distributed Training System
- 2025MoBiLE: Efficient Mixture-of-Experts Inference on Consumer GPU with Mixture of Big Little Experts
- 2024Communication-Efficient Sparsely-Activated Model Training via Sequence Migration and Token Condensation
- 2026Mixture-of-Parallelisms: Towards Memory-Efficient Training Stack for Mixture-of-Experts Models
- 2026Expert Coupling in MoE Pretraining: Reducing All-to-All Overhead with Correlated Placement and Token Shuffling
- 2024Parm: Efficient Training of Large Sparsely-Activated Models with Dedicated Schedules