Multiple-Exit Tuning: Towards Inference-Efficient Adaptation for Vision Transformer

Zheng Liu, Jinchao Zhu, Nannan Li, Gao Huang
9/21/2024
cs.CV

No confident code implementation found for this paper. 2 possible matches can be shown below.

Abstract

Parameter-efficient transfer learning (PETL) has shown great potential in adapting a vision transformer (ViT) pre-trained on large-scale datasets to various downstream tasks. Existing studies primarily focus on minimizing the number of learnable parameters. Although these methods are storage-efficient, they allocate excessive computational resources to easy samples, leading to inefficient inference. To address this issue, we introduce an inference-efficient tuning method termed multiple-exit tuning (MET). MET integrates multiple exits into the pre-trained ViT backbone. Since the predictions in ViT are made by a linear classifier, each exit is equipped with a linear prediction head. In inference stage, easy samples will exit at early exits and only hard enough samples will flow to the last exit, thus saving the computational cost for easy samples. MET consists of exit-specific adapters (E-adapters) and graph regularization. E-adapters are designed to extract suitable representations for different exits. To ensure parameter efficiency, all E-adapters share the same down-projection and up-projection matrices. As the performances of linear classifiers are influenced by the relationship among samples, we employ graph regularization to improve the representations fed into the classifiers at early exits. Finally, we conduct extensive experiments to verify the performance of MET. Experimental results show that MET has an obvious advantage over the state-of-the-art methods in terms of both accuracy and inference efficiency.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 2 weaker matches are hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{liu2024multipleexit,
  title  = {Multiple-Exit Tuning: Towards Inference-Efficient Adaptation for Vision Transformer},
  author = {Zheng Liu and Jinchao Zhu and Nannan Li and Gao Huang},
  year   = {2024},
  eprint = {2409.13999},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2409.13999v1}
}

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/2409.13999.svg)](https://codeofpaper.com/paper/2409.13999)

Discussion