[Paper Review] Task-Specific Expert Pruning for Sparse Mixture-of-Experts
This paper proposes task-specific expert pruning to convert sparse Mixture-of-Experts (MoE) models into efficient single-expert dense models for downstream tasks. By progressively pruning non-professional experts during fine-tuning based on contribution scores, the method preserves 99.3% of MoE performance while achieving 2x faster inference and eliminating inter-device communication costs.
The sparse Mixture-of-Experts (MoE) model is powerful for large-scale pre-training and has achieved promising results due to its model capacity. However, with trillions of parameters, MoE is hard to be deployed on cloud or mobile environment. The inference of MoE requires expert parallelism, which is not hardware-friendly and communication expensive. Especially for resource-limited downstream tasks, such sparse structure has to sacrifice a lot of computing efficiency for limited performance gains. In this work, we observe most experts contribute scarcely little to the MoE fine-tuning and inference. We further propose a general method to progressively drop the non-professional experts for the target downstream task, which preserves the benefits of MoE while reducing the MoE model into one single-expert dense model. Our experiments reveal that the fine-tuned single-expert model could preserve 99.3% benefits from MoE across six different types of tasks while enjoying 2x inference speed with free communication cost.
Motivation & Objective
- To address the inefficiency of sparse MoE models in resource-limited downstream deployment due to expert parallelism and communication overhead.
- To investigate whether only the most proficient expert in a pre-trained MoE model contributes meaningfully to a specific downstream task.
- To develop a pruning strategy that identifies and retains the most task-proficient expert while discarding others to enable efficient inference.
- To demonstrate that the pruned single-expert model outperforms dense baselines and matches or exceeds full MoE fine-tuned performance.
- To optimize the timing and criteria for expert pruning to maximize final model performance and inference efficiency.
Proposed method
- Experts are pruned based on a proficiency score computed over sliding training windows of fixed length.
- A dropping threshold is applied at regular intervals during fine-tuning; experts below the threshold are removed.
- The pruning process continues until only one expert remains per MoE layer or until halfway through fine-tuning.
- An 'eager' pruning strategy is proposed, where non-professional experts are dropped at the halfway point to allow focused optimization of the selected expert in the second half.
- The final selected expert is fine-tuned in isolation for the remainder of the training schedule to maximize performance.
- The method avoids knowledge distillation and directly transfers knowledge from the MoE pre-trained model to a single dense expert.
Experimental results
Research questions
- RQ1Can a single expert from a pre-trained MoE model be identified that preserves most of the performance benefits of the full MoE architecture for a specific downstream task?
- RQ2What is the optimal timing and threshold for pruning non-professional experts during fine-tuning to maximize final model accuracy?
- RQ3How does the length of the training window affect the performance of the selected expert?
- RQ4Does pruning non-professional experts lead to faster inference and reduced communication cost without sacrificing performance?
- RQ5Can the pruned single-expert model outperform dense models fine-tuned from scratch?
Key findings
- The pruned single-expert model preserves 99.3% of the performance gain from the full MoE model across six diverse downstream tasks.
- The pruned model achieves 2x faster inference speed on the MNLI task and 1.28x speedup on SQuAD compared to the full MoE model.
- The inference efficiency of the pruned model reaches 80% of that of a dense model, despite the inclusion of sub-MoE layers in the selected expert.
- The 'eager' pruning strategy—dropping non-professional experts at the halfway point—yields better inference performance than staged or two-pass methods.
- The method eliminates inter-device communication costs entirely, making it highly suitable for cloud and mobile deployment.
- The selected expert dominates contribution early in training, justifying early pruning to allow focused optimization in the second half.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.