arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2410.01497cs.CLcs.AIcs.LG
收藏

DLP-LoRA:面向大语言模型的高效任务特定LoRA融合——基于动态轻量级插件

DLP-LoRA: Efficient Task-Specific LoRA Fusion with a Dynamic, Lightweight Plugin for Large Language Models

University of Aberdeen(阿伯丁大学);South China Normal University(华南师范大学);Aberdeen Institute of Data Science and Artificial Intelligence(阿伯丁数据科学与人工智能研究院)

Yuxuan Zhang, Ruizhe Li

AI总结:

针对大语言模型特定领域微调资源密集、现有多LoRA融合缺乏动态性且推理慢的问题,提出DLP-LoRA动态轻量级插件,通过迷你MLP模块和top-p采样实现句子级动态融合,平衡性能与效率,在26项任务中表现优于现有方法。

摘要:

大语言模型(LLMs)的近期进展已在多任务中实现稳健性能,但针对特定领域微调这些模型仍需大量资源。低秩适配(LoRA)等参数高效微调(PEFT)方法通过微调小部分参数应对该挑战,然而现有多LoRA融合方法缺乏基于上下文输入的动态融合,且常因token级操作增加推理时间。我们提出DLP-LoRA,一种动态轻量级插件,采用仅含500万参数的迷你MLP模块,通过top-p采样策略在句子级动态融合多个LoRA。该方法利用并行计算将推理时间降至单LoRA推理的两倍以下。在26项任务(含多项选择和问答)上的评估显示,DLP-LoRA在多项选择数据集上平均准确率达92.34%,在问答数据集上BLEU和ROUGE分数显著提升,在复合任务设置下优于不同LLM骨干模型。DLP-LoRA有效平衡性能与效率,为LLM的动态多任务适配提供实用方案。代码见https://github.com/MeCuping/DLP-LoRA。

英文摘要:

Recent advancements in Large Language Models (LLMs) have achieved robust performance across diverse tasks, but fine-tuning these models for specific domains remains resource-intensive. Parameter-Efficient Fine-Tuning (PEFT) methods like Low-Rank Adaptation (LoRA) address this challenge by fine-tuning a small subset of parameters. However, existing methods for fusing multiple LoRAs lack dynamic fusion based on contextual inputs and often increase inference time due to token-level operations. We propose DLP-LoRA, a Dynamic Lightweight Plugin that employs a mini-MLP module with only 5M parameters to dynamically fuse multiple LoRAs at the sentence level using top-p sampling strategies. This approach reduces inference time to less than twice that of single LoRA inference by leveraging parallel computation. Evaluations across 26 tasks-including multiple-choice questions and question answering-demonstrate that DLP-LoRA achieves an average accuracy of 92.34% on multiple-choice datasets and significant improvements in BLEU and ROUGE scores on QA datasets, outperforming different LLMs backbones under composite task settings. DLP-LoRA effectively balances performance and efficiency, making it a practical solution for dynamic multi-task adaptation in LLMs. Our code is available at https://github.com/MeCuping/DLP-LoRA.

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

↑