Organizations: National Key Laboratory of Parallel and Distributed Computing, College of Computer Science and Technology, National University of Defense Technology
Mixture-of-Experts (MoE) has become a dominant architecture for scaling large language models due to their sparse activation mechanism. However, the substantial number of expert activations creates a critical latency bottleneck during inference, especially in resource-constrained deployment scenarios. Existing approaches that reduce expert activations potentially lead to severe model performance degradation. In this work, we introduce the concept of activation budget as a constraint on the number of expert activations and propose Alloc-MoE, a unified framework that optimizes budget allocation coordinately at both the layer and token levels to minimize performance degradation. At the layer level, we introduce Alloc-L, which leverages sensitivity profiling and dynamic programming to determine the optimal allocation of expert activations across layers. At the token level, we propose Alloc-T, which dynamically redistributes activations based on routing scores, optimizing budget allocation without increasing latency. Extensive experiments across multiple MoE models demonstrate that Alloc-MoE maintains model performance under a constrained activation budget. Especially, Alloc-MoE achieves 1.15× prefill and 1.34× decode speedups on DeepSeek-V2-Lite at half of the original budget.
Figures & tables
Figure 1: (a) Reducing the number of expert activations per token increases speedup but decreases accuracy. (b) Alloc-MoE achieves inference latency comparable to the mainstream expert activation reduction method while retaining performance close to that of the original full-activation model when halving expert activation per token. All results are measured on DeepSeek-V2-Lite. Speedup is computed as the inference latency of the original model (with 6 expert activations per token) divided by the latency of the evaluated method.
Figure 2: Overview of the Alloc-MoE framework, consisting of two components: Alloc-L (left) profiles layer-wise sensitivity to construct a sensitivity matrix and applies dynamic programming to determine the optimal layer-level activation budget K∗ under a global expert activation budget B ; Alloc-T (right) adaptively redistributes expert activations across tokens based on routing scores, maximizing the total routing weight while respecting the layer-wise budgets.
Model
# MoE Layers
# Act. / Tot. Experts
# Act. / Tot. Params.
DeepSeek
26
6 / 64
2.4B / 15.7B
Qwen
24
4 / 60
2.7B / 14.3B
OLMoE
16
8 / 64
1.0B / 7.0B
Table 1: Architectural details of the evaluated MoE models.
Figure 3: Alloc-MoE Results on DeepSeek-V2-Lite under varying global activation budgets. (a) NLU task, (b) Reasoning task and (c) Math task.
Figure 4: Ablation results of Alloc-L on DeepSeek-V2-Lite under varying global activation budgets. (a) shows NLU task, (b) Reasoning task and (c) Math task.
Figure 5: Speedup ratios for (a) prefill and (b) decode stages under varying global activation budgets.
Figure 6: Ablation results of Alloc-T on DeepSeek-V2-Lite under varying global activation budgets. (a) shows NLU task, (b) Reasoning task and (c) Math task.
Kbase
Budget
Avg.
52
78
104
130
0
42.68
45.36
45.99
46.09
45.03
1
42.83
45.42
45.93
46.30
45.12
2
41.13
45.02
45.83
46.17
44.54
3
41.13
43.77
45.84
46.08
44.21
4
41.13
43.77
45.52
45.80
44.06
Table 2: Analysis of Kbase in Alloc-T on DeepSeek-V2-Lite under Uniform allocation strategy. Results are averaged across three task groups, with the last column showing the average performance across all budgets.
Figure 7: Expert load distributions in the 10-th MoE layer of DeepSeek-V2-Lite under the original configuration and Alloc-MoE with Budget = 78. Alloc-MoE preserves the load pattern while reducing per-expert load, potentially lowering inter-device communication overhead.
Figure 8: Analysis of load balance across layers. Including Spearman rank correlation (blue, left axis), Entropy delta (red, right axis), and JS divergence (green, right axis).
Dataset
Budget
Avg.
52
78
104
130
WikiText2
41.53
44.61
45.76
46.47
44.59
C4
41.56
45.05
45.83
45.94
44.60
Pile
42.55
45.05
45.29
45.84
44.68
Table 3: Impact of different calibration datasets on DeepSeek-V2-Lite with Alloc-L under varying budgets.
Method
Budget
Avg.
52
78
104
130
Uniform
41.27
43.90
45.51
46.06
44.19
+L
41.53
44.61
45.76
46.47
44.59
+T
42.83
45.42
45.93
46.30
45.12
+L +T
43.09
45.48
46.01
46.17
45.19
Table 4: Ablation study of Alloc-L ( +L ) and Alloc-T ( +T ) on DeepSeek-V2-Lite under varying global activation budgets. Results are averaged across three task groups, with the last column showing the average performance across all budgets.
Appendix figures & tables8 assets
Supplementary material from the paper’s appendix.
Appendix
Kbase
Budget
Avg.
48
60
72
84
0
46.87
47.86
48.06
48.63
47.86
1
46.89
47.84
48.23
48.66
47.91
2
46.00
47.93
48.33
48.69
47.74
3
46.00
47.90
48.25
48.48
47.66
Appendix
Table 5: Analysis of Kbase in Alloc-T on Qwen1.5-MoE-A2.7B under Uniform allocation strategy. Results are averaged across three task groups, with the last column showing the average performance across all budgets.
Kbase
Budget
Avg.
64
80
96
112
0
37.27
38.47
39.14
39.55
38.61
1
37.38
38.50
39.09
39.61
38.65
2
37.39
38.49
39.16
39.55
38.65
3
37.53
38.56
39.05
39.51
38.66
4
36.77
38.56
39.04
39.49
38.47
Appendix
Table 6: Analysis of the Kbase in Alloc-T on OLMoE-1B-7B-0924 under Uniform allocation strategy. Results are averaged across three task groups, with the last column showing the average performance across all budgets.
Method
Budget
Avg.
48
60
72
84
Uniform
46.07
47.35
48.18
48.10
47.43
+L
46.11
47.78
48.33
48.59
47.70
+T
46.89
47.84
48.19
48.66
47.90
+L +T
46.96
47.54
48.19
48.63
47.83
Appendix
Table 7: Ablation study of Alloc-L ( +L ) and Alloc-T ( +T ) on Qwen1.5-MoE-A2.7B under varying global activation budgets. Results are averaged across three task groups, with the last column showing the average performance across all budgets.
Method
Budget
Avg.
64
80
96
112
Uniform
36.70
37.83
38.93
39.30
38.19
+L
37.08
38.21
39.09
39.35
38.43
+T
37.38
38.50
39.06
39.61
38.64
+L +T
37.53
38.59
39.27
39.53
38.73
Appendix
Table 8: Ablation study of Alloc-L ( +L ) and Alloc-T ( +T ) on OLMoE-1B-7B-0924 under varying global activation budgets. Results are averaged across three task groups, with the last column showing the average performance across all budgets.
Figure 9: Alloc-MoE results on Qwen1.5-MoE-A2.7B and OLMoE-1B-7B-0924 under varying global activation budgets. (a–c) report results on Qwen1.5-MoE-A2.7B, while (d–f) correspond to OLMoE-1B-7B-0924. For each model, (a,d) show NLU tasks, (b,e) Reasoning tasks, and (c,f) Math tasks.
Figure 10: Ablation results of Alloc-L on Qwen1.5-MoE-A2.7B and OLMoE-1B-7B-0924 under varying global activation budgets. (a–c) report results on Qwen1.5-MoE-A2.7B, while (d–f) correspond to OLMoE-1B-7B-0924. For each model, (a,d) show NLU tasks, (b,e) Reasoning tasks, and (c,f) Math tasks.
Figure 11: Ablation results of Alloc-T on Qwen1.5-MoE-A2.7B and OLMoE-1B-7B-0924 under varying global activation budgets. (a–c) report results on Qwen1.5-MoE-A2.7B, while (d–f) correspond to OLMoE-1B-7B-0924. For each model, (a,d) show NLU tasks, (b,e) Reasoning tasks, and (c,f) Math tasks.
Figure 12: (a) Layer-wise allocation of Alloc-MoE on DeepSeek-V2-Lite with Budget = 78, demonstrating a clearly non-uniform distribution across layers. Earlier layers retain larger expert budgets, while deeper layers operate with fewer activated experts. (b) Entropy results on the 10-th MoE layer of DeepSeek-V2-Lite. Low-entropy (high-confidence) tokens retain fewer experts, whereas high-entropy (ambiguous) tokens retain more. Similar patterns are observed across layers.
Most recent state-of-the-art (SOTA) large language models (LLMs) use Mixture-of-Experts (MoE) architectures to scale model capacity without proportional per-token compute, enabling higher-quality outputs at manageable serving costs. However, MoE inference at scale is fundamentally bottlenecked by expert load imbalance and inefficient token routing, especially in multi-node deployments where tokens are not guaranteed to be routed to local experts, resulting in significant inter-node all-to-all communication overhead. To systematically characterize these challenges, we profile SOTA open-source MoE models, including Llama 4 Maverick, DeepSeek V3-671B, and Qwen3-230B-A22B, on various datasets and collected over 100k real expert activation traces. Upon studying the expert activation patterns, we uncover various persistent properties across all the frontier MoE models: variable expert load imbalance, domain-specific expert activation where expert popularity shifts across task families (code, math, chat, general), and a strong correlation between prefill and decode expert activations. Motivated by these findings, we propose workload-aware micro-batch grouping and an expert placement strategy to maximize token locality to the destination expert, thereby reducing inter-node communication. Across models and datasets, these optimizations help reduce all2all communication data up to 20, resulting in lower MoE decode latency and better accelerator utilization.
Abhimanyu Bambhaniya, Geonhwa Jeong, Jason Park +6
1Georgia Institute of Technology, USA · 2Meta Platforms, Inc.
Mixture-of-Experts (MoE) models have gained popularity as a means of scaling the capacity of large language models (LLMs) while maintaining sparse activations and reduced per-token compute. However, in memory-constrained inference settings, expert weights must be offloaded to CPU, creating a performance bottleneck from CPU-GPU transfers during decoding. We propose an expert prefetching scheme that leverages currently computed internal model representations to speculate future experts, enabling memory transfers to overlap with computation. Across multiple MoE architectures, we demonstrate that future experts can be reliably predicted by these internal representations. We also demonstrate that executing speculated experts generally maintains downstream task accuracy, thus preserving more effective compute-memory overlap by eliminating the need to re-fetch true router-selected experts. Integrated into an optimized inference engine, our approach achieves up to 14% reduction in time per output token (TPOT) over on-demand loading of experts from CPU memory. For MoEs where speculative execution alone yields suboptimal accuracy, we further examine lightweight estimators that improve expert prediction hit rates, thereby reducing performance degradation. Our code is released in open-source at https://github.com/axonn-ai/yalis/tree/offload_prefetch.
Sparsely-activated Mixture-of-Experts (MoE) Transformers universally fix the same number of routed experts across all layers, a convention that ignores the well-documented heterogeneity in layer-wise redundancy. We demonstrate that this uniformity is systematically suboptimal and propose MAPLE, a plug-and-play framework that reallocates the routed-expert budget heterogeneously across layers of any pretrained MoE LLM, without modifying weights or requiring retraining. Our core contribution is a closed-form sensitivity-guided allocation: we probe each layer's response to variation in expert count, quantify sensitivity using three measures, and derive an analytically optimal budget assignment that directs capacity towards sensitive layers and absorbs reductions in redundant layers. This closed-form solution is further refined by a sensitivity-constrained genetic search that uses layer-wise sensitivity as a prior to guide exploration, yielding faster convergence and superior allocation quality. On four MoE models spanning different scales and architectures, MAPLE outperforms uniform and pruning-based baselines under a 75% routed-expert budget. Notably, on DeepSeek-MoE-16B, MAPLE uses only 75% of the experts yet surpasses the original 100% expert-uniform baseline on ARC-E, ARC-C, and BoolQ, improving accuracy from 65.09 to 71.40, 48.49 to 51.50, and 80.03 to 82.38, respectively. These accuracy gains translate into measured deployment efficiency: implementing MAPLE in SGLang reduces single-GPU end-to-end serving latency by 32.2% and improves throughput by 47.4%. These results show that well-designed heterogeneous allocation can be more effective than simply activating more experts, establishing it as a principled and practical axis for improving MoE efficiency.