Mixture-of-Experts (MoE) models reduce computation through sparse expert activation, but deployment still requires storing a large number of expert parameters. We study post-training expert pruning using task-domain calibration data as a subset-selection problem: given a pretrained MoE layer, select a fixed number of experts that best reconstruct its original output. Exact subset search is combinatorial and becomes intractable for modern MoE models with many experts per layer. We develop OptEP, a scalable continuous relaxation that directly optimizes differentiable expert-selection variables, followed by a lightweight reconstruction-based update of the retained expert weights. Across multiple MoE architectures and tasks spanning mathematical reasoning and code generation, our approach improves over the strongest existing expert-pruning baselines, with absolute accuracy gains of up to 15.05% on Qwen3-30B-A3B, 14.55% on Qwen3-235B-A22B, 11.06% on GLM-4.5-Air, and 16.20% on Mixtral-8x7B. The improvements are particularly pronounced under aggressive pruning, demonstrating that reconstruction-driven expert selection and weight adaptation can preserve substantially more of the original model's performance while reducing the number of retained experts.
Figures & tables
Method
Math (MATH-500)
Coding (LiveCodeBench)
s=32
s=48
s=64
s=48
s=64
s=96
Random
0.00
0.00
0.00
0.00
0.00
0.00
Frequency
1.40
19.27
66.33
0.00
1.87
61.44
EASY-EP
31.73
93.73
94.60
17.54
54.73
61.07
REAP
76.07
91.93
94.73
38.43
52.49
59.83
M-SMoE
1.33
1.00
1.07
0.00
0.00
59.83
Table 1: Expert pruning results for Qwen3-30B-A3B on math (MATH-500 pass@1) and coding (LiveCodeBench pass@1). Results are mean accuracy in % over three calibration seeds.
Method
Math (MATH-500)
Coding (LiveCodeBench)
s=32
s=48
s=64
s=48
s=64
s=96
Random
0.67
1.13
0.60
0.00
0.00
0.00
Frequency
0.07
0.27
93.20
0.00
45.52
64.43
EASY-EP
71.33
93.20
95.20
41.67
56.97
61.19
REAP
84.07
93.60
96.07
41.17
61.69
64.68
M-SMoE
0.67
0.13
60.07
0.00
27.11
64.68
Table 2: Expert pruning results for Qwen3-235B-A22B on math (MATH-500 pass@1) and coding (LiveCodeBench pass@1). Results are mean accuracy in % over three calibration seeds.
Method
Math (MATH-500)
Coding (LiveCodeBench)
s=32
s=48
s=64
s=64
s=80
s=96
Random
1.40
5.13
27.07
0.50
3.48
22.39
Frequency
26.47
56.93
74.87
3.23
14.68
32.21
EASY-EP
71.80
92.07
95.53
45.77
54.85
64.30
REAP
75.87
93.73
96.60
49.88
59.33
64.18
M-SMoE
2.47
27.53
67.27
1.24
9.33
27.49
Table 3: Expert pruning results for GLM-4.5-Air on math (MATH-500 pass1) and coding (LiveCodeBench pass1). Results are mean accuracy in % over three calibration seeds.
Method
Math (GSM8K)
Coding (MBPP)
s=4
s=6
s=4
s=6
Random
3.08
20.15
7.74
40.25
Frequency
8.75
8.96
18.71
37.51
EASY-EP
7.01
25.26
28.70
47.57
REAP
11.45
23.55
25.07
44.49
M-SMoE
10.63
30.51
24.45
38.05
Table 4: Expert pruning results for Mixtral-8x7B-v0.1 on math (GSM8K flexible extraction) and coding (MBPP standard pass@1). Results are mean accuracy in % over five seeds.
Appendix figures & tables7 assets
Supplementary material from the paper’s appendix.
Appendix
Method
Experts retained per layer
s=32
s=48
s=64
Random
0.00±0.00
0.00±0.00
0.00±0.00
Frequency
1.40±0.12
19.27±4.48
66.33±7.80
EASY-EP
31.73±4.68
93.73±0.13
94.60±0.40
REAP
76.07±3.21
91.93±0.58
94.73±0.24
M-SMoE
1.33±0.29
1.00±0.31
1.07±0.41
Appendix
Table 5: Expert pruning on Qwen3-30B-A3B, evaluated on MATH-500. Results are mean accuracy ± standard error over three calibration seeds.
Method
Experts retained per layer
s=48
s=64
s=96
Random
0.00±0.00
0.00±0.00
0.00±0.00
Frequency
0.00±0.00
1.87±0.43
61.44±0.25
EASY-EP
17.54±1.92
54.73±0.97
61.07±0.69
REAP
38.43±1.68
52.49±0.76
59.83±1.06
M-SMoE
0.00±0.00
0.00±0.00
59.83±0.90
Appendix
Table 6: Expert pruning on Qwen3-30B-A3B, evaluated on LiveCodeBench v4–v5. Results are mean accuracy ± standard error over three calibration seeds.
Method
Experts retained per layer
s=32
s=48
s=64
Random
0.67±0.29
1.13±0.07
0.60±0.00
Frequency
0.07±0.07
0.27±0.07
93.20±0.46
EASY-EP
71.33±7.64
93.20±0.92
95.20±0.50
REAP
84.07±2.42
93.60±0.23
96.07±0.37
M-SMoE
0.67±0.29
0.13±0.07
60.07±13.75
Appendix
Table 7: Expert pruning on Qwen3-235B-A22B, evaluated on MATH-500. Results are mean accuracy ± standard error over three calibration seeds.
Method
Experts retained per layer
s=48
s=64
s=96
Random
0.00±0.00
0.00±0.00
0.00±0.00
Frequency
0.00±0.00
45.52±2.06
64.43±2.37
EASY-EP
41.67±4.21
56.97±0.33
61.19±1.41
REAP
41.17±2.61
61.69±1.73
64.68±1.40
M-SMoE
0.00±0.00
27.11±2.52
64.68±1.76
Appendix
Table 8: Expert pruning on Qwen3-235B-A22B, evaluated on LiveCodeBench v4–v5. Results are mean accuracy ± standard error over three calibration seeds.
Method
Experts retained per layer
s=32
s=48
s=64
Random
1.40±0.12
5.13±0.64
27.07±6.89
Frequency
26.47±1.16
56.93±4.91
74.87±3.96
EASY-EP
71.80±2.66
92.07±1.07
95.53±0.79
REAP
75.87±2.03
93.73±0.07
96.60±0.31
M-SMoE
2.47±0.58
27.53±2.49
67.27±3.46
Appendix
Table 9: Expert pruning on GLM-4.5-Air, evaluated on MATH-500. Results are mean accuracy ± standard error over three calibration seeds.
Method
Experts retained per layer
s=64
s=80
s=96
Random
0.50±0.25
3.48±0.69
22.39±4.93
Frequency
3.24±0.25
14.68±1.51
32.21±2.00
EASY-EP
45.77±1.67
54.85±0.78
64.30±1.08
REAP
49.88±0.54
59.33±1.41
64.18±0.37
M-SMoE
1.24±0.12
9.33±0.86
27.49±1.59
Appendix
Table 10: Expert pruning on GLM-4.5-Air, evaluated on LiveCodeBench v4–v5. Results are mean accuracy ± standard error over three calibration seeds.
Method
Math (GSM8K)
Coding (MBPP)
s=4
s=6
s=4
s=6
Random
3.08±1.44
20.15±2.13
7.74±4.68
40.25±0.66
Frequency
8.75±0.48
8.96±0.24
18.71±0.40
37.51±0.60
EASY-EP
7.01±0.24
25.26±0.15
28.70±0.96
47.57±0.34
REAP
11.45±0.79
23.55±0.55
25.07±0.72
44.49±0.21
M-SMoE
10.63±2.33
30.51±0.38
24.45±0.65
38.05±0.38
Appendix
Table 11: Expert pruning results for Mixtral-8x7B-v0.1 on math (GSM8K flexible extraction) and coding (MBPP standard pass@1). Results are mean accuracy ± standard error in % over five seeds.
Institute of Automation, Chinese Academy of Sciences · School of Artificial Intelligence, University of Chinese Academy of Sciences · Zhongguancun Academy +1