Towards Principled Fine-Grained MoE Expert Pruning via Pseudo-Boolean Approximation

Zongfang Liu, Ziheng Cheng, Jinghui Zhang, Shengkun Tang, Weijie Wang, Zhiqiang Shen, Xin YuanNeurIPS 2026

TL;DR

Modern Mixture-of-Experts (MoE) language models save compute by only activating a fraction of their parameters per token, yet they still hog massive amounts of GPU memory because every single expert must sit in VRAM. Trying to prune redundant experts by searching for the optimal combination fails spectacularly as models scale to dozens of experts per layer, while naive, independent scoring works surprisingly well. This paper explains why—showing that cross-layer domino effects matter far more than within-layer teamwork—and introduces MoE-PBA, a fast, sequential pruning method that beats both global search and leading score-based baselines.

What Problem Does This Paper Address?

Mixture-of-Experts (MoE) models swap out standard Transformer feed-forward networks for a pool of specialized sub-networks ("experts") and a router that picks just a few per token. Inference is fast, but deployment is a memory headache: you still have to load the entire expert pool into memory. Fortunately, many experts are functionally redundant, making post-training expert pruning (permanently deleting underused experts) an attractive fix.

Historically, pruning methods split into two camps: search-based (optimizing expert combinations globally) and score-based (grading each expert in isolation and axing the lowest scorers). Search-based methods worked great on older, coarse-grained models like Mixtral-8x7B (8 experts per layer). However, modern "fine-grained" MoEs like Qwen3-30B pack 128 experts across 48 layers. Pruning 25% of them yields roughly $10^{1448}$ possible combinations.

Figure 1: Score-based pruning remains unex- pectedly strong on fine-grained Qwen3-30B at a 25% pruning ratio. On this MoE with 128 ex- perts per layer, the search-based baselines EEP[19] and DiEP[20] often fall substantially inside the full-model curve across benchmarks, with DiEP showing especially severe degradation on several tasks. In contrast, the score-based method REAP closely tracks the unpruned model on most axes and consistently outperforms the search-based al- ternatives. EEP and DiEP use their default settings.

Under this combinatorial explosion, global search algorithms choke and model accuracy collapses—yet simple score-based methods that completely ignore expert interactions remain unexpectedly strong. Why don't expert interactions seem to matter as much as we thought, and which interactions do we actually need to care about?

Methods

To untangle this mystery, the authors frame expert pruning as a constrained pseudo-Boolean optimization (PBO) problem—essentially a mathematical equation over binary switches ($1$ = drop expert, $0$ = keep) that outputs total model damage. In this polynomial expansion, first-order terms measure the damage of deleting a single expert alone, while higher-order terms capture non-additive synergies when dropping groups of experts together.

Guided by empirical diagnostics on these interaction terms, the authors propose MoE-PBA (Pseudo-Boolean Approximation), which combines two clean ideas:

  • Prefix-Conditioned Cross-Layer Pruning (Novel): Instead of pruning all layers at once or completely independently, MoE-PBA works sequentially from layer $1$ to $L$. When evaluating layer $\ell$, it feeds in the perturbed hidden states produced by the already-pruned earlier layers ($1 \dots \ell-1$), comparing the output against the unpruned dense reference.
  • Singleton-Additive Within-Layer Approximation: Within layer $\ell$, rather than searching over combinations of experts, MoE-PBA tests dropping just one expert at a time ($O(n)$ forward passes per layer), sums those individual damages, and cuts the $q$ least-damaging experts. (An optional, slower greedy refinement variant, MoE-PBA-G, picks experts one-by-one within the layer if you have spare compute).

Datasets

No new benchmarks are introduced; the authors use established datasets for calibration (128 packed 4096-token sequences) and zero-shot evaluation:

  • Calibration: evol-codealpaca-v1 (for coding tasks) and tulu-3-sft-personas-math (for math and multiple-choice tasks).
  • Evaluation: EvalPlus and LiveCodeBench (coding); GSM8K and MATH-500 (math reasoning); MMLU and OpenBookQA (general knowledge/multiple-choice).

Key Insights and Ideas

  • Within-layer synergy is mostly a myth in fine-grained MoEs: Diagnostic swap tests show that inside a single layer, the damage of removing multiple experts is almost entirely additive. Dropping four experts together hurts roughly as much as the sum of dropping each alone, explaining why naive score-based methods don't fall apart.
  • Cross-layer drift is the real culprit: Pruning Layer 2 changes the hidden-state distribution fed into Layer 3's router and experts. Measuring submodularity across layers reveals that interaction effects grow noticeably stronger further downstream.
Submodularity diagnostics across four MoEs show high ratios within layers (h=0) that dip at downstream horizons (h=1..4), highlighting cross-layer drift.
  • Sequential conditioning hits the sweet spot: Simply updating the input hidden states as you march down the network captures the interactions that actually matter, dodging combinatorial search completely.

Key Results

Tested across four diverse MoEs—OLMoE-7B, DeepSeek-V2-Lite (16B), ERNIE-4.5 (21B), and Qwen3 (30B)—at 25% and 50% pruning ratios, MoE-PBA achieves the best overall rank in 5 out of 6 settings:

  • Preserving reasoning & code: On OLMoE-7B (25% pruned), MoE-PBA reaches 0.176 Code Avg and 0.412 Math Avg, beating the top score-based baseline REAP (0.143 / 0.375) and crushing search baselines like EEP (0.085 / 0.271) and DiEP (0.000 / 0.006).
  • Stronger under heavy pruning: On Qwen3-30B at 50% pruning (half of all experts deleted!), MoE-PBA retains 0.617 Code Avg (vs. 0.619 unpruned!) and 0.831 Math Avg (vs. REAP's 0.805, while search methods drop near zero).
  • Speed: On OLMoE-7B, MoE-PBA finishes pruning in 1.08 hours, compared to 7.35 hours for EEP and 15.57 hours for $\text{MoE-I}^2$.

Limitations and Future Work

  • Calibration bias: Because MoE-PBA minimizes output drift on a calibration set, it shines at domain-specific compression (e.g., preserving coding or math) but is less suited for purely task-agnostic pruning—models calibrated on math data showed mixed results when tested on general multiple-choice benchmarks.
  • Pruning only: The framework strictly deletes whole experts under uniform layer budgets, leaving alternatives like expert merging or unstructured weight pruning for future exploration.

Summary updated

Abstract

Mixture-of-Experts (MoE) language models improve parameter efficiency by activating only a small subset of experts per token, but all experts must still be stored at inference time, making memory a key deployment bottleneck. Expert pruning is therefore a practical post-training compression strategy, but existing methods face a fundamental tension: search-based approaches attempt to capture expert interaction effects through joint optimization, yet become intractable for modern fine-grained MoE models; score-based approaches, by contrast, ignore such effects, but remain efficient and often surprisingly effective. To understand this tension, we formulate expert pruning as a constrained pseudo-Boolean optimization problem and empirically analyze the interaction effects induced by pruning. Our results show that cross-layer interaction effects are relatively more important, since pruning earlier layers changes the hidden-state distribution for later ones, whereas within-layer effects are often well approximated by additive singleton damages. Based on this observation, we propose MoE-PBA, a prefix-conditioned pruning method that prunes layers sequentially under the hidden states produced by the already-pruned prefix. Across four representative fine-grained MoE language models with distinct architectures and parameter scales ranging from 7B to 30B, MoE-PBA achieves a substantially better accuracy--efficiency trade-off than search-based methods and outperforms the strong score-based baseline on diverse downstream benchmarks. Code is available at https://github.com/ZongfangLiu/MoE-PBA.
BibTeX
@inproceedings{liu2026towards,
  author = {Zongfang Liu and Ziheng Cheng and Jinghui Zhang and Shengkun Tang and Weijie Wang and Zhiqiang Shen and Xin Yuan},
  title = {{Towards Principled Fine-Grained MoE Expert Pruning via Pseudo-Boolean Approximation}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=3mjFgM0ciF},
}
Figure