大语言模型(Large Language Models,LLMs)发展过程中对更大规模模型的需求日益增长,给有限计算资源下的高效训练带来了挑战。传统微调方法在多任务学习中往往表现出不稳定性,且严重依赖大量训练资源。为此,我们提出MoDULA(Mixture of Domain-Specific and Universal LoRA,领域特定与通用低秩适配混合模型),这是一种新型的参数高效微调(Parameter Efficient Fine-Tuning,PEFT)混合专家(Mixture-of-Expert,MoE)范式,旨在提升多任务学习中的微调效果与参数效率。该范式通过分别训练通用专家、领域特定专家和路由器,有效提升模型的多任务能力。MoDULA-Res是MoDULA范式下的一种新方法,它通过残差连接将通用专家与任务特定专家相连,从而保持模型的通用能力。实验结果表明,MoDULA-Flan和MoDULA-Res方法在多种LLMs上的整体性能优于现有微调方法。值得注意的是,MoDULA-Res在多个任务中实现了更显著的性能提升,同时将训练成本降低了80%以上,且不会损失通用能力。此外,MoDULA具备灵活的可插拔性,无需从头重新训练现有专家即可高效添加新任务。这种渐进式训练范式规避了数据平衡问题,提升了训练效率和模型稳定性。总体而言,MoDULA为LLMs的微调提供了一种可扩展、高性价比的解决方案,兼具更高的参数效率和泛化能力。
英文摘要:
The growing demand for larger-scale models in the development of \textbf{L}arge \textbf{L}anguage \textbf{M}odels (LLMs) poses challenges for efficient training within limited computational resources. Traditional fine-tuning methods often exhibit instability in multi-task learning and rely heavily on extensive training resources. Here, we propose MoDULA (\textbf{M}ixture \textbf{o}f \textbf{D}omain-Specific and \textbf{U}niversal \textbf{L}oR\textbf{A}), a novel \textbf{P}arameter \textbf{E}fficient \textbf{F}ine-\textbf{T}uning (PEFT) \textbf{M}ixture-\textbf{o}f-\textbf{E}xpert (MoE) paradigm for improved fine-tuning and parameter efficiency in multi-task learning. The paradigm effectively improves the multi-task capability of the model by training universal experts, domain-specific experts, and routers separately. MoDULA-Res is a new method within the MoDULA paradigm, which maintains the model's general capability by connecting universal and task-specific experts through residual connections. The experimental results demonstrate that the overall performance of the MoDULA-Flan and MoDULA-Res methods surpasses that of existing fine-tuning methods on various LLMs. Notably, MoDULA-Res achieves more significant performance improvements in multiple tasks while reducing training costs by over 80\% without losing general capability. Moreover, MoDULA displays flexible pluggability, allowing for the efficient addition of new tasks without retraining existing experts from scratch. This progressive training paradigm circumvents data balancing issues, enhancing training efficiency and model stability. Overall, MoDULA provides a scalable, cost-effective solution for fine-tuning LLMs with enhanced parameter efficiency and generalization capability.
TT-LoRA MoE: Unifying Parameter-Efficient Fine-Tuning and Sparse Mixture-of-Experts
Tennessee Tech University, \ Alamos National Laboratory Cookeville Tennessee USA;Los Alamos National Laboratory Los Alamos New Mexico USA;Tennessee Tech University Cookeville Tennessee USA;Tennessee Tech University, \ Alamos National Laboratory;Los Alamos National Laboratory;Tennessee Tech University
MoSLD: An Extremely Parameter-Efficient Mixture-of-Shared LoRAs for Multi-Task Learning
Beijing Academy of Artificial Intelligence (BAAI)(北京人工智能研究院(BAAI));School of Artificial Intelligence, Beijing University of Posts and Telecommunications(北京邮电大学人工智能学院)
MoR: Mixture of Ranks for Low-Rank Adaptation Tuning
Institute of Information Engineering, Chinese Academy of Sciences(中国科学院信息工程研究所);School of Cyber Security, University of Chinese Academy of Sciences(中国科学院大学网络空间安全学院);Baidu Inc.(百度公司)
SLIM: Let LLM Learn More and Forget Less with Soft LoRA and Identity Mixture
Inspur Genersoft Co. Ltd.(浪潮 Genersoft 有限公司);Inspur Group Co. Ltd.(浪潮集团有限公司);Interactive Entertainment Group, Tencent Inc(腾讯公司互动娱乐集团);Nanjing University of Information Science and Technology(南京信息工程大学);Northeastern University(东北大学)
MixLoRA-DSI: Dynamically Expandable Mixture-of-LoRA Experts for Rehearsal-Free Generative Retrieval over Dynamic Corpora
Department of Data Science & AI, Monash University, Australia(数据科学与人工智能系,墨尔本大学,澳大利亚);Department of Human Centred Computing, Monash University, Australia(以人为中心计算系,墨尔本大学,澳大利亚)
SAMoRA: Semantic-Aware Mixture of LoRA Experts for Task-Adaptive Learning
School of Computer Science and Technology, Beijing Jiaotong University, China(北京交通大学计算机科学与技术学院);Guangxi Key Lab of Trusted Software, Guilin University of Electronic Technology, China(广西trusted软件重点实验室,桂林电子科技大学);Beijing Key Lab of Traffic Data Mining and Embodied Intelligence, China(北京交通数据挖掘与具身智能重点实验室);Institute of AI for Industries, Chinese Academy of Sciences, China(工业人工智能研究院,中国科学院);Nanjing Institute of Software Technology, China(南京软件技术研究院)
MoRE: A Mixture of Low-Rank Experts for Adaptive Multi-Task Learning
School of Computer Science and Information Engineering, Hefei University of Technology(合肥工业大学计算机科学与信息工程学院);School of Information Science and Technology, University of Science and Technology of China(中国科学技术大学信息科学与技术学院);Artificial Intelligence Research Institute, iFLYTEK Company Ltd.(iFLYTEK公司人工智能研究院)
X-LoRA: Mixture of Low-Rank Adapter Experts, a Flexible Framework for Large Language Models with Applications in Protein Mechanics and Molecular Design
Academy for Science and Design (ASD)(科学设计学院);Massachusetts Institute of Technology (MIT)(麻省理工学院)
Towards Modular LLMs by Building and Reusing a Library of LoRAs
Microsoft Research(微软研究院);Mila — Quebec AI Institute(米拉魁北克人工智能研究所);Université de Montréal(蒙特利尔大学);University of Copenhagen(哥本哈根大学);University of Edinburgh(爱丁堡大学);HEC Montréal(蒙特利尔高等商学院)
Each Rank Could be an Expert: Single-Ranked Mixture of Experts LoRA for Multi-Task Learning
Zhejiang University(浙江大学);Shanghai Innovation Institute(上海创新研究院);ByteDance Inc.(字节跳动公司);Fudan University(复旦大学);The Chinese University of Hong Kong(香港中文大学)
School of Electronic and Electrical Engineering, Shanghai University of Engineering Science(电子电气工程学院,上海工程技术大学);Key Laboratory of Computational Neuroscience and Brain-Inspired Intelligence, Fudan University(计算神经科学与脑启发智能重点实验室,复旦大学)