PERFT: Parameter-Efficient Routed Fine-Tuning for Mixture-of-Expert Model

Yilun Liu, Yunpu Ma, Shuo Chen, Zifeng Ding, Bailan He, Zhen Han, Volker Tresp · DOI

Introduction

Mixture-of-Experts (MoE) models, such as Mixtral-8x7B and OLMoE, have emerged as a powerful architecture for large language models. By activating only a sparse subset of parameters (experts) for any given input, they provide high model capacity with significantly reduced inference costs. However, fine-tuning these models remains a challenge. Standard Parameter-Efficient Fine-Tuning (PEFT) techniques like LoRA were originally designed for dense architectures. When applied to MoE models, these methods often ignore the underlying sparse structure, leading to inefficiencies and failing to account for how task-specific knowledge interacts with the model's routing mechanism.

The PERFT Framework

To address these challenges, the authors introduce PERFT (Parameter-Efficient Routed Fine-Tuning). This framework categorizes PEFT for MoE along two primary dimensions: Functional Strategies (defining the internal architecture and routing of PEFT modules) and Compositional Strategies (defining how these modules integrate with the original MoE layers).

Based on this framework, the researchers developed four distinct variants:

  1. PERFT-R (Routed): The flagship method, which introduces a set of PEFT experts managed by a new, independent, trainable router. This allows the model to learn specialized activation patterns for new tasks.
  2. PERFT-E (Embedded): PEFT experts are paired directly with the original pre-trained experts and utilize the existing pre-trained router.
  3. PERFT-D (Dense): Multiple PEFT experts are added but remain always activated, bypassing the routing mechanism.
  4. PERFT-S (Single): A single, shared PEFT expert is added and always activated for all inputs.
Comparison of the PERFT architectural variants (Routed, Embedded, Dense, and Single) against a default MoE layer.

Experimental Setup

The PERFT family was evaluated against standard MoE-agnostic LoRA across 14 benchmarks in two domains:

  • Commonsense Reasoning: 8 tasks (e.g., BoolQ, HellaSwag, ARC) trained on the Commonsense170K dataset.
  • Arithmetic Reasoning: 6 tasks (e.g., GSM8K, SVAMP, MultiArith) trained on the Math50K dataset.
  • Backbone Models: Experiments utilized OLMoE-1B-7B and Mixtral-8x7B to demonstrate scalability across different model sizes.

Key Insights and Results

The Importance of Routing

A critical finding of the study is that simply increasing parameter count does not guarantee better performance. In the PERFT-D (Dense) variant, performance actually degraded as the bottleneck size (rank) increased. The authors attribute this to "functional redundancy," where multiple always-active experts learn overlapping information, creating noise that disrupts pre-trained knowledge. In contrast, the independent router in PERFT-R acts as a filter, ensuring the adapter capacity matches the task complexity.

Performance Gains and Efficiency

PERFT-R consistently outperformed standard LoRA, showing improvements of up to 17.2% in commonsense reasoning and 12.3% in arithmetic reasoning on the OLMoE backbone. Notably, these gains were achieved with a similar or even lower number of activated trainable parameters, proving that sparsity is a robust and efficient strategy for task-specific adaptation.

Scalability

Unlike non-routed variants, PERFT-R's performance scales positively with the bottleneck size. This suggests that for MoE models, the most effective way to add capacity is to mirror the model's inherent sparse, routed nature rather than treating it as a dense block.

Conclusion and Future Work

PERFT demonstrates that accounting for the sparse architecture of MoE models is essential for effective fine-tuning. While PERFT-R is highly effective, the authors note that optimal configurations (such as the number of experts) can be task-dependent. Future research may explore better initialization techniques for the new routers or more complex internal structures for the PEFT experts to further enhance stability and performance.

Summary updated

BibTeX
@misc{liu2024perft,
  author = {Yilun Liu and Yunpu Ma and Shuo Chen and Zifeng Ding and Bailan He and Zhen Han and Volker Tresp},
  title = {{PERFT: Parameter-Efficient Routed Fine-Tuning for Mixture-of-Expert Model}},
  year = {2024},
  eprint = {2411.08212},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2411.08212},
}
Figure