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.
Continual Gradient Low-Rank Projection Fine-Tuning for LLMs
Beijing Key Laboratory of Traffic Data Mining and Embodied Intelligence(北京交通大数据挖掘与具身智能重点实验室);School of Computer Science and Technology, Beijing Jiaotong University(北京交通大学计算机科学与技术学院);State Key Laboratory of Advanced Rail Autonomous Operation(先进轨道交通自主运行国家重点实验室)
AdaRankGrad: Adaptive Gradient-Rank and Moments for Memory-Efficient LLMs Training and Fine-Tuning
Department of Electrical Engineering-Systems at Tel Aviv University(特拉维夫大学电子工程系统系);Faculty of Engineering, Bar Ilan University(巴伊兰大学工程学院);Mathematical Institute, University of Oxford(牛津大学数学学院)
Department of Electrical Engineering;Computer Science Massachusetts Institute of Technology 32 Vassar St Cambridge MA 02139 USA;Computer Science \& Artificial Intelligence Laboratory Massachusetts Institute of Technology 32 Vassar St Cambridge MA 02139 USA;Massachusetts Institute of Technology
Spectral Logit Sculpting: Adaptive Low-Rank Logit Transformation for Controlled Text Generation
Zhejiang University(浙江大学);Binjiang Institute of Zhejiang University(浙江大学滨江学院);Hangzhou Dianzi University(杭州电子科技大学);People’s Public Security University of China(中国人民公安大学);Guangzhou University(广州大学)