[Paper Review] Higher Layers Need More LoRA Experts
MoLA introduces a parameter-efficient Mixture-of-Experts (MoE) method that dynamically allocates varying numbers of LoRA experts across Transformer layers, demonstrating that higher layers benefit more from additional experts. With a fixed total number of experts, MoLA achieves superior performance over uniform allocation and baselines by reducing redundancy in lower layers and enhancing representational capacity in higher layers.
Parameter-efficient tuning (PEFT) techniques like low-rank adaptation (LoRA) offer training efficiency on Large Language Models, but their impact on model performance remains limited. Recent efforts integrate LoRA and Mixture-of-Experts (MoE) to improve the performance of PEFT methods. Despite promising results, research on improving the efficiency of LoRA with MoE is still in its early stages. Recent studies have shown that experts in the MoE architecture have different strengths and also exhibit some redundancy. Does this statement also apply to parameter-efficient MoE? In this paper, we introduce a novel parameter-efficient MoE method, extit{ extbf{M}oE-L extbf{o}RA with extbf{L}ayer-wise Expert extbf{A}llocation (MoLA)} for Transformer-based models, where each model layer has the flexibility to employ a varying number of LoRA experts. We investigate several architectures with varying layer-wise expert configurations. Experiments on six well-known NLP and commonsense QA benchmarks demonstrate that MoLA achieves equal or superior performance compared to all baselines. We find that allocating more LoRA experts to higher layers further enhances the effectiveness of models with a certain number of experts in total. With much fewer parameters, this allocation strategy outperforms the setting with the same number of experts in every layer. This work can be widely used as a plug-and-play parameter-efficient tuning approach for various applications. The code is available at https://github.com/GCYZSL/MoLA.
Motivation & Objective
- To address the limited performance of parameter-efficient fine-tuning (PEFT) methods like LoRA in large language models (LLMs).
- To investigate whether expert redundancy exists in parameter-efficient MoE architectures and how to mitigate it.
- To explore optimal layer-wise expert allocation strategies for LoRA-MoE to improve model effectiveness and scalability.
- To develop a plug-and-play PEFT method that enhances performance without increasing inference cost.
Proposed method
- MoLA integrates LoRA with MoE by applying multiple low-rank adaptation matrices (LoRA experts) per layer, with a router to gate expert usage.
- Each Transformer layer is assigned a flexible, user-defined number of LoRA experts, enabling layer-wise expert allocation.
- The pre-trained model weights are frozen during training, while only LoRA experts and the router are fine-tuned.
- Four configurations are evaluated: MoLA-△ (increasing experts upward), MoLA-▽ (decreasing), MoLA-⋈ (symmetric), and MoLA-□ (uniform), to compare allocation strategies.
- The method uses a router module that computes expert weights per token, enabling sparse activation and efficient inference.
- The approach is plug-and-play, compatible with various tasks and LLM architectures without architectural modifications.
Experimental results
Research questions
- RQ1Do experts in parameter-efficient MoE architectures exhibit redundancy, particularly in lower Transformer layers?
- RQ2Is there an optimal distribution of LoRA experts across Transformer layers that improves model performance?
- RQ3Can a flexible, layer-wise expert allocation strategy outperform uniform expert distribution with the same total number of experts?
- RQ4Does allocating more experts to higher layers enhance representational capacity and model generalization?
- RQ5How does expert redundancy vary across different layers in a MoE-LoRA setup?
Key findings
- MoLA-▽, which allocates more experts to higher layers, achieves the best performance across all benchmarks, outperforming all baselines.
- With the same total number of experts, MoLA with higher-layer prioritization achieves better results than uniform or lower-layer-prioritized configurations.
- Experts in lower layers are more similar to each other, indicating higher redundancy, while higher-layer experts are more diverse and effective.
- MoLA reduces expert redundancy by concentrating more experts in higher layers, where they contribute more to representational capacity.
- The method maintains high performance with significantly fewer parameters compared to uniform allocation, demonstrating improved scalability.
- Ablation studies confirm MoLA’s strong continuous learning capability, suggesting robustness in incremental fine-tuning scenarios.
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.