LoraRetriever: Input-Aware LoRA Retrieval and Composition for Mixed Tasks in the Wild

Fuente: arXiv
Enregistré dans:
Détails bibliographiques
Auteurs principaux: Zhao, Ziyu, Gan, Leilei, Wang, Guoyin, Zhou, Wangchunshu, Yang, Hongxia, Kuang, Kun, Wu, Fei
Format: Preprint
Publié: 2024
Sujets:
Accès en ligne:
Tags: Ajouter un tag
Pas de tags, Soyez le premier à ajouter un tag!
_version_ 1866911779297165312
author Zhao, Ziyu
Gan, Leilei
Wang, Guoyin
Zhou, Wangchunshu
Yang, Hongxia
Kuang, Kun
Wu, Fei
author_facet Zhao, Ziyu
Gan, Leilei
Wang, Guoyin
Zhou, Wangchunshu
Yang, Hongxia
Kuang, Kun
Wu, Fei
contents Low-Rank Adaptation (LoRA) provides an effective yet efficient solution for fine-tuning large language models (LLM). The modular and plug-and-play nature of LoRA enables the integration of diverse domain-specific LoRAs to enhance the capabilities of LLMs. Previous research on exploiting multiple LoRAs either focuses on specific isolated downstream tasks or fixes the selection of LoRAs during training. However, in real-world scenarios, LLMs receive diverse prompts covering different tasks, and the pool of candidate LoRAs is often dynamically updated. To bridge this gap, we propose LoraRetriever, a retrieve-then-compose framework that adaptively retrieves and composes multiple LoRAs according to the input prompts. LoraRetriever contains three main components: firstly, identifying and retrieving LoRAs relevant to the given input; secondly, formulating strategies for effectively integrating the retrieved LoRAs; and thirdly, developing efficient batch inference to accommodate heterogeneous requests. Experimental results indicate that LoraRetriever consistently outperforms the baselines, highlighting its practical effectiveness and versatility.
format Preprint
id arxiv_https___arxiv_org_abs_2402_09997
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle LoraRetriever: Input-Aware LoRA Retrieval and Composition for Mixed Tasks in the Wild
Zhao, Ziyu
Gan, Leilei
Wang, Guoyin
Zhou, Wangchunshu
Yang, Hongxia
Kuang, Kun
Wu, Fei
Artificial Intelligence
Computation and Language
Machine Learning
Low-Rank Adaptation (LoRA) provides an effective yet efficient solution for fine-tuning large language models (LLM). The modular and plug-and-play nature of LoRA enables the integration of diverse domain-specific LoRAs to enhance the capabilities of LLMs. Previous research on exploiting multiple LoRAs either focuses on specific isolated downstream tasks or fixes the selection of LoRAs during training. However, in real-world scenarios, LLMs receive diverse prompts covering different tasks, and the pool of candidate LoRAs is often dynamically updated. To bridge this gap, we propose LoraRetriever, a retrieve-then-compose framework that adaptively retrieves and composes multiple LoRAs according to the input prompts. LoraRetriever contains three main components: firstly, identifying and retrieving LoRAs relevant to the given input; secondly, formulating strategies for effectively integrating the retrieved LoRAs; and thirdly, developing efficient batch inference to accommodate heterogeneous requests. Experimental results indicate that LoraRetriever consistently outperforms the baselines, highlighting its practical effectiveness and versatility.
title LoraRetriever: Input-Aware LoRA Retrieval and Composition for Mixed Tasks in the Wild
topic Artificial Intelligence
Computation and Language
Machine Learning
url https://arxiv.org/abs/2402.09997