通过自适应合并回收LoRAs的吸引力与现实
The Appeal and Reality of Recycling LoRAs with Adaptive Merging
AI总结:
研究针对回收在模型库中“野生”的LoRAs,通过实证研究多种自适应和非自适应合并方法,发现自适应合并虽能提升性能,但相比用相同数据训练新LoRA优势有限,且合并LoRAs的具体选择重要性不大,还证实了正向迁移的可能性并开源相关资源。
摘要:
微调后的LoRA模块广泛可用,引发了对自适应合并方法的兴趣。以往方法多从池中选LoRAs并根据特定任务数据集调整合并系数,但未尝试回收在模型库中“野生”的LoRAs。我们考虑从近1000个由Llama 3.1 8B-Instruct语言模型训练的用户贡献LoRAs中回收。实证研究涵盖多种方法,结果表明自适应合并方法能提升性能,但与用相同数据训练新LoRA相比优势有限,且合并LoRAs的具体选择重要性不大,随机初始化参数值的LoRAs也有相似性能。这表明自适应合并回收LoRAs可能主要通过正则化效应起作用。我们还证实当池中存在高度相关LoRAs时正向迁移是可能的,并在线发布了模型检查点和代码。
英文摘要:
The widespread availability of fine-tuned LoRA modules for open pre-trained models has led to an interest in methods that can adaptively merge LoRAs to improve performance. These methods typically include some way of selecting LoRAs from a pool and tune merging coefficients based on a task-specific dataset. While adaptive merging methods have demonstrated improvements in some settings, no past work has attempted to recycle LoRAs found "in the wild" on model repositories like the Hugging Face Hub. To address this gap, we consider recycling from a pool of nearly 1,000 user-contributed LoRAs trained from the Llama 3.1 8B-Instruct language model. Our empirical study includes a range of adaptive and non-adaptive merging methods in addition to a new method designed via a wide search over the methodological design space. We demonstrate that adaptive merging methods can improve performance over the base model but provide limited benefit over training a new LoRA on the same data used to set merging coefficients. We additionally find not only that the specific choice of LoRAs to merge has little importance, but that using LoRAs with randomly initialized parameter values yields similar performance. This raises the possibility that adaptive merging from recycled LoRAs primarily works via some kind of regularization effect, rather than by enabling positive cross-task transfer. To better understand why past work has proven successful, we confirm that positive transfer is indeed possible when there are highly relevant LoRAs in the pool. We release the model checkpoints and code online.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。