[Paper Review] MoRA: High-Rank Updating for Parameter-Efficient Fine-Tuning
MoRA introduces a high-rank updating mechanism using a square matrix to replace LoRA's low-rank updates, achieving more expressive updates with the same number of trainable parameters for LLM fine-tuning.
Low-rank adaptation is a popular parameter-efficient fine-tuning method for large language models. In this paper, we analyze the impact of low-rank updating, as implemented in LoRA. Our findings suggest that the low-rank updating mechanism may limit the ability of LLMs to effectively learn and memorize new knowledge. Inspired by this observation, we propose a new method called MoRA, which employs a square matrix to achieve high-rank updating while maintaining the same number of trainable parameters. To achieve it, we introduce the corresponding non-parameter operators to reduce the input dimension and increase the output dimension for the square matrix. Furthermore, these operators ensure that the weight can be merged back into LLMs, which makes our method can be deployed like LoRA. We perform a comprehensive evaluation of our method across five tasks: instruction tuning, mathematical reasoning, continual pretraining, memory and pretraining. Our method outperforms LoRA on memory-intensive tasks and achieves comparable performance on other tasks.
Motivation & Objective
- Motivate the limitations of low-rank updates in LoRA for memory-intensive and knowledge-memorial tasks.
- Propose MoRA to maximize update rank under the same parameter budget.
- Show that high-rank updating can be merged back into LLMs for deployment.
- Evaluate MoRA across memory, instruction tuning, reasoning, and pretraining tasks.
Proposed method
- Replace LoRA's BA decomposition with a trainable square matrix M of size hat{r} x hat{r} to achieve higher rank in Delta W.
- Introduce non-parameter operators f_comp and f_decomp to compress inputs and expand outputs, enabling Delta W to be expressed via M with the same param count.
- Provide several variants for f_comp/f_decomp, including truncation-based and group-sharing schemes, plus a reshape-based approach and rotation-inspired enhancements (RoPE-like) to boost expressiveness.
- Prove that Delta W can be losslessly expanded from M via corresponding decomp/comp transformations (Eq. 3).
- Allow MoRA to be merged back into the base model similar to LoRA, enabling deployment without extra inference latency.
Experimental results
Research questions
- RQ1Does high-rank updating via a square matrix improve memory-intensive learning and memorization tasks compared to LoRA?
- RQ2Can MoRA achieve comparable performance to LoRA on instruction tuning and reasoning tasks while offering advantages on continual pretraining and memory-related tasks?
- RQ3How can input/output dimensionality be manipulated with non-parameter operators to realize high-rank updates without increasing trainable parameters?
- RQ4What is the impact of different compression/decompression strategies (truncation, sharing, decoupling, rotation) on MoRA’s performance?
- RQ5Can high-rank updating be integrated with merge-and-reint strategies (ReMoRA) to further improve pretraining outcomes?
Key findings
- MoRA matches LoRA on instruction tuning and mathematical reasoning tasks.
- MoRA outperforms LoRA on memory-intensive continual pretraining and memory-related domains (biomedical and finance).
- High-rank updating yields more significant singular values in Delta W than low-rank updates, correlating with improved perplexity in pretraining.
- Various decompression/compression choices (especially rotation-based and reshape strategies) influence performance, with rotation often providing gains over truncation.
- Merge-and-reint (ReMoRA) further improves pretraining results over ReLoRA, demonstrating the benefit of increasing Delta W rank during training.
- On a memorization task, MoRA with a higher rank (r=256) achieves memorization performance close to FFT and outperforms LoRA with the same parameter budget.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.