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

READ:大型Transformer的循环自适应

READ: Recurrent Adaptation of Large Transformers

Meta

John Nguyen, Sid Wang, Ke Li, Carole-Jean Wu

AI总结:

针对大型Transformer全参数微调及现有参数高效迁移学习方法资源消耗高的问题,提出轻量内存高效的READ微调方法,通过旁置小型RNN避免主干网络反向传播,在GLUE基准上显著降低内存与能耗且保持模型质量,具备高可扩展性。

摘要:

大规模Transformer的微调推动了自然语言处理与计算机视觉任务中众多AI应用的爆发式增长。然而,随着模型规模和任务数量增加,微调所有预训练模型参数变得不切实际。参数高效迁移学习(PETL)方法旨在解决这些挑战。PETL方法虽能有效减少可训练参数数量,但仍需大量能源和计算资源来完成微调。本文提出了循环自适应(Recurrent ADaption,READ)——一种轻量且内存高效的微调方法,以克服现有PETL方法的局限。具体而言,READ在主干模型旁插入一个小型RNN网络,使模型无需通过大型主干网络进行反向传播。通过在GLUE基准上开展全面的实证评估,我们证明,与全参数微调相比,READ可减少56%的训练内存消耗、降低84%的GPU能耗,同时保持较高的模型质量。此外,READ的模型规模不会随主干模型规模增大而增长,使其成为适用于大型Transformer微调的高可扩展解决方案。

英文摘要:

Fine-tuning large-scale Transformers has led to the explosion of many AI applications across Natural Language Processing and Computer Vision tasks. However, fine-tuning all pre-trained model parameters becomes impractical as the model size and number of tasks increase. Parameter-efficient transfer learning (PETL) methods aim to address these challenges. While effective in reducing the number of trainable parameters, PETL methods still require significant energy and computational resources to fine-tune. In this paper, we introduce \textbf{RE}current \textbf{AD}aption (READ) -- a lightweight and memory-efficient fine-tuning method -- to overcome the limitations of the current PETL approaches. Specifically, READ inserts a small RNN network alongside the backbone model so that the model does not have to back-propagate through the large backbone network. Through comprehensive empirical evaluation of the GLUE benchmark, we demonstrate READ can achieve a $56\%$ reduction in the training memory consumption and an $84\%$ reduction in the GPU energy usage while retraining high model quality compared to full-tuning. Additionally, the model size of READ does not grow with the backbone model size, making it a highly scalable solution for fine-tuning large Transformers.

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

↑