Mixture of LoRA Experts

Xun Wu, Shaohan Huang, Furu Wei
4/21/2024
cs.CLcs.LGcs.MM

No official code found. Best implementation: EricLBuehler/xlora (284 stars, Apache-2.0, PyTorch, last commit 2024-08-04). 1 more below.

Abstract

LoRA has gained widespread acceptance in the fine-tuning of large pre-trained models to cater to a diverse array of downstream tasks, showcasing notable effectiveness and efficiency, thereby solidifying its position as one of the most prevalent fine-tuning techniques. Due to the modular nature of LoRA's plug-and-play plugins, researchers have delved into the amalgamation of multiple LoRAs to empower models to excel across various downstream tasks. Nonetheless, extant approaches for LoRA fusion grapple with inherent challenges. Direct arithmetic merging may result in the loss of the original pre-trained model's generative capabilities or the distinct identity of LoRAs, thereby yielding suboptimal outcomes. On the other hand, Reference tuning-based fusion exhibits limitations concerning the requisite flexibility for the effective combination of multiple LoRAs. In response to these challenges, this paper introduces the Mixture of LoRA Experts (MoLE) approach, which harnesses hierarchical control and unfettered branch selection. The MoLE approach not only achieves superior LoRA fusion performance in comparison to direct arithmetic merging but also retains the crucial flexibility for combining LoRAs effectively. Extensive experimental evaluations conducted in both the Natural Language Processing (NLP) and Vision & Language (V&L) domains substantiate the efficacy of MoLE.

View on arXivView PDF

Code Implementations(2)

7411C, C++Dec 2, 20241 years ago
EricLBuehler/xloraCommunity67%
PyTorchApache-2.0

X-LoRA: Mixture of LoRA Experts

28422Python, MakefileDec 26, 20232 years agoApache-2.0
llmlorapythonpytorch

Similar Papers

Cite this paper

@article{wu2024mixture,
  title  = {Mixture of LoRA Experts},
  author = {Xun Wu and Shaohan Huang and Furu Wei},
  year   = {2024},
  eprint = {2404.13628},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2404.13628v1},
  journal = {ICLR 2024 2024}
}

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/2404.13628.svg)](https://codeofpaper.com/paper/2404.13628)

Discussion