无需训练即可迁移个性化模型,让旧版微调知识随大模型更新自动适配。
PortLLM: Personalizing Evolving Large Language Models with Training-Free and Portable Model Patches
- 通过轻量补丁捕获领域知识,无需重新训练即可实现个性化。
- 在多个任务上性能接近LoRA,GPU显存降低最高12.2倍。
- 适合资源有限或数据敏感领域的用户持续使用旧微调成果。
随着大语言模型(LLMs)持续演进,其参数频繁更新,使下游用户难以持续进行微调以适配特定领域。尽管参数高效微调(如LoRA)降低了成本,但许多用户仍缺乏足够算力进行频繁个性化。此外,医疗等敏感领域数据获取受限,保留早期微调知识尤为重要。本文提出PortLLM,一种无需训练的框架:首先生成轻量级模型补丁以捕捉领域知识,随后可无缝应用于后续演进的LLM中,实现低成本持续个性化。实验覆盖七大数据集,包括简单问答(BoolQ、SST2)和复杂推理(WinoGrande、GSM8K),涵盖Mistral-7B、Llama2、Llama3.1、Gemma2等模型。结果表明,PortLLM性能媲美LoRA,GPU内存使用最高降低12.2倍。同时提供理论分析,揭示补丁可迁移性的内在机制。
原文摘要 · Abstract (English)
As large language models (LLMs) increasingly shape the AI landscape, fine-tuning pretrained models has become more popular than in the pre-LLM era for achieving optimal performance in domain-specific tasks. However, pretrained LLMs such as ChatGPT are periodically evolved, i.e., model parameters are frequently updated), making it challenging for downstream users with limited resources to keep up with fine-tuning the newest LLMs for their domain application. Even though fine-tuning costs have nowadays been reduced thanks to the innovations of parameter-efficient fine-tuning such as LoRA, not all downstream users have adequate computing for frequent personalization. Moreover, access to fine-tuning datasets, particularly in sensitive domains such as healthcare, could be time-restrictive, making it crucial to retain the knowledge encoded in earlier fine-tuned rounds for future adaptation. In this paper, we present PortLLM, a training-free framework that (i) creates an initial lightweight model update patch to capture domain-specific knowledge, and (ii) allows a subsequent seamless plugging for the continual personalization of evolved LLM at minimal cost. Our extensive experiments cover seven representative datasets, from easier question-answering tasks {BoolQ, SST2} to harder reasoning tasks {WinoGrande, GSM8K}, and models including {Mistral-7B, Llama2, Llama3.1, and Gemma2}, validating the portability of our designed model patches and showcasing the effectiveness of our proposed framework. For instance, PortLLM achieves comparable performance to LoRA fine-tuning with reductions of up to 12.2x in GPU memory usage. Finally, we provide theoretical justifications to understand the portability of our model update patches, which offers new insights into the theoretical dimension of LLMs' personalization.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。