paper-with-me

홈 › Papers

Vision Transformer Slimming: Multi-Dimension Searching in Continuous Optimization Space

2022-01-03 · CVPR 2022 1 · Arnav Chavan, Zhiqiang Shen, Zhuang Liu, Zechun Liu, Kwang-Ting Cheng, Eric Xing

This paper explores the feasibility of finding an optimal sub-model from a vision transformer and introduces a pure vision transformer slimming (ViT-Slim) framework. It can search a sub-structure from the original model end-to-end across multiple dimensions, including the input tokens, MHSA and MLP modules with state-of-the-art performance. Our method is based on a learnable and unified $\ell_1$ sparsity constraint with pre-defined factors to reflect the global importance in the continuous searching space of different dimensions. The searching process is highly efficient through a single-shot training scheme. For instance, on DeiT-S, ViT-Slim only takes ~43 GPU hours for the searching process, and the searched structure is flexible with diverse dimensionalities in different modules. Then, a budget threshold is employed according to the requirements of accuracy-FLOPs trade-off on running devices, and a re-training process is performed to obtain the final model. The extensive experiments show that our ViT-Slim can compress up to 40% of parameters and 40% FLOPs on various vision transformers while increasing the accuracy by ~0.6% on ImageNet. We also demonstrate the advantage of our searched models on several downstream datasets. Our code is available at https://github.com/Arnav0400/ViT-Slim.

📄 PDF Abstract BibTeX arXiv:2201.00814

Code (1)

arnav0400/vit-slim 공식 구현 pytorch

Tasks

GPU

Methods 이 논문이 사용한 방법론

Multi-Head Attention 설명 없음
Attention 설명 없음
Linear Layer A Linear Layer is a projection $\mathbf{XW + b}$.
Residual Connection 설명 없음
Softmax The Softmax output function transforms a previous layer's output into a vector of probabilities. It is commonly used for multiclass classification. Given an input vector $x$…
Dense Connections Dense Connections, or Fully Connected Connections, are a type of layer in a deep neural network that use a linear operation where every input is connected to every output…
Layer Normalization Unlike batch normalization, Layer Normalization directly estimates the normalization statistics from the summed inputs…
Vision Transformer The Vision Transformer, or ViT, is a model for image classification that employs a Transformer-like architecture over…

Similar Papers 제목 키워드 기반

Life Regression based Patch Slimming for Vision Transformers

2023-04-11 · Jiawei Chen, Lin Chen, Jiang Yang, Tianqi Shi 외

Vision transformers have achieved remarkable success in computer vision tasks by using multi-head self-attention modules to capture long-range dependencies within images. However, the high inference computation cost pose…

regression

Patch Slimming for Efficient Vision Transformers

2021-06-05 · CVPR 2022 1 · Yehui Tang, Kai Han, Yunhe Wang, Chang Xu 외

This paper studies the efficiency problem for visual transformers by excavating redundant calculation in given networks. The recent transformer architecture has demonstrated its effectiveness for achieving excellent perf…

Efficient ViTs

Self-Slimming Vision Transformer

2021-09-29 · Zhuofan Zong, Kunchang Li, Guanglu Song, Yali Wang 외

Vision transformers (ViTs) have become the popular structures and outperformed convolutional neural networks (CNNs) on various vision tasks. However, such powerful transformers bring huge computation burden, due to the e…

Knowledge Distillation

Searching the Search Space of Vision Transformer

2021-11-29 · NeurIPS 2021 12 · Minghao Chen, Kan Wu, Bolin Ni, Houwen Peng 외

Vision Transformer has shown great visual representation power in substantial vision tasks such as recognition and detection, and thus been attracting fast-growing efforts on manually designing more effective architectur…

Neural Architecture Searchobject-detectionObject DetectionQuestion Answering+3

Linguistic-Aware Patch Slimming Framework for Fine-grained Cross-Modal Alignment

2024-01-01 · CVPR 2024 1 · Zheren Fu, Lei Zhang, Hou Xia, Zhendong Mao

Cross-modal alignment aims to build a bridge connecting vision and language. It is an important multi-modal task that efficiently learns the semantic similarities between images and texts. Traditional fine-grained al…

cross-modal alignmentCross-Modal RetrievalImage RetrievalImage-to-Text Retrieval+4