RoSA: Accurate Parameter-Efficient Fine-Tuning via Robust Adaptation

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Nikdan, Mahdi, Tabesh, Soroush, Crnčević, Elvir, Alistarh, Dan
Natura: Preprint
Pubblicazione: 2024
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866929370747109376
author Nikdan, Mahdi
Tabesh, Soroush
Crnčević, Elvir
Alistarh, Dan
author_facet Nikdan, Mahdi
Tabesh, Soroush
Crnčević, Elvir
Alistarh, Dan
contents We investigate parameter-efficient fine-tuning (PEFT) methods that can provide good accuracy under limited computational and memory budgets in the context of large language models (LLMs). We present a new PEFT method called Robust Adaptation (RoSA) inspired by robust principal component analysis that jointly trains $\textit{low-rank}$ and $\textit{highly-sparse}$ components on top of a set of fixed pretrained weights to efficiently approximate the performance of a full-fine-tuning (FFT) solution. Across a series of challenging generative tasks such as grade-school math and SQL query generation, which require fine-tuning for good performance, we show that RoSA outperforms LoRA, pure sparse fine-tuning, and alternative hybrid methods at the same parameter budget, and can even recover the performance of FFT on some tasks. We provide system support for RoSA to complement the training algorithm, specifically in the form of sparse GPU kernels which enable memory- and computationally-efficient training, and show that it is also compatible with low-precision base weights, resulting in the first joint representation combining quantization, low-rank and sparse approximations. Our code is available at https://github.com/IST-DASLab/RoSA.
format Preprint
id arxiv_https___arxiv_org_abs_2401_04679
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle RoSA: Accurate Parameter-Efficient Fine-Tuning via Robust Adaptation
Nikdan, Mahdi
Tabesh, Soroush
Crnčević, Elvir
Alistarh, Dan
Computation and Language
Artificial Intelligence
Machine Learning
We investigate parameter-efficient fine-tuning (PEFT) methods that can provide good accuracy under limited computational and memory budgets in the context of large language models (LLMs). We present a new PEFT method called Robust Adaptation (RoSA) inspired by robust principal component analysis that jointly trains $\textit{low-rank}$ and $\textit{highly-sparse}$ components on top of a set of fixed pretrained weights to efficiently approximate the performance of a full-fine-tuning (FFT) solution. Across a series of challenging generative tasks such as grade-school math and SQL query generation, which require fine-tuning for good performance, we show that RoSA outperforms LoRA, pure sparse fine-tuning, and alternative hybrid methods at the same parameter budget, and can even recover the performance of FFT on some tasks. We provide system support for RoSA to complement the training algorithm, specifically in the form of sparse GPU kernels which enable memory- and computationally-efficient training, and show that it is also compatible with low-precision base weights, resulting in the first joint representation combining quantization, low-rank and sparse approximations. Our code is available at https://github.com/IST-DASLab/RoSA.
title RoSA: Accurate Parameter-Efficient Fine-Tuning via Robust Adaptation
topic Computation and Language
Artificial Intelligence
Machine Learning
url https://arxiv.org/abs/2401.04679