[Paper Review] When MOE Meets LLMs: Parameter Efficient Fine-tuning for Multi-task Medical Applications
This paper proposes MOELoRA, a novel parameter-efficient fine-tuning framework that combines Mixture-of-Experts (MoE) and LoRA to enable efficient multi-task learning in medical LLMs. By using task-motivated gate functions and low-rank expert matrices, MOELoRA achieves superior performance on diverse medical tasks while minimizing trainable parameters, outperforming existing PEFT methods on a Chinese multi-task medical benchmark.
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.
Motivation & Objective
- To address the dual challenges of task variety and high tuning cost in fine-tuning LLMs for multi-task medical applications.
- To unify the benefits of Mixture-of-Experts (MoE) for task-specific knowledge learning and LoRA for parameter efficiency.
- To design a trainable architecture with low-rank experts and a task-motivated gate function that dynamically assigns expert contributions per task.
- To validate the framework's effectiveness and efficiency on a real-world, multi-task Chinese medical dataset.
- To provide a practical, open-source solution for deploying efficient, multi-task medical LLMs with minimal computational cost.
Proposed method
- The framework introduces multiple low-rank expert matrices as trainable parameters, replacing full fine-tuning.
- Each expert is composed of a pair of low-rank matrices to maintain parameter efficiency, inspired by LoRA.
- A task-motivated gate function is designed to dynamically regulate the contribution of each expert per input task.
- The MoE-based architecture allows different tasks to activate distinct expert combinations, enabling task-specific adaptation.
- The method preserves the pre-trained LLM weights and only fine-tunes the low-rank expert matrices and gate parameters.
- The framework is trained end-to-end on a multi-task medical dataset, with inference requiring no additional computation beyond standard LLM inference.
Experimental results
Research questions
- RQ1Can a parameter-efficient fine-tuning method effectively handle diverse medical tasks without performance degradation?
- RQ2How can task-specific and shared knowledge be jointly learned in a multi-task medical LLM setting?
- RQ3Can the integration of MoE and LoRA achieve better performance than existing PEFT methods in multi-task medical applications?
- RQ4Does the task-motivated gate function improve generalization across heterogeneous medical tasks?
- RQ5To what extent does MOELoRA reduce computational cost while maintaining or improving performance on multi-task medical benchmarks?
Key findings
- MOELoRA outperforms existing parameter-efficient fine-tuning methods on a public multi-task Chinese medical dataset, demonstrating superior performance across diverse medical tasks.
- The model achieves strong performance on tasks including diagnosis prediction, medicine recommendation, and clinical report generation, with improved robustness to data imbalance.
- The task-motivated gate function successfully assigns distinct expert contributions per task, enabling effective task-specific adaptation while preserving shared knowledge.
- The use of low-rank expert matrices maintains high parameter efficiency, significantly reducing fine-tuning cost compared to full fine-tuning.
- Visualization of expert weights shows high similarity between related tasks (e.g., CHIP-CDN and KUAKE-QIC), indicating effective knowledge transfer.
- The implementation is publicly available on GitHub, enabling reproducibility and future extension of the framework.
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.