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

AdaptFormer:调整视觉Transformer以实现可扩展的视觉识别

AdaptFormer: Adapting Vision Transformers for Scalable Visual Recognition

The University of Hong Kong(香港大学);Tencent AI Lab(腾讯人工智能实验室)

Shoufa Chen, Chongjian Ge, Zhan Tong, Jiangliu Wang, Yibing Song, Jue Wang, Ping Luo

摘要:

预训练视觉Transformer(ViTs)在视觉识别中取得了巨大的成功。下面的场景是使ViT适应各种图像和视频识别任务。适应是具有挑战性的,因为繁重的计算和存储器存储。每个模型都需要一个独立完整的微调过程来适应不同的任务,这限制了它在不同视觉领域的可移植性。为了解决这一挑战,我们提出了一种有效的自适应方法,Transformer,即AdaptFormer,它可以适应预先训练的ViT到许多不同的图像和视频任务有效。它具有比现有技术更有吸引力的几个优点。首先,AdaptFormer引入了轻量级模块,仅向ViT添加不到2%的额外参数,同时能够在不更新其原始预训练参数的情况下增加ViT的可移植性,在动作识别基准上显着优于现有的100%完全微调模型。其次,它可以在不同的Transformers中即插即用,并可扩展到许多视觉任务。最后,在5个图像和视频数据集上的大量实验表明,AdaptFormer在目标域中显著提高了ViTs。例如,当仅更新1.5%的额外参数时,与Something-Something~v2和HMDB 51上完全微调的模型相比,它分别实现了约10%和19%的相对改进。代码可在https://github.com/ShoufaChen/AdaptFormer上获得。

英文摘要:

Pretraining Vision Transformers (ViTs) has achieved great success in visual recognition. A following scenario is to adapt a ViT to various image and video recognition tasks. The adaptation is challenging because of heavy computation and memory storage. Each model needs an independent and complete finetuning process to adapt to different tasks, which limits its transferability to different visual domains. To address this challenge, we propose an effective adaptation approach for Transformer, namely AdaptFormer, which can adapt the pre-trained ViTs into many different image and video tasks efficiently. It possesses several benefits more appealing than prior arts. Firstly, AdaptFormer introduces lightweight modules that only add less than 2% extra parameters to a ViT, while it is able to increase the ViT's transferability without updating its original pre-trained parameters, significantly outperforming the existing 100\% fully fine-tuned models on action recognition benchmarks. Secondly, it can be plug-and-play in different Transformers and scalable to many visual tasks. Thirdly, extensive experiments on five image and video datasets show that AdaptFormer largely improves ViTs in the target domains. For example, when updating just 1.5% extra parameters, it achieves about 10% and 19% relative improvement compared to the fully fine-tuned models on Something-Something~v2 and HMDB51, respectively. Code is available at https://github.com/ShoufaChen/AdaptFormer.

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

↑