S2A: A Unified Framework for Parameter and Memory Efficient Transfer Learning
Sichuan University(四川大学);TongJi University(同济大学);Shandong Computer Science Center(山东计算机科学中心);Beijing University of Posts and Telecommunications(北京邮电大学);The Hong Kong University of Science and Technology (Guangzhou)(香港科技大学(广州))
Tian Jin, Enjun Du, Changwei Wang, Wenhao Xu, Ding Luo
参数高效迁移学习(PETL)旨在为多个下游任务缩减预训练模型的规模。然而,随着模型规模不断增大,与可学习参数的减少相比,现有PETL方法的内存占用并未显著降低。这一局限性阻碍了PETL方法在内存受限设备上的实际部署。为此,我们提出了一种新的PETL框架,称为Structure to Activation (S2A),以减少微调期间的激活内存占用。具体而言,我们的框架包括:1)在参数化模型结构中进行激活模块设计(即偏置、提示和侧边模块),这显著减少了可调参数和激活内存;2)针对非参数化结构(如非线性函数),基于其导数对激活进行4位量化,在保持准确率的同时显著降低了内存使用。因此,我们的S2A方法在参数和内存占用方面均提供了一个轻量级的解决方案。我们使用不同的骨干网络对S2A进行了评估,并在各种数据集上进行了广泛的实验以评估其有效性。结果表明,我们的方法不仅优于现有的PETL技术,平均实现了四倍的GPU内存占用减少,而且在可调参数更少的情况下也展现出了具有竞争力的准确率。这些证明我们的方法非常适合在硬件受限的设备上进行实际的迁移学习。
英文摘要:
Parameter-efficient transfer learning (PETL) aims to reduce the scales of pretrained models for multiple downstream tasks. However, as the models keep scaling up, the memory footprint of existing PETL methods is not significantly reduced compared to the reduction of learnable parameters. This limitation hinders the practical deployment of PETL methods on memory-constrained devices. To this end, we proposed a new PETL framework, called Structure to Activation (S2A), to reduce the memory footprint of activation during fine-tuning. Specifically, our framework consists of: 1) Activation modules design(i.e., bias, prompt and side modules) in the parametric model structure, which results in a significant reduction of adjustable parameters and activation memory; 2) 4-bit quantization of activations based on their derivatives for non-parametric structures (e.g., nonlinear functions), which maintains accuracy while significantly reducing memory usage. Our S2A method consequently offers a lightweight solution in terms of both parameters and memory footprint. We evaluated S2A with different backbones and performed extensive experiments on various datasets to evaluate the effectiveness. The results show that our methods not only outperform existing PETL techniques, achieving a fourfold reduction in GPU memory footprint on average, but also shows competitive performance in accuracy with fewer tunable parameters. These demonstrate that our method is highly suitable for practical transfer learning on hardware-constrained devices.
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(阿联酋大学信息技术学院)
Fine-grained Prompt Tuning: A Parameter and Memory Efficient Transfer Learning Method for High-resolution Medical Image Classification
School of Biomedical Engineering, The University of British Columbia(不列颠哥伦比亚大学生物医学工程学院);Department of Electrical and Electronic Engineering, The University of Hong Kong(香港大学电机电子工程学系);Jiaxing Research Institute, Southern University of Science and Technology(南方科技大学嘉兴研究院);Department of Electronic and Electrical Engineering, Southern University of Science and Technology(南方科技大学电子与电气工程系)
Boosting Memory Efficiency in Transfer Learning for High-Resolution Medical Image Classification
Department of Electronic and Electrical Engineering, Southern University of Science and Technology(电子与电气工程系,南方科技大学);School of Biomedical Engineering, The University of British Columbia(生物医学工程学院,不列颠哥伦比亚大学);Department of Electrical and Electronic Engineering, The University of Hong Kong(电气与电子工程系,香港大学);Jiaxing Research Institute, Southern University of Science and Technology(嘉兴研究院,南方科技大学)
Select, Attend, and Transfer: Light, Learnable Skip Connections
Simon Fraser University(西蒙弗雷泽大学);Siemens Healthineers(西门子医疗)
深度网络中的跳过连接通过促进更深层次网络架构的训练和降低梯度消失的风险,提高了分割和分类性能。它们为类似编码器-解码器的网络提供了更丰富的特征表示,但代价是更高的内存使用率,计算量,并可能导致传输非歧视性特征图。在本文中,我们专注于改进分段网络中使用的跳过连接(例如,U-Net、V-Net和The One Hundred Layers Tiramisu(DensNet)架构)。我们提出了轻,可学习的跳过连接,学习首先选择最具鉴别力的通道,然后参加所选特征图的最具鉴别力的区域。所提出的跳跃连接的输出是一个独特的特征图,这不仅在很大程度上减少了内存使用和网络参数,但也提高了分割精度。我们在三个不同的2D和体积数据集上评估了所提出的方法,并证明了所提出的轻型,可学习的跳过连接在分割精度,内存使用和网络参数数量方面优于传统的重型跳过连接。