arXiv:2501.17635cs.CLcs.AI2025-01IJCAI被引 19

用少量存储实现多任务LoRA参数高效生成

In-Context Meta LoRA Generation

  • 用条件变分自编码器根据任务描述生成专用LoRA权重
  • 生成的参数重建准确率优于现有方法,仅需283MB存储
  • 适合需要快速适配多任务的轻量化模型部署场景

低秩适配(LoRA)在特定任务微调中表现优异,但在多任务场景下为每个任务训练独立的LoRA模型会导致存储和推理效率低下。现有参数生成方法难以捕捉任务间的关联性,使多任务LoRA生成面临挑战。为此,我们提出上下文元LoRA(ICM-LoRA),一种高效实现大语言模型任务特化的方法。具体地,使用所有任务的训练数据训练一个定制生成器——条件变分自编码器(CVAE),该模型以任务描述为输入,输出任务感知的LoRA权重。这些权重可直接与LLM融合,无需额外微调即可生成任务专用模型。同时,引入上下文元学习增强知识表征与任务映射能力,捕捉任务与参数分布之间的关系。实验表明,该方法在多样任务上实现了更精准的LoRA参数生成,相较现有重建方法性能更优,且模型仅占283MB,仅为原始LoRA的1%。

原文摘要 · Abstract (English)

Low-rank Adaptation (LoRA) has demonstrated remarkable capabilities for task specific fine-tuning. However, in scenarios that involve multiple tasks, training a separate LoRA model for each one results in considerable inefficiency in terms of storage and inference. Moreover, existing parameter generation methods fail to capture the correlations among these tasks, making multi-task LoRA parameter generation challenging. To address these limitations, we propose In-Context Meta LoRA (ICM-LoRA), a novel approach that efficiently achieves task-specific customization of large language models (LLMs). Specifically, we use training data from all tasks to train a tailored generator, Conditional Variational Autoencoder (CVAE). CVAE takes task descriptions as inputs and produces task-aware LoRA weights as outputs. These LoRA weights are then merged with LLMs to create task-specialized models without the need for additional fine-tuning. Furthermore, we utilize in-context meta-learning for knowledge enhancement and task mapping, to capture the relationship between tasks and parameter distributions. As a result, our method achieves more accurate LoRA parameter generation for diverse tasks using CVAE. ICM-LoRA enables more accurate LoRA parameter reconstruction than current parameter reconstruction methods and is useful for implementing task-specific enhancements of LoRA parameters. At the same time, our method occupies 283MB, only 1\% storage compared with the original LoRA.

LoRA参数生成多任务轻量化

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