Saved in:
Bibliographic Details
Main Authors: Wang, Runqian, Ghosh, Soumya, Cox, David, Antognini, Diego, Oliva, Aude, Feris, Rogerio, Karlinsky, Leonid
Format: Preprint
Published: 2024
Subjects:
Online Access:https://arxiv.org/abs/2405.17258
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866909211371241472
author Wang, Runqian
Ghosh, Soumya
Cox, David
Antognini, Diego
Oliva, Aude
Feris, Rogerio
Karlinsky, Leonid
author_facet Wang, Runqian
Ghosh, Soumya
Cox, David
Antognini, Diego
Oliva, Aude
Feris, Rogerio
Karlinsky, Leonid
contents Low-rank adapters (LoRA) and their variants are popular parameter-efficient fine-tuning (PEFT) techniques that closely match full model fine-tune performance while requiring only a small number of additional parameters. These additional LoRA parameters are specific to the base model being adapted. When the base model needs to be deprecated and replaced with a new one, all the associated LoRA modules need to be re-trained. Such re-training requires access to the data used to train the LoRA for the original base model. This is especially problematic for commercial cloud applications where the LoRA modules and the base models are hosted by service providers who may not be allowed to host proprietary client task data. To address this challenge, we propose $\textit{Trans-LoRA}$ -- a novel method for lossless, nearly data-free transfer of LoRAs across base models. Our approach relies on synthetic data to transfer LoRA modules. Using large language models, we design a synthetic data generator to approximate the data-generating process of the $\textit{observed}$ task data subset. Training on the resulting synthetic dataset transfers LoRA modules to new models. We show the effectiveness of our approach using both LLama and Gemma model families. Our approach achieves lossless (mostly improved) LoRA transfer between models within and across different base model families, and even between different PEFT methods, on a wide variety of tasks.
format Preprint
id arxiv_https___arxiv_org_abs_2405_17258
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle $\textit{Trans-LoRA}$: towards data-free Transferable Parameter Efficient Finetuning
Wang, Runqian
Ghosh, Soumya
Cox, David
Antognini, Diego
Oliva, Aude
Feris, Rogerio
Karlinsky, Leonid
Machine Learning
Artificial Intelligence
Low-rank adapters (LoRA) and their variants are popular parameter-efficient fine-tuning (PEFT) techniques that closely match full model fine-tune performance while requiring only a small number of additional parameters. These additional LoRA parameters are specific to the base model being adapted. When the base model needs to be deprecated and replaced with a new one, all the associated LoRA modules need to be re-trained. Such re-training requires access to the data used to train the LoRA for the original base model. This is especially problematic for commercial cloud applications where the LoRA modules and the base models are hosted by service providers who may not be allowed to host proprietary client task data. To address this challenge, we propose $\textit{Trans-LoRA}$ -- a novel method for lossless, nearly data-free transfer of LoRAs across base models. Our approach relies on synthetic data to transfer LoRA modules. Using large language models, we design a synthetic data generator to approximate the data-generating process of the $\textit{observed}$ task data subset. Training on the resulting synthetic dataset transfers LoRA modules to new models. We show the effectiveness of our approach using both LLama and Gemma model families. Our approach achieves lossless (mostly improved) LoRA transfer between models within and across different base model families, and even between different PEFT methods, on a wide variety of tasks.
title $\textit{Trans-LoRA}$: towards data-free Transferable Parameter Efficient Finetuning
topic Machine Learning
Artificial Intelligence
url https://arxiv.org/abs/2405.17258