arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2505.06272cs.LGcs.AI
收藏

LoRA-MoE中用于高效微调的敏感度驱动专家分配方法

A Sensitivity-Driven Expert Allocation Method in LoRA-MoE for Efficient Fine-Tuning

Institute of Computing Technology, Chinese Academy of Sciences, Beijing, China(中国科学院计算技术研究所);University of Chinese Academy of Sciences, Beijing, China(中国科学院大学)

Junzhou Xu, Boyu Diao

AI总结:

针对LoRA-MoE微调参数冗余问题,提出LoRA-SMoE,利用少量样本和梯度评估参数敏感度,在预算内自适应分配专家,以更低可训练参数量和开销提升性能。

摘要:

随着深度学习模型规模扩大,预训练-微调范式已成为处理各类下游任务的标准方法。然而,在处理涉及多个任务的复杂数据集时,共享参数可能导致性能下降。虽然引入混合专家(Mixture-of-Experts,MoE)方法在一定程度上缓解了这一问题,但它也显著增加了微调所需的参数量和训练时间,并带来更大的参数冗余。为应对这些挑战,我们提出了一种基于参数敏感度分配专家数量的方法 LoRA-SMoE(LoRA-MoE中用于高效微调的敏感度驱动专家分配方法)。该方法通过采样少量数据并利用梯度信息,快速评估不同任务对参数的敏感度,然后在给定预算内自适应地分配专家数量。此过程保持与 LoRA(低秩适配,Low-Rank Adaptation)相当的内存消耗,同时确保高效且资源友好的微调流程。实验结果表明,与最先进(SOTA)微调方法相比,我们的 LoRA-SMoE 方法能够在减少可训练参数数量的同时提升模型性能。这显著改善了资源受限环境中的模型表现。此外,得益于高效的参数敏感度评估机制,LoRA-SMoE 优化专家分配所需的计算开销极小,因此特别适合计算资源有限的场景。本研究中的所有代码将在论文被接收发表后公开。源代码位于 https://github.com/EMLS-ICTCAS/LoRA-SMoE。

英文摘要:

As deep learning models expand, the pre-training-fine-tuning paradigm has become the standard approach for handling various downstream tasks. However, shared parameters can lead to diminished performance when dealing with complex datasets involving multiple tasks. While introducing Mixture-of-Experts (MoE) methods has alleviated this issue to some extent, it also significantly increases the number of parameters required for fine-tuning and training time, introducing greater parameter redundancy. To address these challenges, we propose a method for allocating expert numbers based on parameter sensitivity LoRA-SMoE (A Sensitivity-Driven Expert Allocation Method in LoRA-MoE for Efficient Fine-Tuning). This method rapidly assesses the sensitivity of different tasks to parameters by sampling a small amount of data and using gradient information. It then adaptively allocates expert numbers within a given budget. The process maintains comparable memory consumption to LoRA (Low-Rank Adaptation) while ensuring an efficient and resource-friendly fine-tuning procedure. Experimental results demonstrate that compared to SOTA fine-tuning methods, our LoRA-SMoE approach can enhance model performance while reducing the number of trainable parameters. This significantly improves model performance in resource-constrained environments. Additionally, due to its efficient parameter sensitivity evaluation mechanism, LoRA-SMoE requires minimal computational overhead to optimize expert allocation, making it particularly suitable for scenarios with limited computational resources. All the code in this study will be made publicly available following the acceptance of the paper for publication. Source code is at https://github.com/EMLS-ICTCAS/LoRA-SMoE

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑