paper-with-me

Papers

Making Vision Transformers Efficient from A Token Sparsification View

2023-03-15 · CVPR 2023 1 · Shuning Chang, Pichao Wang, Ming Lin, Fan Wang, David Junhao Zhang, Rong Jin, Mike Zheng Shou

The quadratic computational complexity to the number of tokens limits the practical applications of Vision Transformers (ViTs). Several works propose to prune redundant tokens to achieve efficient ViTs. However, these methods generally suffer from (i) dramatic accuracy drops, (ii) application difficulty in the local vision transformer, and (iii) non-general-purpose networks for downstream tasks. In this work, we propose a novel Semantic Token ViT (STViT), for efficient global and local vision transformers, which can also be revised to serve as backbone for downstream tasks. The semantic tokens represent cluster centers, and they are initialized by pooling image tokens in space and recovered by attention, which can adaptively represent global or local semantic information. Due to the cluster properties, a few semantic tokens can attain the same effect as vast image tokens, for both global and local vision transformers. For instance, only 16 semantic tokens on DeiT-(Tiny,Small,Base) can achieve the same accuracy with more than 100% inference speed improvement and nearly 60% FLOPs reduction; on Swin-(Tiny,Small,Base), we can employ 16 semantic tokens in each window to further speed it up by around 20% with slight accuracy increase. Besides great success in image classification, we also extend our method to video recognition. In addition, we design a STViT-R(ecover) network to restore the detailed spatial information based on the STViT, making it work for downstream tasks, which is powerless for previous token sparsification methods. Experiments demonstrate that our method can achieve competitive results compared to the original networks in object detection and instance segmentation, with over 30% FLOPs reduction for backbone. Code is available at http://github.com/changsn/STViT-R

📄 PDF Abstract BibTeX arXiv:2303.08685

Code (1)

changsn/STViT-R 공식 구현 pytorch

Tasks

Efficient ViTsimage-classificationImage ClassificationInstance Segmentationobject-detectionObject DetectionSemantic SegmentationVideo Recognition

Methods 이 논문이 사용한 방법론

SPEED The monocular depth estimation (MDE) is the task of estimating depth from a single frame. This information is an essential knowledge in many computer vision tasks such as scene…

Similar Papers 제목 키워드 기반

DeSparsify: Adversarial Attack Against Token Sparsification Mechanisms in Vision Transformers

2024-02-04 · Oryan Yehezkel, Alon Zolfi, Amit Baras, Yuval Elovici 외

Vision transformers have contributed greatly to advancements in the computer vision domain, demonstrating state-of-the-art performance in diverse tasks (e.g., image classification, object detection). However, their high …

Adversarial AttackGPUimage-classificationImage Classification+2

DynamicViT: Efficient Vision Transformers with Dynamic Token Sparsification

2021-06-03 · NeurIPS 2021 12 · Yongming Rao, Wenliang Zhao, Benlin Liu, Jiwen Lu 외

Attention is sparse in vision transformers. We observe the final prediction in vision transformers is only based on a subset of most informative tokens, which is sufficient for accurate image recognition. Based on this o…

BlockingEfficient ViTsImage Classification

Dynamic Spatial Sparsification for Efficient Vision Transformers and Convolutional Neural Networks

2022-07-04 · Yongming Rao, Zuyan Liu, Wenliang Zhao, Jie zhou 외

In this paper, we present a new approach for model acceleration by exploiting spatial sparsity in visual data. We observe that the final prediction in vision Transformers is only based on a subset of the most informative…

SPOT: Sparsification with Attention Dynamics via Token Relevance in Vision Transformers

2025-11-13 · Oded Schlesinger, Amirhossein Farzam, J. Matias Di Martino, Guillermo Sapiro arxiv

While Vision Transformers (ViT) have demonstrated remarkable performance across diverse tasks, their computational demands are substantial, scaling quadratically with the number of processed tokens. Compact attention rep…

Computational Efficiency

SaiT: Sparse Vision Transformers through Adaptive Token Pruning

2022-10-11 · Ling Li, David Thorsley, Joseph Hassoun

While vision transformers have achieved impressive results, effectively and efficiently accelerating these models can further boost performances. In this work, we propose a dense/sparse training framework to obtain a uni…

Knowledge Distillation