Exploiting Inter-Layer Expert Affinity for Accelerating Mixture-of-Experts Model Inference
On the map: Mixture-of-experts → Efficient MoE training and inference systems
Abstract (arXiv)
In large language models like the Generative Pre-trained Transformer, the Mixture of Experts paradigm has emerged as a powerful technique for enhancing model expressiveness and accuracy. However, deploying GPT MoE models for parallel inference on distributed systems presents significant challenges, primarily due to the extensive Alltoall communication required for expert routing and aggregation. This communication bottleneck exacerbates the already complex computational landscape, hindering the efficient utilization of high-performance computing resources. In this paper, we propose a lightweight optimization technique called ExFlow, to largely accelerate the inference of these MoE models. We take a new perspective on alleviating the communication overhead by exploiting the inter-layer expert affinity. Unlike previous methods, our solution can be directly applied to pre-trained MoE models without any fine-tuning or accuracy degradation. By proposing a context-coherent expert parallelism on distributed systems, our design only uses one Alltoall communication to deliver the same functionality while previous methods all require two Alltoalls. By carefully examining the conditional probability in tokens' routing across multiple layers, we proved that pre-trained GPT MoE models implicitly exhibit a strong inter-layer expert affinity. We then design an efficient integer programming model to capture such features and show that by properly placing the experts on corresponding GPUs, we can reduce up to 67% cross-GPU routing latency. Our solution beats the cutting-edge MoE implementations with experts from 8 to 64, with up to 2.2x improvement in inference throughput. We further provide a detailed study of how the model implicitly acquires this expert affinity at the very early training stage and how this affinity evolves and stabilizes during training.
Key facts. Cited by 28 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 24 of its 36 references that are in the map. First posted on arXiv 16 Jan 2024.
Builds on
24 of 36 references.
Closest ancestors · 8
Same direction, newest first
- 2023EdgeMoE: Empowering Sparse Large Language Models on Mobile Devices28 Aug
- 2023A Hybrid Tensor-Expert-Data Parallelism Approach to Optimize Mixture-of-Experts Training11 Mar
- 2022Accelerating Distributed MoE Training and Inference with Lina31 Oct
- 2022Tutel: Adaptive Mixture-of-Experts at Scale7 Jun
- 2022MoESys: A Distributed and Efficient Mixture-of-Experts Training and Inference System for Internet Services20 May
- 2022HetuMoE: An Efficient Trillion-scale Mixture-of-Expert Distributed Training System28 Mar
- 2022DeepSpeed-MoE: Advancing Mixture-of-Experts Inference and Training to Power Next-Generation AI Scale14 Jan
- 2021FastMoE: A Fast Mixture-of-Expert Training System24 Mar
Other references · 16
- 2017Attention Is All You Needcited by 59,932
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2023GPT-4 Technical Reportcited by 18,132
- 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
- 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
- 2014How transferable are features in deep neural networks?cited by 1,216
- 2021Scaling Vision with Sparse Mixture of Expertscited by 740
- 2022Mixture-of-Experts with Expert Choice Routingcited by 611
4 more
- 2021Sparsity in Deep Learning: Pruning and growth for efficient inference and training in neural networkscited by 521
- 2021Efficient Large Scale Language Modeling with Mixtures of Expertscited by 175
- 2023Scaling Vision-Language Models with Sparse Mixture of Expertscited by 88
- 2023TA-MoE: Topology-Aware Large Scale Mixture-of-Expert Trainingcited by 15
Built on by
Citing papers per year: 2024: 5; 2025: 14; 2026: 9.
28 papers.
Sort:
By area:
- 2024A Survey on Mixture of Experts in Large Language Modelscited by 233
- 2024LLM Inference Serving: Survey of Recent Advances and Opportunitiescited by 46
- 2024A Survey on Inference Optimization Techniques for Mixture of Experts Modelscited by 46
- 2025MoETuner: Optimized Mixture of Expert Serving with Balanced Expert Placement and Token Routingcited by 26
- 2025GRACE-MoE: Grouping and Replication with Locality-Aware Routing for Efficient Distributed MoE Inferencecited by 12
- 2025Semantic Parallelism: Redefining Efficient MoE Inference via Model-Data Co-Schedulingcited by 9
- 2025Stratum: System-Hardware Co-Design with Tiered Monolithic 3D-Stackable DRAM for Efficient MoE Servingcited by 9
- 2025LayerScope: Predictive Cross-Layer Scheduling for Efficient Multi-Batch MoE Inference on Legacy Serverscited by 8
- 2024Designing Large Foundation Models for Efficient Training and Inference: A Surveycited by 7
- 2025HarMoEny: Efficient Multi-GPU Inference of MoE Modelscited by 7
- 2025SlimCaching: Edge Caching of Mixture-of-Experts for Distributed Inferencecited by 7
- 2025Patterns behind Chaos: Forecasting Data Movement for Efficient Large-Scale MoE LLM Inferencecited by 6
16 more
- 2025CoServe: Efficient Collaboration-of-Experts (CoE) Model Inference with Limited Memorycited by 5
- 2025Efficient MoE Serving in the Memory-Bound Regime: Balance Activated Experts, Not Tokenscited by 5
- 2026Synergistic Intra- and Cross-Layer Regularization Losses for MoE Expert Specializationcited by 5
- 2025DuoServe-MoE: Dual-Phase Expert Prefetch and Caching for LLM Inference QoS Assurancecited by 4
- 2025Toward Cost-Efficient Serving of Mixture-of-Experts with Asynchronycited by 3
- 2026Scaling Multi-Node Mixture-of-Experts Inference Using Expert Activation Patternscited by 2
- 2024Staleness-Centric Optimizations for Parallel Diffusion MoE Inferencecited by 1
- 2026Multi-Layer Scheduling for MoE-Based LLM Reasoningcited by 1
- 2026MoE-Prefill: Zero Redundancy Overheads in MoE Prefill Servingcited by 1
- 2026ViBE: Co-Optimizing Workload Skew and Hardware Variability for MoE Servingcited by 1
- 2025Accelerating MoE Model Inference with Expert Shardingcited by 0
- 2025PC-MoE: Memory-Efficient and Privacy-Preserving Collaborative Training for Mixture-of-Experts LLMscited by 0
- 2026Expert Streaming: Accelerating Low-Batch MoE Inference via Multi-chiplet Architecture and Dynamic Expert Trajectory Schedulingcited by 0
- 2026Federation of Experts: Communication Efficient Distributed Inference for Large Language Modelscited by 0
- 2026GEM: GPU-Variability-Aware Expert to GPU Mapping for MoE Systemscited by 0
- 2026Efficient Expert-Parallel Communication on PCIe-Connected Consumer GPUscited by 0
- 2026Efficient Expert-Parallel Communication on PCIe-Connected Consumer GPUs30 Sep 2026
- 2026ViBE: Co-Optimizing Workload Skew and Hardware Variability for MoE Serving30 May 2026
- 2026GEM: GPU-Variability-Aware Expert to GPU Mapping for MoE Systems19 May 2026
- 2026Federation of Experts: Communication Efficient Distributed Inference for Large Language Models7 May 2026
- 2026MoE-Prefill: Zero Redundancy Overheads in MoE Prefill Serving3 May 2026
- 2026Scaling Multi-Node Mixture-of-Experts Inference Using Expert Activation Patterns25 Apr 2026
- 2026Expert Streaming: Accelerating Low-Batch MoE Inference via Multi-chiplet Architecture and Dynamic Expert Trajectory Scheduling29 Mar 2026
- 2026Multi-Layer Scheduling for MoE-Based LLM Reasoning25 Feb 2026
- 2026Synergistic Intra- and Cross-Layer Regularization Losses for MoE Expert Specialization15 Feb 2026
- 2025Efficient MoE Serving in the Memory-Bound Regime: Balance Activated Experts, Not Tokens10 Dec 2025
- 2025Patterns behind Chaos: Forecasting Data Movement for Efficient Large-Scale MoE LLM Inference7 Oct 2025
- 2025Stratum: System-Hardware Co-Design with Tiered Monolithic 3D-Stackable DRAM for Efficient MoE Serving6 Oct 2025
16 more
- 2025GRACE-MoE: Grouping and Replication with Locality-Aware Routing for Efficient Distributed MoE Inference29 Sep 2025
- 2025LayerScope: Predictive Cross-Layer Scheduling for Efficient Multi-Batch MoE Inference on Legacy Servers28 Sep 2025
- 2025DuoServe-MoE: Dual-Phase Expert Prefetch and Caching for LLM Inference QoS Assurance9 Sep 2025
- 2025SlimCaching: Edge Caching of Mixture-of-Experts for Distributed Inference9 Jul 2025
- 2025HarMoEny: Efficient Multi-GPU Inference of MoE Models14 Jun 2025
- 2025PC-MoE: Memory-Efficient and Privacy-Preserving Collaborative Training for Mixture-of-Experts LLMs3 Jun 2025
- 2025Toward Cost-Efficient Serving of Mixture-of-Experts with Asynchrony13 May 2025
- 2025Accelerating MoE Model Inference with Expert Sharding11 Mar 2025
- 2025Semantic Parallelism: Redefining Efficient MoE Inference via Model-Data Co-Scheduling6 Mar 2025
- 2025CoServe: Efficient Collaboration-of-Experts (CoE) Model Inference with Limited Memory4 Mar 2025
- 2025MoETuner: Optimized Mixture of Expert Serving with Balanced Expert Placement and Token Routing10 Feb 2025
- 2024A Survey on Inference Optimization Techniques for Mixture of Experts Models18 Dec 2024
- 2024Staleness-Centric Optimizations for Parallel Diffusion MoE Inference25 Nov 2024
- 2024Designing Large Foundation Models for Efficient Training and Inference: A Survey3 Sep 2024
- 2024LLM Inference Serving: Survey of Recent Advances and Opportunities17 Jul 2024
- 2024A Survey on Mixture of Experts in Large Language Models26 Jun 2024
- 2024A Survey on Mixture of Experts in Large Language Modelscited by 233
- 2024A Survey on Inference Optimization Techniques for Mixture of Experts Modelscited by 46
- 2025MoETuner: Optimized Mixture of Expert Serving with Balanced Expert Placement and Token Routingcited by 26
- 2025GRACE-MoE: Grouping and Replication with Locality-Aware Routing for Efficient Distributed MoE Inferencecited by 12
- 2025Semantic Parallelism: Redefining Efficient MoE Inference via Model-Data Co-Schedulingcited by 9
- 2025Stratum: System-Hardware Co-Design with Tiered Monolithic 3D-Stackable DRAM for Efficient MoE Servingcited by 9
- 2025LayerScope: Predictive Cross-Layer Scheduling for Efficient Multi-Batch MoE Inference on Legacy Serverscited by 8
- 2025HarMoEny: Efficient Multi-GPU Inference of MoE Modelscited by 7
- 2025SlimCaching: Edge Caching of Mixture-of-Experts for Distributed Inferencecited by 7
- 2025Patterns behind Chaos: Forecasting Data Movement for Efficient Large-Scale MoE LLM Inferencecited by 6
- 2025Efficient MoE Serving in the Memory-Bound Regime: Balance Activated Experts, Not Tokenscited by 5
- 2026Synergistic Intra- and Cross-Layer Regularization Losses for MoE Expert Specializationcited by 5
12 most cited of 25 All 25 (JSON)
- 2026Efficient Expert-Parallel Communication on PCIe-Connected Consumer GPUs30 Sep 2026
- 2026ViBE: Co-Optimizing Workload Skew and Hardware Variability for MoE Serving30 May 2026
- 2026GEM: GPU-Variability-Aware Expert to GPU Mapping for MoE Systems19 May 2026
- 2026Federation of Experts: Communication Efficient Distributed Inference for Large Language Models7 May 2026
- 2026MoE-Prefill: Zero Redundancy Overheads in MoE Prefill Serving3 May 2026
- 2026Scaling Multi-Node Mixture-of-Experts Inference Using Expert Activation Patterns25 Apr 2026
- 2026Expert Streaming: Accelerating Low-Batch MoE Inference via Multi-chiplet Architecture and Dynamic Expert Trajectory Scheduling29 Mar 2026
- 2026Multi-Layer Scheduling for MoE-Based LLM Reasoning25 Feb 2026
- 2026Synergistic Intra- and Cross-Layer Regularization Losses for MoE Expert Specialization15 Feb 2026
- 2025Efficient MoE Serving in the Memory-Bound Regime: Balance Activated Experts, Not Tokens10 Dec 2025
- 2025Patterns behind Chaos: Forecasting Data Movement for Efficient Large-Scale MoE LLM Inference7 Oct 2025
- 2025Stratum: System-Hardware Co-Design with Tiered Monolithic 3D-Stackable DRAM for Efficient MoE Serving6 Oct 2025
12 newest of 25 All 25 (JSON)
Similar, not cited
Close in wording, no citation either way
- 2023Pre-gated MoE: An Algorithm-System Co-Design for Fast and Scalable Mixture-of-Expert Inference
- 2025Klotski: Efficient Mixture-of-Expert Inference via Expert-Aware Multi-Batch Pipeline
- 2026Fast MoE Inference via Predictive Prefetching and Expert Replication
- 2023Pipeline MoE: A Flexible MoE Implementation with Pipeline Parallelism
- 2024ExpertFlow: Efficient Mixture-of-Experts Inference via Predictive Expert Caching and Token Scheduling
- 2026Speculating Experts Accelerates Inference for Mixture-of-Experts
- 2026Training Communication-Efficient Mixture-of-Experts Language Models with Layer Re-Configuration
- 2026MoE Lens -- An Expert Is All You Need