arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2206.06522cs.CLcs.AIcs.CV
收藏

LST:用于参数和记忆高效迁移学习的阶梯边调整

LST: Ladder Side-Tuning for Parameter and Memory Efficient Transfer Learning

UNC Chapel Hill(北卡罗来纳大学教堂山分校)

Yi-Lin Sung, Jaemin Cho, Mohit Bansal

摘要:

对下游任务的大型预训练模型进行微调最近已被广泛应用于各个领域。然而,更新大型预训练模型的整个参数集是昂贵的。尽管最近提出的参数高效迁移学习(PETL)技术允许针对新任务更新预先训练的骨干网络内的一小部分参数(例如,仅使用2%的参数),但它们仅将训练存储器需求减少高达30%。这是因为可训练参数的梯度计算仍然需要通过大型预训练骨干模型进行反向传播。为了解决这个问题,我们提出了阶梯边调整(LST),一个新的PETL技术,可以减少训练内存的要求更大的金额。与现有的在骨干网络内部插入额外参数的参数有效方法不同,我们训练一个梯形侧网络,一个小而独立的网络,通过来自骨干网络的快捷连接(称为梯形)将中间激活作为输入,并进行预测。LST的内存需求比以前的方法要低得多,因为它不需要通过主干网络进行反向传播,而是只需要通过侧网络和梯形连接。我们在NLP(GLUE)和视觉和语言(VQA,GQA,NLVR 2,MSCOCO)任务上使用各种模型(T5和CLIP-T5)评估我们的方法。LST节省了69%的内存成本来微调整个网络,而其他方法在类似的参数使用中仅节省了26%(因此,节省了2.7倍的内存)。此外,LST在低内存状态下实现了比Adapter和LoRA更高的准确性。为了进一步展示这种更好的内存效率的优势,我们还将LST应用于更大的T5模型,获得了比完全微调和其他PETL方法更好的GLUE性能。准确性-效率权衡也适用于VL任务。

英文摘要:

Fine-tuning large pre-trained models on downstream tasks has been adopted in a variety of domains recently. However, it is costly to update the entire parameter set of large pre-trained models. Although recently proposed parameter-efficient transfer learning (PETL) techniques allow updating a small subset of parameters (e.g. only using 2% of parameters) inside a pre-trained backbone network for a new task, they only reduce the training memory requirement by up to 30%. This is because the gradient computation for the trainable parameters still requires backpropagation through the large pre-trained backbone model. To address this, we propose Ladder Side-Tuning (LST), a new PETL technique that can reduce training memory requirements by more substantial amounts. Unlike existing parameter-efficient methods that insert additional parameters inside backbone networks, we train a ladder side network, a small and separate network that takes intermediate activations as input via shortcut connections (called ladders) from backbone networks and makes predictions. LST has significantly lower memory requirements than previous methods, because it does not require backpropagation through the backbone network, but instead only through the side network and ladder connections. We evaluate our method with various models (T5 and CLIP-T5) on both NLP (GLUE) and vision-and-language (VQA, GQA, NLVR2 , MSCOCO) tasks. LST saves 69% of the memory costs to fine-tune the whole network, while other methods only save 26% of that in similar parameter usages (hence, 2.7x more memory savings). Moreover, LST achieves higher accuracy than Adapter and LoRA in a low-memory regime. To further show the advantage of this better memory efficiency, we also apply LST to larger T5 models, attaining better GLUE performance than full fine-tuning and other PETL methods. The accuracy-efficiency trade-off also holds on VL tasks.

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

↑