When MOE Meets LLMs: Parameter Efficient Fine-tuning for Multi-task Medical Applications

Qidong Liu, Xian Wu, Xiangyu Zhao, Yuanshao Zhu, Derong Xu +2 more
10/21/2023
cs.CLcs.AI

No official code found. Best implementation: liuqidong07/MOELoRA-peft (193 stars, MIT, last commit 2024-07-22). 1 more below.

Abstract

The recent surge in Large Language Models (LLMs) has garnered significant attention across numerous fields. Fine-tuning is often required to fit general LLMs for a specific domain, like the web-based healthcare system. However, two problems arise during fine-tuning LLMs for medical applications. One is the task variety problem, which involves distinct tasks in real-world medical scenarios. The variety often leads to sub-optimal fine-tuning for data imbalance and seesaw problems. Besides, the large amount of parameters in LLMs leads to huge time and computation consumption by fine-tuning. To address these two problems, we propose a novel parameter efficient fine-tuning framework for multi-task medical applications, dubbed as MOELoRA. The designed framework aims to absorb both the benefits of mixture-of-expert (MOE) for multi-task learning and low-rank adaptation (LoRA) for parameter efficient fine-tuning. For unifying MOE and LoRA, we devise multiple experts as the trainable parameters, where each expert consists of a pair of low-rank matrices to retain the small size of trainable parameters. Then, a task-motivated gate function for all MOELoRA layers is proposed, which can control the contributions of each expert and produce distinct parameters for various tasks. We conduct experiments on a multi-task medical dataset, indicating MOELoRA outperforms the existing parameter efficient fine-tuning methods. The code is available online.

View on arXivView PDF

Code Implementations(2)

MIT

[SIGIR'24] The official implementation code of MOELoRA.

19322Shell, PythonOct 19, 20232 years agoMIT
chatglmlarge-language-modelslow-rank-adaptationmixture-of-expertsmulti-task+4 more
MIT

[SIGIR'24] The official implementation code of MOELoRA.

374Shell, PythonApr 18, 20242 years agoMIT

Similar Papers

Cite this paper

@article{liu2023when,
  title  = {When MOE Meets LLMs: Parameter Efficient Fine-tuning for Multi-task Medical Applications},
  author = {Qidong Liu and Xian Wu and Xiangyu Zhao and Yuanshao Zhu and Derong Xu and Feng Tian and Yefeng Zheng},
  year   = {2023},
  eprint = {2310.18339},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2310.18339v2}
}

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/2310.18339.svg)](https://codeofpaper.com/paper/2310.18339)

Discussion