Mini but Mighty: Finetuning ViTs with Mini Adapters

Imad Eddine Marouf, Enzo Tartaglione, Stéphane Lathuilière
11/7/2023
cs.CVcs.AI

No official code found. Best implementation: IemProg/MiMi (20 stars, last commit 2024-07-05).

Abstract

Vision Transformers (ViTs) have become one of the dominant architectures in computer vision, and pre-trained ViT models are commonly adapted to new tasks via fine-tuning. Recent works proposed several parameter-efficient transfer learning methods, such as adapters, to avoid the prohibitive training and storage cost of finetuning. In this work, we observe that adapters perform poorly when the dimension of adapters is small, and we propose MiMi, a training framework that addresses this issue. We start with large adapters which can reach high performance, and iteratively reduce their size. To enable automatic estimation of the hidden dimension of every adapter, we also introduce a new scoring function, specifically designed for adapters, that compares the neuron importance across layers. Our method outperforms existing methods in finding the best trade-off between accuracy and trained parameters across the three dataset benchmarks DomainNet, VTAB, and Multi-task, for a total of 29 datasets.

View on arXivView PDF

Code Implementations(1)

IemProg/MiMiCommunity100%

🔥 🔥 [WACV2024] Mini but Mighty: Finetuning ViTs with Mini Adapters

200Shell, PythonOct 25, 20232 years ago

Similar Papers

Cite this paper

@article{marouf2023mini,
  title  = {Mini but Mighty: Finetuning ViTs with Mini Adapters},
  author = {Imad Eddine Marouf and Enzo Tartaglione and Stéphane Lathuilière},
  year   = {2023},
  eprint = {2311.03873},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2311.03873v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2311.03873.svg)](https://codeofpaper.com/paper/2311.03873)

Discussion