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

少即是多:基于 SubTuning 的选择性层微调

Less is More: Selective Layer Finetuning with SubTuning

Harvard University(哈佛大学);Mobileye(Mobileye公司);Hebrew University(希伯来大学)

Gal Kaplun, Andrey Gurevich, Tal Swisa, Mazor David, Shai Shalev-Shwartz, Eran Malach

AI总结:

提出 SubTuning 方法,仅微调网络中精选的层子集而冻结其余权重,在大幅降低计算成本的同时实现与全微调相当甚至更优的性能,并有效支持多任务学习。

摘要:

微调预训练模型已成为在新任务上训练神经网络的标准方法,能够实现快速收敛并提升性能。在本研究中,我们探讨了一种替代的微调方法:不微调网络的所有权重,而是仅训练精心挑选的层子集,将其余权重冻结在初始(预训练)值。我们证明,子集微调(或 SubTuning)通常能达到与全模型微调相当的准确率,且在训练数据稀缺时甚至超越全微调的性能。因此,SubTuning 允许以极低的计算成本部署新任务,同时享受微调整个模型的益处。这产生了一种简单有效的多任务学习方法,不同任务之间互不干扰,且在推理时共享大部分资源。我们使用不同的网络架构和预训练方法,在多个任务上展示了 SubTuning 的高效性。

英文摘要:

Finetuning a pretrained model has become a standard approach for training neural networks on novel tasks, resulting in fast convergence and improved performance. In this work, we study an alternative finetuning method, where instead of finetuning all the weights of the network, we only train a carefully chosen subset of layers, keeping the rest of the weights frozen at their initial (pretrained) values. We demonstrate that \emph{subset finetuning} (or SubTuning) often achieves accuracy comparable to full finetuning of the model, and even surpasses the performance of full finetuning when training data is scarce. Therefore, SubTuning allows deploying new tasks at minimal computational cost, while enjoying the benefits of finetuning the entire model. This yields a simple and effective method for multi-task learning, where different tasks do not interfere with one another, and yet share most of the resources at inference time. We demonstrate the efficiency of SubTuning across multiple tasks, using different network architectures and pretraining methods.

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

↑