Mixture-of-LoRAs: An Efficient Multitask Tuning for Large Language Models

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Feng, Wenfeng, Hao, Chuzhan, Zhang, Yuewei, Han, Yu, Wang, Hao
Format: Preprint
Published: 2024
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866916148625276928
author Feng, Wenfeng
Hao, Chuzhan
Zhang, Yuewei
Han, Yu
Wang, Hao
author_facet Feng, Wenfeng
Hao, Chuzhan
Zhang, Yuewei
Han, Yu
Wang, Hao
contents Instruction Tuning has the potential to stimulate or enhance specific capabilities of large language models (LLMs). However, achieving the right balance of data is crucial to prevent catastrophic forgetting and interference between tasks. To address these limitations and enhance training flexibility, we propose the Mixture-of-LoRAs (MoA) architecture which is a novel and parameter-efficient tuning method designed for multi-task learning with LLMs. In this paper, we start by individually training multiple domain-specific LoRA modules using corresponding supervised corpus data. These LoRA modules can be aligned with the expert design principles observed in Mixture-of-Experts (MoE). Subsequently, we combine the multiple LoRAs using an explicit routing strategy and introduce domain labels to facilitate multi-task learning, which help prevent interference between tasks and ultimately enhances the performance of each individual task. Furthermore, each LoRA model can be iteratively adapted to a new domain, allowing for quick domain-specific adaptation. Experiments on diverse tasks demonstrate superior and robust performance, which can further promote the wide application of domain-specific LLMs.
format Preprint
id arxiv_https___arxiv_org_abs_2403_03432
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Mixture-of-LoRAs: An Efficient Multitask Tuning for Large Language Models
Feng, Wenfeng
Hao, Chuzhan
Zhang, Yuewei
Han, Yu
Wang, Hao
Computation and Language
Artificial Intelligence
Instruction Tuning has the potential to stimulate or enhance specific capabilities of large language models (LLMs). However, achieving the right balance of data is crucial to prevent catastrophic forgetting and interference between tasks. To address these limitations and enhance training flexibility, we propose the Mixture-of-LoRAs (MoA) architecture which is a novel and parameter-efficient tuning method designed for multi-task learning with LLMs. In this paper, we start by individually training multiple domain-specific LoRA modules using corresponding supervised corpus data. These LoRA modules can be aligned with the expert design principles observed in Mixture-of-Experts (MoE). Subsequently, we combine the multiple LoRAs using an explicit routing strategy and introduce domain labels to facilitate multi-task learning, which help prevent interference between tasks and ultimately enhances the performance of each individual task. Furthermore, each LoRA model can be iteratively adapted to a new domain, allowing for quick domain-specific adaptation. Experiments on diverse tasks demonstrate superior and robust performance, which can further promote the wide application of domain-specific LLMs.
title Mixture-of-LoRAs: An Efficient Multitask Tuning for Large Language Models
topic Computation and Language
Artificial Intelligence
url https://arxiv.org/abs/2403.03432