MoELoRA:对比学习引导的专家混合用于大语言模型参数高效微调
MoELoRA: Contrastive Learning Guided Mixture of Experts on Parameter-Efficient Fine-Tuning for Large Language Models
AI总结:
本文提出MoELoRA方法,将LoRA视为专家混合并通过对比学习引导专家学习不同特征,以解决随机路由问题,在相同参数量下于数学推理和常识推理任务中显著优于LoRA。
摘要:
微调通常是增强大语言模型(LLM)对下游任务适应性的必要手段。然而,更新数十亿参数的过程需要大量计算资源和训练时间,这对大规模模型在各种场景中的广泛应用构成了重大障碍。为解决这一问题,参数高效微调(PEFT)已成为近期研究中的一个突出范式。但是,当前采用有限全局参数的PEFT方法(例如LoRA,它向所有权重添加低秩近似矩阵)在下游任务中灵活组合不同计算模块方面面临挑战。在本工作中,我们提出了一种新的PEFT方法:MoELoRA。我们将LoRA视为专家混合(MoE),并且为了缓解MoE中观察到的随机路由现象,我们提出利用对比学习来鼓励专家学习不同的特征。我们在数学推理和常识推理基准的11个任务上进行了实验。在相同参数量下,我们的方法显著优于LoRA。在数学推理中,MoELoRA取得的平均性能比LoRA高4.2%,并在多个基准上展现出与175B GPT-3.5相当的竞争力。
英文摘要:
Fine-tuning is often necessary to enhance the adaptability of Large Language Models (LLM) to downstream tasks. Nonetheless, the process of updating billions of parameters demands significant computational resources and training time, which poses a substantial obstacle to the widespread application of large-scale models in various scenarios. To address this issue, Parameter-Efficient Fine-Tuning (PEFT) has emerged as a prominent paradigm in recent research. However, current PEFT approaches that employ a limited set of global parameters (such as LoRA, which adds low-rank approximation matrices to all weights) face challenges in flexibly combining different computational modules in downstream tasks. In this work, we introduce a novel PEFT method: MoELoRA. We consider LoRA as Mixture of Experts (MoE), and to mitigate the random routing phenomenon observed in MoE, we propose the utilization of contrastive learning to encourage experts to learn distinct features. We conducted experiments on 11 tasks in math reasoning and common-sense reasoning benchmarks. With the same number of parameters, our approach outperforms LoRA significantly. In math reasoning, MoELoRA achieved an average performance that was 4.2% higher than LoRA, and demonstrated competitive performance compared to the 175B GPT-3.5 on several benchmarks.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。