Unified Visual Transformer Compression
Shixing Yu, Tianlong Chen, Jiayi Shen, Huan Yuan, Jianchao Tan, Sen Yang, Ji Liu, Zhangyang Wang
Abstract
Vision transformers (ViTs) have gained popularity recently. Even without customized image operators such as convolutions, ViTs can yield competitive performance when properly trained on massive data. However, the computational overhead of ViTs remains prohibitive, due to stacking multi-head self-attention modules and else. Compared to the vast literature and prevailing success in compressing convolutional neural networks, the study of Vision Transformer compression has also just emerged, and existing works focused on one or two aspects of compression. This paper proposes a unified ViT compression framework that seamlessly assembles three effective techniques: pruning, layer skipping, and knowledge distillation. We formulate a budget-constrained, end-to-end optimization framework, targeting jointly learning model weights, layer-wise pruning ratios/masks, and skip configurations, under a distillation loss. The optimization problem is then solved using the primal-dual algorithm. Experiments are conducted with several ViT variants, e.g. DeiT and T2T-ViT backbones on the ImageNet dataset, and our approach consistently outperforms recent competitors. For example, DeiT-Tiny can be trimmed down to 50% of the original FLOPs almost without losing accuracy. Codes are available online: https://github.com/VITA-Group/UVC.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
33 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- SAViT: Structure-Aware Vision Transformer Pruning via Collaborative Optimization cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- SAViT: Structure-Aware Vision Transformer Pruning via Collaborative Optimization cites Training data-efficient image transformers & distillation through attention
- VTC-LFC: Vision Transformer Compression with Low-Frequency Components cites ALBERT: A Lite BERT for Self-supervised Learning of Language Representations
- VTC-LFC: Vision Transformer Compression with Low-Frequency Components cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- VTC-LFC: Vision Transformer Compression with Low-Frequency Components cites Training data-efficient image transformers & distillation through attention
- VTC-LFC: Vision Transformer Compression with Low-Frequency Components cites MiniViT: Compressing Vision Transformers with Weight Multiplexing
- VTC-LFC: Vision Transformer Compression with Low-Frequency Components cites Deformable DETR: Deformable Transformers for End-to-End Object Detection
- HeatViT: Hardware-Efficient Adaptive Token Pruning for Vision Transformers cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- HeatViT: Hardware-Efficient Adaptive Token Pruning for Vision Transformers cites Training data-efficient image transformers & distillation through attention
- HeatViT: Hardware-Efficient Adaptive Token Pruning for Vision Transformers cites Deformable DETR: Deformable Transformers for End-to-End Object Detection
- Is Space-Time Attention All You Need for Video Understanding? cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- ViTALiTy: Unifying Low-rank and Sparse Approximation for Vision Transformer Acceleration with a Linear Taylor Attention cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- ViTALiTy: Unifying Low-rank and Sparse Approximation for Vision Transformer Acceleration with a Linear Taylor Attention cites Training data-efficient image transformers & distillation through attention
- ViTALiTy: Unifying Low-rank and Sparse Approximation for Vision Transformer Acceleration with a Linear Taylor Attention cites Deformable DETR: Deformable Transformers for End-to-End Object Detection
- Training data-efficient image transformers & distillation through attention cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- MiniViT: Compressing Vision Transformers with Weight Multiplexing cites ALBERT: A Lite BERT for Self-supervised Learning of Language Representations
- MiniViT: Compressing Vision Transformers with Weight Multiplexing cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- MiniViT: Compressing Vision Transformers with Weight Multiplexing cites Training data-efficient image transformers & distillation through attention
Cited by top-tier papers33
- HeatViT: Hardware-Efficient Adaptive Token Pruning for Vision TransformersPeiyan Dong, Mengshu Sun, Alec Lu, Yanyue Xie et al.HPCA 2023 · 117 citations
- MiniViT: Compressing Vision Transformers with Weight MultiplexingJinnian Zhang, Houwen Peng, Kan Wu, Mengchen Liu et al.CVPR 2022 · 115 citations
- SAViT: Structure-Aware Vision Transformer Pruning via Collaborative OptimizationChuanyang Zheng, Zheyang Li, Kai Zhang, Zhi Yang et al.NeurIPS 2022 · 98 citations
- ViTALiTy: Unifying Low-rank and Sparse Approximation for Vision Transformer Acceleration with a Linear Taylor AttentionJyotikrishna Dass, Shang Wu, Huihong Shi, Chaojian Li et al.HPCA 2023 · 65 citations
- VTC-LFC: Vision Transformer Compression with Low-Frequency ComponentsZhenyu Wang, Hao Luo, Pichao Wang, Feng Ding et al.NeurIPS 2022 · 57 citations
Builds on28
- An Image is Worth 16x16 Words: Transformers for Image Recognition at ScaleAlexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn et al.ICLR 2021 · 21,477 citations
- Training data-efficient image transformers & distillation through attentionHugo Touvron, Matthieu Cord, Matthijs Douze, Francisco Massa et al.ICML 2021 · 8,974 citations
- ALBERT: A Lite BERT for Self-supervised Learning of Language RepresentationsZhenzhong Lan, Mingda Chen, Sebastian Goodman, Kevin Gimpel et al.ICLR 2020 · 7,418 citations
- Deformable DETR: Deformable Transformers for End-to-End Object DetectionXizhou Zhu, Weijie Su, Lewei Lu, Bin Li et al.ICLR 2021 · 7,353 citations
- Is Space-Time Attention All You Need for Video Understanding?Gedas Bertasius, Heng Wang, Lorenzo TorresaniICML 2021 · 2,927 citations
Related papers
- COMCAT: Towards Efficient Compression and Customization of Attention-Based Vision ModelsJinqi Xiao, Miao Yin, Yu Gong, Xiao Zang et al.ICML 2023 · 17 citations
- GOHSP: A Unified Framework of Graph and Optimization-Based Heterogeneous Structured Pruning for Vision TransformerMiao Yin, Burak Uzkent, Yilin Shen, Hongxia Jin et al.AAAI 2023 · 23 citations
- Chasing Sparsity in Vision Transformers: An End-to-End ExplorationTianlong Chen, Yu Cheng, Zhe Gan, Lu Yuan et al.NeurIPS 2021 · 295 citations
- Joint Token Pruning and Squeezing Towards More Aggressive Compression of Vision TransformersSiyuan Wei, Tianzhu Ye, Shen Zhang, Yao Tang et al.CVPR 2023
- Peeling the Onion: Hierarchical Reduction of Data Redundancy for Efficient Vision Transformer TrainingZhenglun Kong, Haoyu Ma, Geng Yuan, Mengshu Sun et al.AAAI 2023 · 32 citations
