paper-with-me

홈 › Papers

Self-Slimming Vision Transformer

2021-09-29 · Zhuofan Zong, Kunchang Li, Guanglu Song, Yali Wang, Yu Qiao, Biao Leng, Yu Liu

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 exhausting token-to-token comparison. To make ViTs more efficient, we can prune them from two orthogonal directions: model structure and token number. However, pruning structure decreases the model capacity and struggles to speed up ViTs. Alternatively, we observe that ViTs exhibit sparse attention with high token similarity, while reducing tokens can greatly improve the throughput. Therefore, we propose a generic self-slimming learning approach for vanilla ViTs, namely SiT. Specifically, we first design a novel Token Slimming Module (TSM), which can boost the inference efficiency of ViTs by dynamic token aggregation. Different from the token hard dropping, our TSM softly integrates redundant tokens into fewer informative ones, which can dynamically zoom visual attention without cutting off discriminative token relations in the image. Furthermore, we introduce a concise Dense Knowledge Distillation (DKD) framework, which densely transfers token information in a flexible auto-encoder manner. Due to the similar structure between teacher and student, our framework can effectively leverage both parameter and structure knowledge to accelerate training convergence. Finally, we conduct extensive experiments to evaluate our SiT. In most cases, our method can speed up ViTs by 3.6x while maintaining 97% of their performance. Surprisingly, by simply arming LV-ViT with our SiT, we achieve new state-of-the-art performance on ImageNet, surpassing all the CNNs and ViTs in the recent literature.

📄 PDF Abstract BibTeX

Code (0)

등록된 구현이 없습니다.

Tasks

Knowledge Distillation

Methods 이 논문이 사용한 방법론

Pruning 설명 없음
Knowledge Distillation A very simple way to improve the performance of almost any machine learning algorithm is to train many different models on the same data and then to average their predictions.…
LV-ViT 설명 없음

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

Self-slimmed Vision Transformer

2021-11-24 · 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 a huge computation burden, because of…

Knowledge Distillation

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

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

2022-01-03 · CVPR 2022 1 · Arnav Chavan, Zhiqiang Shen, Zhuang Liu, Zechun Liu 외

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 …

GPU

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