SARA: Singular-Value Based Adaptive Low-Rank Adaption

Fuente: arXiv
Guardado en:
Detalles Bibliográficos
Autores principales: Gu, Jihao, Chen, Shuai, Wang, Zelin, Zhang, Yibo, Gong, Ping
Formato: Preprint
Publicado: 2024
Materias:
Acceso en línea:
Etiquetas: Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
_version_ 1866914902789062656
author Gu, Jihao
Chen, Shuai
Wang, Zelin
Zhang, Yibo
Gong, Ping
author_facet Gu, Jihao
Chen, Shuai
Wang, Zelin
Zhang, Yibo
Gong, Ping
contents With the increasing number of parameters in large pre-trained models, LoRA as a parameter-efficient fine-tuning(PEFT) method is widely used for not adding inference overhead. The LoRA method assumes that weight changes during fine-tuning can be approximated by low-rank matrices. However, the rank values need to be manually verified to match different downstream tasks, and they cannot accommodate the varying importance of different layers in the model. In this work, we first analyze the relationship between the performance of different layers and their ranks using SVD. Based on this, we design the Singular-Value Based Adaptive Low-Rank Adaption(SARA), which adaptively finds the rank during initialization by performing SVD on the pre-trained weights. Additionally, we explore the Mixture-of-SARA(Mo-SARA), which significantly reduces the number of parameters by fine-tuning only multiple parallel sets of singular values controlled by a router. Extensive experiments on various complex tasks demonstrate the simplicity and parameter efficiency of our methods. They can effectively and adaptively find the most suitable rank for each layer of each model.
format Preprint
id arxiv_https___arxiv_org_abs_2408_03290
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle SARA: Singular-Value Based Adaptive Low-Rank Adaption
Gu, Jihao
Chen, Shuai
Wang, Zelin
Zhang, Yibo
Gong, Ping
Machine Learning
Computation and Language
With the increasing number of parameters in large pre-trained models, LoRA as a parameter-efficient fine-tuning(PEFT) method is widely used for not adding inference overhead. The LoRA method assumes that weight changes during fine-tuning can be approximated by low-rank matrices. However, the rank values need to be manually verified to match different downstream tasks, and they cannot accommodate the varying importance of different layers in the model. In this work, we first analyze the relationship between the performance of different layers and their ranks using SVD. Based on this, we design the Singular-Value Based Adaptive Low-Rank Adaption(SARA), which adaptively finds the rank during initialization by performing SVD on the pre-trained weights. Additionally, we explore the Mixture-of-SARA(Mo-SARA), which significantly reduces the number of parameters by fine-tuning only multiple parallel sets of singular values controlled by a router. Extensive experiments on various complex tasks demonstrate the simplicity and parameter efficiency of our methods. They can effectively and adaptively find the most suitable rank for each layer of each model.
title SARA: Singular-Value Based Adaptive Low-Rank Adaption
topic Machine Learning
Computation and Language
url https://arxiv.org/abs/2408.03290