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

Yuxuan Zhang, Ruizhe Li
10/2/2024
cs.CLcs.AIcs.LG

Official code: MeCuping/DLP-LoRA (5 stars, CC0-1.0, last commit 2024-10-03).

Abstract

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.

View on arXivView PDF

Code Implementations(1)

MeCuping/DLP-LoRAOfficial100%
CC0-1.0

DLP-LoRA An efficiency dynamic LoRA plugin

50Python, BatchfileOct 2, 20242 years agoCC0-1.0

Similar Papers

Cite this paper

@article{zhang2024dlplora,
  title  = {DLP-LoRA: Efficient Task-Specific LoRA Fusion with a Dynamic, Lightweight Plugin for Large Language Models},
  author = {Yuxuan Zhang and Ruizhe Li},
  year   = {2024},
  eprint = {2410.01497},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2410.01497v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2410.01497.svg)](https://codeofpaper.com/paper/2410.01497)

Discussion