Abstract
As Large Language Models (LLMs) scale, Full-Parameter Fine-Tuning (FFT) becomes increasingly resource-intensive. While Parameter-Efficient Fine-Tuning (PEFT) methods like LoRA are popular for dense models, they do not exploit the inherent sparsity of Mixture-of-Experts (MoE) architectures. We introduce Expert-Specialized Fine-Tuning (ESFT), a method that identifies and trains only the subset of experts most relevant to a specific target task. Our results demonstrate that ESFT can match or exceed FFT performance while reducing storage overhead by up to 90% and training time by 30%, all while significantly reducing catastrophic forgetting of general knowledge.
Introduction
The rise of Mixture-of-Experts (MoE) models, such as DeepSeek-V2, has enabled massive parameter counts with manageable computational costs by activating only a fraction of the network for any given token. However, conventional fine-tuning often treats these models as dense, updating all parameters or adding uniform adapters. This approach is inefficient because different tasks typically activate distinct, concentrated subsets of experts. ESFT addresses this by "letting the expert stick to his last"—tuning only the specialists required for the job.
Methodology: Expert-Specialized Fine-Tuning
ESFT operates on the principle of selective parameter updates based on expert relevance. The process consists of three primary stages:
- Data Sampling: A small representative sample of the target task data is passed through the frozen MoE model.
- Expert Relevance Scoring: The model calculates which experts are most active. Two metrics are proposed: ESFT-Gate (average router confidence) and ESFT-Token (frequency of token assignment).
- Selective Fine-Tuning: Only the top-$p$ percent of experts, based on their relevance scores, are unfrozen for training. All other components, including attention layers and non-selected experts, remain frozen.
This surgical approach is particularly effective for models with fine-grained experts, where smaller, more specialized units allow for precise selection without the "noise" of unrelated parameters.
Experimental Evaluation
We evaluated ESFT across a variety of scenarios, including model enhancement (Math and Code) and adaptation to specialized domains (Legal, Intent Recognition, Summarization, and Low-resource Translation).
Performance and Efficiency
ESFT consistently outperformed LoRA and remained competitive with FFT across most benchmarks. Notably, on the Legal Judgment task, ESFT-Gate achieved a score of 49.1, significantly higher than LoRA's 39.7.
The efficiency gains are substantial. By updating only a small fraction of the model's total parameters, ESFT achieves a massive reduction in the resources required for deployment and training.
Preserving General Knowledge
A critical advantage of ESFT is its resistance to catastrophic forgetting. In FFT, updating all weights often degrades the model's performance on unrelated general tasks. Because ESFT leaves the majority of experts (and their original knowledge) untouched, it maintains higher scores on general benchmarks like MMLU and TriviaQA compared to full-parameter methods.
Discussion and Conclusion
Our findings suggest that routing in MoE models is highly task-specific. By leveraging this sparsity, ESFT provides a path toward highly efficient model specialization. The method is most effective when applied to architectures with high expert granularity, where the "specialization" of individual experts is more pronounced. Future work will explore the application of ESFT to multi-task learning environments, potentially allowing for the simultaneous tuning of multiple expert sets within a single backbone.
Summary updated