arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2405.17258cs.LGcs.AI
收藏

$\textit{Trans-LoRA}$:面向无数据的可迁移参数高效微调

$\textit{Trans-LoRA}$: towards data-free Transferable Parameter Efficient Finetuning

MIT-IBM Watson AI Lab(麻省理工学院-IBM沃森人工智能实验室)

Runqian Wang, Soumya Ghosh, David Cox, Diego Antognini, Aude Oliva, Rogerio Feris, Leonid Karlinsky

AI总结:

针对基础模型替换时LoRA需重训且依赖原始数据的问题,提出Trans-LoRA方法,利用大模型生成合成数据近似任务数据分布,实现跨模型无损迁移,在LLama和Gemma上验证有效。

摘要:

低秩适配器(LoRA)及其变体是流行的参数高效微调(PEFT)技术,它们能以仅需少量额外参数的方式紧密匹配全模型微调的性能。这些额外的LoRA参数特定于所适配的基础模型。当基础模型需要被弃用并替换为新模型时,所有相关的LoRA模块都需要重新训练。这种重新训练需要访问用于在原始基础模型上训练LoRA的数据。这对于商业云应用尤其成问题,因为LoRA模块和基础模型由服务提供商托管,而服务提供商可能不被允许托管专有的客户端任务数据。为了解决这一挑战,我们提出了$\textit{Trans-LoRA}$——一种用于跨基础模型无损、近乎无数据地迁移LoRA的新方法。我们的方法依赖合成数据来迁移LoRA模块。利用大型语言模型,我们设计了一个合成数据生成器来近似$\textit{观察到的}$任务数据子集的数据生成过程。在生成的合成数据集上训练可将LoRA模块迁移到新模型。我们使用LLama和Gemma模型系列展示了我们方法的有效性。我们的方法在广泛的任务上,实现了不同基础模型系列内部及之间的无损(大多有改进)LoRA迁移,甚至在不同PEFT方法之间也能实现。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑