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

S2A:一个参数与内存高效的迁移学习统一框架

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

AI总结:

针对现有参数高效迁移学习方法内存占用降低不显著的问题,提出S2A框架,通过激活模块设计与基于导数的4位量化技术,在减少可调参数的同时大幅降低内存占用,并在准确率上保持竞争力。

摘要:

参数高效迁移学习(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.

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

↑