R-LoRA: Randomized Multi-Head LoRA for Efficient Multi-Task Learning

Jinda Liu, Yi Chang, Yuan Wu
2/21/2025
cs.LGcs.AI

Official code: jinda-liu/R-LoRA (22 stars, last commit 2025-02-25).

Abstract

Fine-tuning large language models (LLMs) is computationally expensive, and Low-Rank Adaptation (LoRA) provides a cost-effective solution by approximating weight updates through low-rank matrices. In real-world scenarios, LLMs are fine-tuned on data from multiple domains to perform tasks across various fields, embodying multi-task learning (MTL). LoRA often underperforms in such complex scenarios. To enhance LoRA's capability in multi-task learning, we propose R-LoRA, which incorporates Multi-Head Randomization. Multi-Head Randomization diversifies the head matrices through Multi-Head Dropout and Multi-Head Random Initialization, enabling more efficient learning of task-specific features while maintaining shared knowledge representation. Our approach not only improves performance in MTL but also reduces GPU memory usage and training time. Experiments show that R-LoRA's gains stem from increased diversity in the head matrices, demonstrating its effectiveness for multi-task learning. The code is available at https://github.com/jinda-liu/R-LoRA

View on arXivView PDF

Code Implementations(1)

jinda-liu/R-LoRAOfficial100%

This repository contains the source code and related resources for R-LoRA.

220C, C++Feb 25, 20251 years ago
fine-tuninglarge-language-modelslow-rank-adaptation

Similar Papers

Cite this paper

@article{liu2025rlora,
  title  = {R-LoRA: Randomized Multi-Head LoRA for Efficient Multi-Task Learning},
  author = {Jinda Liu and Yi Chang and Yuan Wu},
  year   = {2025},
  eprint = {2502.15455},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2502.15455v2}
}

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

Discussion