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

通过遮蔽双路径蒸馏实现记忆高效的迁移学习

Memory-Efficient Transfer Learning with Fading Side Networks via Masked Dual Path Distillation

State Key Laboratory of Virtual Reality Technology and Systems, Beihang University(北京航空航天大学虚拟现实技术与系统国家重点实验室);School of Computer Science and Engineering, Beihang University(北京航空航天大学计算机科学与工程学院);College of Information Technology, United Arab Emirates University(阿联酋大学信息技术学院)

Yutong Zhang, Jiaxin Chen, Honglin Chen, Kaiqi Zheng, Shengcai Liao, Hanwen Zhong, Weixin Li, Yunhong Wang

AI总结:

本文提出遮蔽双路径蒸馏方法,通过在微调中互蒸馏冻结主干和可学习侧网络,实现高效迁移学习,在推理时丢弃侧网络以加快速度,同时保持参数和内存效率,并在多个任务上验证了方法的准确性提升。

摘要:

记忆高效的迁移学习(METL)方法最近在适应预训练模型到下游任务中取得了有希望的性能。它们避免在大型主干上应用梯度反向传播,从而显著减少了微调时可训练参数的数量和高内存消耗。然而,由于它们通常使用轻量且可学习的侧网络,这些方法不可避免地在推理过程中引入额外的内存和时间开销,这与高效迁移学习的最终目标相矛盾。为了解决上述问题,我们提出了一种新的方法,称为遮蔽双路径蒸馏(MDPD),以在保留微调中的参数和内存效率的同时加速推理。具体来说,MDPD开发了一个框架,在微调中通过互蒸馏冻结的主干和可学习的侧网络来提高性能,并在推理时丢弃侧网络而不牺牲准确性。此外,我们设计了一种新的基于特征的知识蒸馏方法用于具有多层的编码器结构。在不同主干的视觉/语言-only和视觉-语言任务上进行了广泛的实验,证明了我们的方法不仅在推理速度上提高了至少25.2%,同时保持了参数和内存消耗相当,而且相比最先进的方法显著提高了准确性。源代码可在https://github.com/Zhang-VKk/MDPD上获得。

英文摘要:

Memory-efficient transfer learning (METL) approaches have recently achieved promising performance in adapting pre-trained models to downstream tasks. They avoid applying gradient backpropagation in large backbones, thus significantly reducing the number of trainable parameters and high memory consumption during fine-tuning. However, since they typically employ a lightweight and learnable side network, these methods inevitably introduce additional memory and time overhead during inference, which contradicts the ultimate goal of efficient transfer learning. To address the above issue, we propose a novel approach dubbed Masked Dual Path Distillation (MDPD) to accelerate inference while retaining parameter and memory efficiency in fine-tuning with fading side networks. Specifically, MDPD develops a framework that enhances the performance by mutually distilling the frozen backbones and learnable side networks in fine-tuning, and discard the side network during inference without sacrificing accuracy. Moreover, we design a novel feature-based knowledge distillation method for the encoder structure with multiple layers. Extensive experiments on distinct backbones across vision/language-only and vision-and-language tasks demonstrate that our method not only accelerates inference by at least 25.2\% while keeping parameter and memory consumption comparable, but also remarkably promotes the accuracy compared to SOTA approaches. The source code is available at https://github.com/Zhang-VKk/MDPD.

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

↑