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

Dr$^2$Net:面向内存高效微调的动态可逆双残差网络

Dr$^2$Net: Dynamic Reversible Dual-Residual Networks for Memory-Efficient Finetuning

King Abdullah University of Science and Technology(阿卜杜拉国王科技大学);UC Berkeley(加州大学伯克利分校)

Chen Zhao, Shuming Liu, Karttikeya Mangalam, Guocheng Qian, Fatimah Zohra, Abdulmohsen Alghannam, Jitendra Malik, Bernard Ghanem

AI总结:

本文提出动态可逆双残差网络Dr$^2$Net,通过双残差连接与动态训练策略将预训练模型无缝转换为可逆网络,在保持微调性能的同时大幅降低内存消耗。

摘要:

大型预训练模型在现代计算机视觉任务中日益重要。这些模型通常通过端到端微调用于下游任务,但对于高分辨率数据任务(如视频理解、小目标检测和点云分析)而言,这种方式极其消耗内存。本文提出动态可逆双残差网络,即Dr$^2$Net,这是一种新型网络架构族,可作为代理网络对预训练模型进行微调,从而大幅降低内存消耗。Dr$^2$Net包含两类残差连接,一类保持预训练模型中的残差结构,另一类使网络可逆。由于其可逆性,中间激活值可以从输出重建,因此在训练期间会从内存中清除。我们分别对两类残差连接使用两个系数,并引入一种动态训练策略,使预训练模型无缝过渡到具有更高数值精度的可逆网络。我们在多种预训练模型和多种任务上评估了Dr$^2$Net,结果表明其性能可与传统微调相媲美,但内存使用量显著减少。

英文摘要:

Large pretrained models are increasingly crucial in modern computer vision tasks. These models are typically used in downstream tasks by end-to-end finetuning, which is highly memory-intensive for tasks with high-resolution data, e.g., video understanding, small object detection, and point cloud analysis. In this paper, we propose Dynamic Reversible Dual-Residual Networks, or Dr$^2$Net, a novel family of network architectures that acts as a surrogate network to finetune a pretrained model with substantially reduced memory consumption. Dr$^2$Net contains two types of residual connections, one maintaining the residual structure in the pretrained models, and the other making the network reversible. Due to its reversibility, intermediate activations, which can be reconstructed from output, are cleared from memory during training. We use two coefficients on either type of residual connections respectively, and introduce a dynamic training strategy that seamlessly transitions the pretrained model to a reversible network with much higher numerical precision. We evaluate Dr$^2$Net on various pretrained models and various tasks, and show that it can reach comparable performance to conventional finetuning but with significantly less memory usage.

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

↑