LoRAMoE: Alleviate World Knowledge Forgetting in Large Language Models via MoE-Style Plugin

Shihan Dou, Enyu Zhou, Yan Liu, Songyang Gao, Jun Zhao +11 more
12/15/2023
87 citations
cs.CL
moelora-peft-merging

Official code: Ablustrund/LoRAMoE (403 stars, Python, last commit 2024-04-29).

Abstract

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.

Show full abstract

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.

View on arXivView PDF

Code Implementations(1)

Ablustrund/LoRAMoEOfficial100%

LoRAMoE: Revolutionizing Mixture of Experts for Maintaining World Knowledge in Language Model Alignment

40332Python, CudaMar 8, 20242 years ago

Similar Papers

Cite this paper

@article{dou2023loramoe,
  title  = {LoRAMoE: Alleviate World Knowledge Forgetting in Large Language Models via MoE-Style Plugin},
  author = {Shihan Dou and Enyu Zhou and Yan Liu and Songyang Gao and Jun Zhao and Wei Shen and Yuhao Zhou and Zhiheng Xi and Xiao Wang and Xiaoran Fan and Shiliang Pu and Jiang Zhu and Rui Zheng and Tao Gui and Qi Zhang and Xuanjing Huang},
  year   = {2023},
  eprint = {2312.09979},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2312.09979v4}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2312.09979.svg)](https://codeofpaper.com/paper/2312.09979)

Discussion