Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

Domain-Specific Pruning of Large Mixture-of-Experts Models with Few-shot Demonstrations

About

Mixture-of-Experts (MoE) models achieve a favorable trade-off between performance and inference efficiency by activating only a subset of experts. However, the memory overhead of storing all experts remains a major limitation, especially in large-scale MoE models such as DeepSeek-R1(671B). In this study, we investigate domain specialization and expert redundancy in large-scale MoE models and uncover a consistent behavior we term few-shot expert localization, with only a few in-domain demonstrations, the model consistently activates a sparse and stable subset of experts on tasks within the same domain. Building on this observation, we propose a simple yet effective pruning framework, EASY-EP, that leverages a few domain-specific demonstrations to identify and retain only the most relevant experts. EASY-EP comprises two key components: output-aware expert importance assessment and expert-level token contribution estimation. The former evaluates the importance of each expert for the current token by considering the gating scores and L2 norm of the outputs of activated experts, while the latter assesses the contribution of tokens based on representation similarities before and after routed experts. Experiments on DeepSeek-R1 and DeepSeek-V3-0324 show that our method can achieve comparable performances and $2.99\times$ throughput under the same memory budget with full model with only half the experts.

Zican Dong, Han Peng, Peiyu Liu, Wayne Xin Zhao, Dong Wu, Feng Xiao, Zhifeng Wang• 2025

Related benchmarks

TaskDatasetResultRank
Commonsense ReasoningHellaSwag
Accuracy56.19
1896
Commonsense ReasoningWinoGrande
Accuracy71.67
1581
Language UnderstandingMMLU
Accuracy53.75
844
Question AnsweringARC
Accuracy44.88
230
Medical Question AnsweringMedQA
Accuracy41.01
153
Science Question AnsweringARC Easy
Accuracy80.1
108
Code GenerationLiveCodeBench
Accuracy62.36
84
Math ReasoningMATH 500
Accuracy97.2
38
Science Question AnsweringARC Challenge
Character-level Accuracy68.3
37
Science Question AnsweringGPQA
Accuracy76.74
27
Showing 10 of 16 rows

Other info

Follow for update