MELoRA: Mini-Ensemble Low-Rank Adapters for Parameter-Efficient Fine-Tuning

Pengjie Ren, Chengshun Shi, Shiguang Wu, Mengqi Zhang, Zhaochun Ren +3 more
2/27/2024
cs.CL

No official code found. Best implementation: ChasonShi/MELoRA (33 stars, Apache-2.0, last commit 2025-02-19).

Abstract

Parameter-efficient fine-tuning (PEFT) is a popular method for tailoring pre-trained large language models (LLMs), especially as the models' scale and the diversity of tasks increase. Low-rank adaptation (LoRA) is based on the idea that the adaptation process is intrinsically low-dimensional, i.e., significant model changes can be represented with relatively few parameters. However, decreasing the rank encounters challenges with generalization errors for specific tasks when compared to full-parameter fine-tuning. We present MELoRA, a mini-ensemble low-rank adapters that uses fewer trainable parameters while maintaining a higher rank, thereby offering improved performance potential. The core idea is to freeze original pretrained weights and train a group of mini LoRAs with only a small number of parameters. This can capture a significant degree of diversity among mini LoRAs, thus promoting better generalization ability. We conduct a theoretical analysis and empirical studies on various NLP tasks. Our experimental results show that, compared to LoRA, MELoRA achieves better performance with 8 times fewer trainable parameters on natural language understanding tasks and 36 times fewer trainable parameters on instruction following tasks, which demonstrates the effectiveness of MELoRA.

View on arXivView PDF

Code Implementations(1)

ChasonShi/MELoRACommunity100%
Apache-2.0

code for ACL24 "MELoRA: Mini-Ensemble Low-Rank Adapter for Parameter-Efficient Fine-Tuning"

3310Shell, PythonFeb 15, 20241 years agoApache-2.0

Similar Papers

Cite this paper

@article{ren2024melora,
  title  = {MELoRA: Mini-Ensemble Low-Rank Adapters for Parameter-Efficient Fine-Tuning},
  author = {Pengjie Ren and Chengshun Shi and Shiguang Wu and Mengqi Zhang and Zhaochun Ren and Maarten de Rijke and Zhumin Chen and Jiahuan Pei},
  year   = {2024},
  eprint = {2402.17263},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2402.17263v3}
}

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

Discussion