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

SHERL:面向资源受限迁移学习的高精度高效内存合成方法

SHERL: Synthesizing High Accuracy and Efficient Memory for Resource-Limited Transfer Learning

Dalian University of Technology(大连理工大学);KU Leuven(鲁汶大学);Tencent WeChat(腾讯微信);HKUST(香港科技大学)

Haiwen Diao, Bo Wan, Xu Jia, Yunzhi Zhuge, Ying Zhang, Huchuan Lu, Long Chen

AI总结:

针对内存高效迁移学习存在的先验知识挖掘不足、跨层特征依赖与冗余被忽略的问题,提出SHERL策略,将适配解耦为抗冗余整合早期特征、用少量顶层优化表征两阶段,实现低内存下的性能提升。

摘要:

参数高效迁移学习(PETL)已成为将大型预训练模型适配到下游任务的热门研究领域,该方法在大幅减少可训练参数的同时,也面临着微调阶段的内存挑战。为解决这一问题,内存高效型迁移学习(METL)系列方法避免了通过大型主干网络反向传播梯度,但这类方法存在缺陷:它们完全依赖冻结的中间输出,限制了对预训练模型先验知识的充分挖掘。此外,跨层特征之间的依赖关系和冗余性常被忽略,导致更具判别性的表征被埋没,与传统PETL方法相比存在固有性能差距。为此,我们提出一种面向资源受限场景的创新METL策略SHERL,将整个适配过程解耦为两个连续且互补的阶段。在早期路径中,通过抗冗余操作对中间输出进行整合,提升其后续交互的兼容性;由此在后期路径中,仅使用极少的预训练模型顶层,既能降低内存开销的峰值需求,又能将这些相当灵活的特征调整为更适配新领域、更具表征能力的特征。在视觉-语言任务和纯语言任务上开展的大量消融实验表明,SHERL兼具参数高效和内存高效技术的优势,在多种架构上性能持平或更优,且微调时内存占用更低。我们的代码已公开发布于:https://github.com/Paranioar/SHERL。

英文摘要:

Parameter-efficient transfer learning (PETL) has emerged as a flourishing research field for adapting large pre-trained models to downstream tasks, greatly reducing trainable parameters while grappling with memory challenges during fine-tuning. To address it, memory-efficient series (METL) avoid backpropagating gradients through the large backbone. However, they compromise by exclusively relying on frozen intermediate outputs and limiting the exhaustive exploration of prior knowledge from pre-trained models. Moreover, the dependency and redundancy between cross-layer features are frequently overlooked, thereby submerging more discriminative representations and causing an inherent performance gap (vs. conventional PETL methods). Hence, we propose an innovative METL strategy called SHERL for resource-limited scenarios to decouple the entire adaptation into two successive and complementary processes. In the early route, intermediate outputs are consolidated via an anti-redundancy operation, enhancing their compatibility for subsequent interactions; thereby in the late route, utilizing minimal late pre-trained layers could alleviate the peak demand on memory overhead and regulate these fairly flexible features into more adaptive and powerful representations for new domains. Extensive ablations on vision-and-language and language-only tasks show that SHERL combines the strengths of both parameter and memory-efficient techniques, performing on-par or better across diverse architectures with lower memory during fine-tuning. Our code is publicly available at: https://github.com/Paranioar/SHERL.

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

↑