Pruning MoE LLMs: Half Experts Removed, Full Coding Performance

Anik Jha· July 21, 2026 View original

Summary

Research shows that up to half the "experts" can be removed from Mixture-of-Experts (MoE) LLMs without detectable loss in coding performance, significantly reducing model size for domain-specific tasks. The study also reveals that perplexity is an unreliable metric for pruning and that aggressive pruning can be partially recovered with lightweight fine-tuning.

Mixture-of-Experts (MoE) large language models are powerful but often too large for typical developer machines due to their extensive pools of "expert" subnetworks. This research explores whether these models can be pruned for domain-specific tasks, specifically coding, without sacrificing performance. The study investigated two open-weight MoE models, Qwen3.6-35B-A3B and Gemma-4-26B-A4B, using five expert selection strategies. The findings are significant: up to half of the experts can be removed from either model with no statistically detectable loss on primary code benchmarks. The performance degradation primarily affects abilities outside the intended coding domain. Interestingly, the optimal pruning strategy varied between the two model families, indicating that a universal recipe does not exist. The research also highlighted that perplexity, a common metric in pruning literature, can be misleading, sometimes rating broken models higher than intact ones. Further analysis showed that lightweight fine-tuning could recover about half of the performance lost from aggressive pruning. While pruning offers memory savings, it only outperforms quantizing the full model when quantization would drop below 3 bits per weight. Attempts to overcome this crossover point, even with advanced evaluation methods, were unsuccessful. However, the study also found that single-shot benchmarks might overstate compression penalties, as a single repair turn from execution feedback could entirely erase the penalty of 2-bit quantization. This suggests expert pruning is effective but requires task-specific validation.

Why it matters

Professionals deploying large MoE LLMs, especially for specialized tasks like coding, can significantly reduce model size and computational requirements through expert pruning, making these powerful models more accessible and efficient for practical applications.

How to implement this in your domain

  1. 1Evaluate expert pruning strategies for your domain-specific MoE LLM deployments to reduce model footprint.
  2. 2Prioritize task-specific validation over general metrics like perplexity when assessing pruned models.
  3. 3Consider lightweight fine-tuning after pruning to recover any minor performance losses.
  4. 4Compare pruning benefits against quantization for memory optimization, especially for models requiring high precision.

Who benefits

Software DevelopmentAI/ML EngineeringCloud ComputingEdge AIResearch & Development

Key takeaways

  • Half of MoE LLM experts can be pruned for coding tasks without performance loss.
  • Pruning significantly reduces model size, making MoE models more accessible.
  • Perplexity is an unreliable metric for evaluating pruned models; task-specific validation is key.
  • Lightweight fine-tuning can mitigate performance drops from aggressive pruning.

Original post by Anik Jha

"arXiv:2607.16721v1 Announce Type: new Abstract: The strongest open-weight coding models are mixture-of-experts (MoE) networks: most of their size comes from large pools of "expert" subnetworks, of which only a few act on any token. That pool is why these models do not fit on the…"

View on X

Originally posted by Anik Jha on X · view source

Want to go deeper?

Turn these trends into skills with Learnijoy's hands-on AI & tech courses.

Explore courses