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

快速推进低秩训练

Fast Forwarding Low-Rank Training

Technion – Israel Institute of Technology(以色列理工学院);Kempner Institute at Harvard University(哈佛大学肯普纳研究所);Harvard University(哈佛大学)

Adir Rahamim, Naomi Saphra, Sara Kangaslahti, Yonatan Belinkov

AI总结:

本文针对LoRA等低秩微调提出Fast Forward优化策略,通过重复最近优化器步骤并交替常规训练,在保持性能的同时显著降低计算量与训练时间。

摘要:

诸如低秩适配(LoRA)之类的参数高效微调方法,旨在降低微调预训练语言模型(LM)的计算成本。借助这些低秩设置,我们提出了一种更高效的优化策略:Fast Forward,这是一种简单而有效的方法,可加速大段训练。在 Fast Forward 阶段,我们重复最近的优化器步骤,直到损失在一个极小的验证集上不再改善。通过在常规优化步骤与 Fast Forward 阶段之间交替,相较于使用 Adam 的标准 SGD,Fast Forward 最多可减少87%的 FLOPs,并最多减少81%的训练时间。我们通过在不同任务上微调多种模型来验证 Fast Forward,并证明它能在不损害模型性能的情况下加速训练。此外,我们还分析了应在何时以及如何应用 Fast Forward。

英文摘要:

Parameter efficient finetuning methods like low-rank adaptation (LoRA) aim to reduce the computational costs of finetuning pretrained Language Models (LMs). Enabled by these low-rank settings, we propose an even more efficient optimization strategy: Fast Forward, a simple and effective approach to accelerate large segments of training. In a Fast Forward stage, we repeat the most recent optimizer step until the loss stops improving on a tiny validation set. By alternating between regular optimization steps and Fast Forward stages, Fast Forward provides up to an 87\% reduction in FLOPs and up to an 81\% reduction in train time over standard SGD with Adam. We validate Fast Forward by finetuning various models on different tasks and demonstrate that it speeds up training without compromising model performance. Additionally, we analyze when and how to apply Fast Forward.

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

↑