English

AdaptFormer: Adapting Vision Transformers for Scalable Visual Recognition

Computer Vision and Pattern Recognition 2022-10-18 v3

Abstract

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.

Keywords

Cite

@article{arxiv.2205.13535,
  title  = {AdaptFormer: Adapting Vision Transformers for Scalable Visual Recognition},
  author = {Shoufa Chen and Chongjian Ge and Zhan Tong and Jiangliu Wang and Yibing Song and Jue Wang and Ping Luo},
  journal= {arXiv preprint arXiv:2205.13535},
  year   = {2022}
}

Comments

Accepted by NeurIPS 2022. Code: https://github.com/ShoufaChen/AdaptFormer

R2 v1 2026-06-24T11:29:58.913Z