[Paper Review] LoRAMoE: Alleviate World Knowledge Forgetting in Large Language Models via MoE-Style Plugin
LoRAMoE is a Mixture-of-Experts (MoE)-style plugin for large language models that separates downstream task adaptation from world knowledge preservation using LoRA-based experts. By freezing the backbone model and applying localized balancing constraints to route data to task-specific or knowledge-preserving experts, LoRAMoE prevents parametric knowledge forgetting even with massive instruction fine-tuning data, while improving downstream performance.
Supervised fine-tuning (SFT) is a crucial step for large language models (LLMs), enabling them to align with human instructions and enhance their capabilities in downstream tasks. Increasing instruction data substantially is a direct solution to align the model with a broader range of downstream tasks or notably improve its performance on a specific task. However, we find that large-scale increases in instruction data can damage the world knowledge previously stored in LLMs. To address this challenge, we propose LoRAMoE, a novelty framework that introduces several low-rank adapters (LoRA) and integrates them by using a router network, like a plugin version of Mixture of Experts (MoE). It freezes the backbone model and forces a portion of LoRAs to focus on leveraging world knowledge to solve downstream tasks, to alleviate world knowledge-edge forgetting. Experimental results show that, as the instruction data increases, LoRAMoE can significantly improve the ability to process downstream tasks, while maintaining the world knowledge stored in the LLM.
Motivation & Objective
- Address the problem of parametric knowledge forgetting in large language models (LLMs) when increasing supervised fine-tuning (SFT) data for downstream tasks.
- Preserve pre-trained world knowledge while enhancing performance on new instruction data without retraining the backbone model.
- Design a plugin-based MoE architecture that decouples task-specific adaptation from knowledge retention using low-rank adaptation (LoRA).
- Introduce localized balancing constraints to ensure balanced expert utilization within dedicated groups (task vs. knowledge) and prevent router over-concentration.
- Enable end-to-end, data-type-agnostic inference without requiring prior knowledge of input data types during deployment.
Proposed method
- Integrate multiple LoRA-based experts into each feed-forward layer of the LLM, forming a MoE-style architecture with a router for dynamic routing.
- Freeze the backbone LLM parameters during training to preserve all pre-trained world knowledge.
- Apply localized balancing constraints that group experts into two distinct sets: one for downstream task adaptation and one for aligning world knowledge with human instructions.
- Use a router mechanism that routes tokens to experts based on input characteristics, with constraints ensuring balanced attention across experts within each group.
- Train the LoRA adapters and router end-to-end while keeping the main model weights frozen, enabling efficient parameter-efficient fine-tuning.
- Leverage low-rank adaptation (LoRA) in each expert network to minimize additional computational cost despite increased expert count.
Experimental results
Research questions
- RQ1Does increasing the volume of supervised fine-tuning data lead to significant forgetting of parametric world knowledge in LLMs?
- RQ2Can a MoE-based plugin architecture preserve world knowledge while improving performance on downstream instruction-following tasks?
- RQ3How effective are localized balancing constraints in preventing expert overuse and ensuring balanced utilization across knowledge and task-specific experts?
- RQ4Can the proposed LoRAMoE plugin enable end-to-end inference without requiring prior knowledge of input data types?
- RQ5To what extent does LoRAMoE outperform standard SFT and other PEFT methods in maintaining world knowledge while scaling instruction data?
Key findings
- Increasing supervised fine-tuning data leads to significant performance degradation on closed-book question-answering benchmarks (e.g., TriviaQA, Natural Questions), indicating parametric knowledge forgetting.
- LoRAMoE successfully maintains world knowledge performance even when fine-tuning data increases from 100K to 3 million samples, with no measurable decline in CBQA benchmarks.
- The router in LoRAMoE allocates approximately 45% of attention to the knowledge-preserving expert group on average during WSC (Winograd Schema Challenge) inference, demonstrating active utilization of world knowledge.
- LoRAMoE improves downstream task performance across diverse instruction data types, showing enhanced multitask capabilities without compromising knowledge retention.
- The localized balancing constraint effectively prevents router bias toward a few experts within each group, ensuring stable and balanced expert utilization.
- LoRAMoE enables end-to-end, data-type-agnostic inference, eliminating the need for prior classification of input data types during deployment.
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.