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

面向视觉Transformer的参数高效与内存高效调优:一种解耦方法

Parameter-Efficient and Memory-Efficient Tuning for Vision Transformer: A Disentangled Approach

Tsinghua Shenzhen International Graduate School, Tsinghua University(清华大学深圳国际研究生院);Tencent(腾讯);National University of Singapore(新加坡国立大学);Research Center of Artificial Intelligence, Peng Cheng Laboratory(鹏城实验室人工智能研究中心);Shenzhen Qiji Technology Co., Ltd.(深圳奇基科技有限公司)

Taolin Zhang, Jiawang Bai, Zhihe Lu, Dongze Lian, Genping Wang, Xinchao Wang, Shu-Tao Xia

AI总结:

针对现有参数高效迁移学习方法训练内存占用高的问题,提出解耦式调优方法,通过独立轻量化模块合成任务专属查询提取预训练模型特征,在内存受限下实现SOTA性能。

摘要:

参数高效迁移学习(PETL)领域的最新研究表明,仅需少量可学习参数即可将预训练视觉Transformer适配到下游识别任务中。但这类方法通常会在预训练模型中插入新结构,导致模型的全部中间特征发生改变,必须存储这些特征才能参与反向传播,进而造成训练内存占用过高的问题。本文从全新的解耦视角解决该问题,即将PETL拆分为任务专属学习与预训练知识利用两个层面。具体而言,我们通过一个独立于预训练模型的轻量化可学习模块合成任务专属查询。携带任务专属知识的合成查询以纯查询方式,从预训练模型的中间表示中提取下游任务所需的有用特征。基于这些特征,本文提出定制化分类头以对输入样本做出预测。该架构轻量化且无需依赖大量中间特征执行梯度下降,因此训练时内存占用极低。大量实验表明,本文方法在内存受限条件下取得了当前最优(SOTA)性能,展现了其在实际场景中的应用潜力。

英文摘要:

Recent works on parameter-efficient transfer learning (PETL) show the potential to adapt a pre-trained Vision Transformer to downstream recognition tasks with only a few learnable parameters. However, since they usually insert new structures into the pre-trained model, entire intermediate features of that model are changed and thus need to be stored to be involved in back-propagation, resulting in memory-heavy training. We solve this problem from a novel disentangled perspective, i.e., dividing PETL into two aspects: task-specific learning and pre-trained knowledge utilization. Specifically, we synthesize the task-specific query with a learnable and lightweight module, which is independent of the pre-trained model. The synthesized query equipped with task-specific knowledge serves to extract the useful features for downstream tasks from the intermediate representations of the pre-trained model in a query-only manner. Built upon these features, a customized classification head is proposed to make the prediction for the input sample. lightweight architecture and avoids the use of heavy intermediate features for running gradient descent, it demonstrates limited memory usage in training. Extensive experiments manifest that our method achieves state-of-the-art performance under memory constraints, showcasing its applicability in real-world situations.

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

↑