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

OP-LoRA:维度的祝福

OP-LoRA: The Blessing of Dimensionality

Boston University(波士顿大学);University of Central Florida(中央佛罗里达大学)

Piotr Teterwak, Kate Saenko, Bryan A. Plummer, Ser-Nam Lim

AI总结:

提出OP-LoRA方法,通过额外MLP预测LoRA适配器权重以改善优化,训练后丢弃MLP,在零额外推理成本下提升性能并降低对学习率的敏感性。

摘要:

低秩适配器(LoRA)使得仅用少量参数即可微调大模型。然而,它们常常面临病态的损失景观,导致优化困难。先前的工作通过自定义优化器将适配器更新与全微调梯度对齐来解决这些挑战,但这些方法缺乏适应新适配器架构的灵活性,且计算成本高。我们引入了OP-LoRA,一种新颖的方法,它用额外的MLP预测的权重替换每个LoRA适配器,该MLP在训练后被丢弃。这允许在训练期间临时增加额外参数以改善优化,但比自定义优化器需要更少的墙钟时间,并且在推理时零额外成本,因为MLP被丢弃。关键的是,将OP-LoRA扩展到其他适配器只需修改每个新适配器类型的预测头大小。我们表明,OP-LoRA允许优化自适应地增加或减少步长,从而提高性能并降低对学习率的敏感性。在小型和大型LoRA微调任务中,我们观察到OP-LoRA相对于LoRA及其变体的一致性能提升。我们在图像生成中取得了特别显著的改进,OP-LoRA的CMMD分数相对于LoRA提高了多达15分。这使得OP-LoRA能够在推理参数减半的情况下达到LoRA的性能。

英文摘要:

Low-rank adapters (LoRA) enable finetuning of large models with only a small number of parameters. However, they often suffer from an ill-conditioned loss landscape, leading to difficult optimization. Prior work addresses these challenges by aligning adapter updates with full finetuning gradients via custom optimizers, but these methods lack the flexibility to accommodate new adapter architectures and are computationally expensive. We instead introduce OP-LoRA, a novel method which replaces each LoRA adapter with weights predicted by an extra MLP, which is discarded after training. This temporarily allows additional parameters during training to improve optimization, yet requires less wall time than custom optimizers and zero extra cost at inference time because the MLP is discarded. Crucially, extending OP-LoRA to other adapters is as simple as modifying the size of the prediction head for each new adapter type. We show that OP-LoRA allows the optimization to adaptively increase or decrease step size, improving performance and decreasing sensitivity to learning rate. On both small and large-scale LoRA tuning tasks, we observe consistent performance gains of OP-LoRA relative to LoRA and its variants. We achieve especially notable improvements in image generation, with OP-LoRA CMMD scores improving by up to 15 points relative to LoRA. This allows OP-LoRA to achieve the performance of LoRA with half of the inference parameters.

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

↑