Federation of Experts: Communication Efficient Distributed Inference for Large Language Models
cs.LG
Submitted: 2026-05-07
Updated: 2026-09-29
Code: https://github.com/deepseek-ai/eplb
License: http://creativecommons.org/licenses/by-nc-nd/4.0/
The gist: Mixture of experts has emerged as the primary mechanism for making Large Language Models (LLMs) computationally efficient.
Terminology
Abstract
Mixture of experts has emerged as the primary mechanism for making Large Language Models (LLMs) computationally efficient. However, in distributed settings, communicating token embeddings between experts is a significant bottleneck. We present the novel Federation of Experts (FoE) architecture. FoE restructures the MoE block of a transformer layer into multiple MoE clusters. Each cluster is responsible for only one of the KV heads and expert parallelism is applied between those experts. Between clusters, a sum synchronizes the post-attention residuals, which then drives routing and dispatch for the next MoE block. In a single-node setting, FoE completely eliminates all-to-all communication as all experts within a group are contained on the same GPU. In multi-node settings, FoE confines all-to-all communication to the intra-node fabric, thus significantly reducing communication overhead. An implementation of FoE finds that on LongBench, FoE significantly improves inference throughput and latency in both single-node and multi-node settings, reducing end-to-end prefill latency by up to 5.88x, TTFT by 3.66x, and TPOT by 1.53x. It does so while achieving comparable generation quality to a mixture of experts model of the same size and training configuration.
Sources
- FlashMoE: Fast Distributed MoE in a Single Kernel
- LongBench: A Bilingual, Multitask Benchmark for Long Context Understanding
- Language Models are Few-Shot Learners
- DeepSeek-V2: A Strong, Economical, and Efficient Mixture-of-Experts Language Model
- DeepSeek-V3 Technical Report
- Flex Attention: A Programming Model for Generating Optimized Attention Kernels
- MoETuner: Optimized Mixture of Expert Serving with Balanced Expert Placement and Token Routing
- GRACE-MoE: Grouping and Replication with Locality-Aware Routing for Efficient Distributed MoE Inference
- Training Compute-Optimal Large Language Models
- DeepSpeed-FastGen: High-throughput Text Generation for LLMs via MII and DeepSpeed-Inference
- Mixtral of Experts
- BigMac: A Communication-Efficient Mixture-of-Experts Model Structure for Fast Training and Inference
- GShard: Scaling Giant Models with Conditional Computation and Automatic Sharding
- OLMoE: Open Mixture-of-Experts Language Models
- Outrageously Large Neural Networks: The Sparsely-Gated Mixture-of-Experts Layer
- Pangu Pro MoE: Mixture of Grouped Experts for Efficient Sparsity
- LLaMA: Open and Efficient Foundation Language Models
- Comet: Fine-grained Computation-communication Overlapping for Mixture-of-Experts
Related papers
- Polynomial-Augmented Neural Networks (PANNs) with Weak Orthogonality Constraints for Enhanced Function and PDE Approximation
- AIRL-S: Unifying Reinforcement Learning and Search-Based Test-Time Scaling via Adversarial Inverse Reinforcement Learning
- Transformers as Bayesian In-Context Experimenters: Smoothness-Adaptive Efficient ATE Estimation
- Convergence issues in Relational Concept Analysis based on AOC-posets
- Beliefs Beyond Posteriors: The Predictive Cost of ELBO Binding
- Understanding Diffusion Models via Ratio-Based Function Approximation with SignReLU Networks