arXiv:2501.16559cs.CV2025-01ICLR被引 10

LoRA-X实现无需训练的数据迁移,让模型适配更高效

LoRA-X: Bridging Foundation Models with Training-Free Cross-Model Adaptation

  • 通过限制适配器在源模型子空间内操作,实现跨模型参数迁移
  • 在Stable Diffusion v1.5和XL上验证,无需原始或合成数据即可迁移成功
  • 适合模型更新时快速迁移适配器,尤其适用于数据不可用场景

大型基础模型的普及推动了对参数高效微调方法的需求,如低秩适配(LoRA),其性能接近全模型微调,且仅需少量特定于基模型的额外参数。当基模型被弃用并替换时,所有相关LoRA模块必须重新训练,这需要原始训练数据或大量模拟原始分布的合成数据。然而,由于隐私或许可问题,原始数据常不可获取;生成合成数据可能不切实际且代表性不足。为此,我们提出一种新适配器——跨模型低秩适配(LoRA-X),实现源模型与目标模型之间无训练的LoRA参数迁移,无需原始或合成数据。该方法强制适配器在源基模型的子空间内运行,因对目标模型仅有权重信息,且转移性判据仅限于目标模型权重与子空间。为促进源模型LoRA参数向目标模型迁移,仅在目标模型中子空间相似度可接受的层使用适配器。大量实验表明,LoRA-X在文本到图像生成任务中有效,涵盖Stable Diffusion v1.5和Stable Diffusion XL。

原文摘要 · Abstract (English)

The rising popularity of large foundation models has led to a heightened demand for parameter-efficient fine-tuning methods, such as Low-Rank Adaptation (LoRA), which offer performance comparable to full model fine-tuning while requiring only a few additional parameters tailored to the specific base model. When such base models are deprecated and replaced, all associated LoRA modules must be retrained, requiring access to either the original training data or a substantial amount of synthetic data that mirrors the original distribution. However, the original data is often inaccessible due to privacy or licensing issues, and generating synthetic data may be impractical and insufficiently representative. These factors complicate the fine-tuning process considerably. To address this challenge, we introduce a new adapter, Cross-Model Low-Rank Adaptation (LoRA-X), which enables the training-free transfer of LoRA parameters across source and target models, eliminating the need for original or synthetic training data. Our approach imposes the adapter to operate within the subspace of the source base model. This constraint is necessary because our prior knowledge of the target model is limited to its weights, and the criteria for ensuring the adapter's transferability are restricted to the target base model's weights and subspace. To facilitate the transfer of LoRA parameters of the source model to a target model, we employ the adapter only in the layers of the target model that exhibit an acceptable level of subspace similarity. Our extensive experiments demonstrate the effectiveness of LoRA-X for text-to-image generation, including Stable Diffusion v1.5 and Stable Diffusion XL.

LoRA模型迁移参数高效生成模型

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。