Lune

CVPR2022Top-tier venue

MiniViT: Compressing Vision Transformers with Weight Multiplexing

Jinnian Zhang, Houwen Peng, Kan Wu, Mengchen Liu, Bin Xiao, Jianlong Fu, Lu Yuan

Abstract

Vision Transformer (ViT) models have recently drawn much attention in computer vision due to their high model capability. However, ViT models suffer from huge number of parameters, restricting their applicability on devices with limited memory. To alleviate this problem, we propose MiniViT, a new compression framework, which achieves parameter reduction in vision transformers while retaining the same performance. The central idea of MiniViT is to multiplex the weights of consecutive transformer blocks. More specifically, we make the weights shared across layers, while imposing a transformation on the weights to increase diversity. Weight distillation over self-attention is also applied to transfer knowledge from large-scale ViT models to weight-multiplexed compact models. Comprehensive experiments demonstrate the efficacy of MiniViT, showing that it can reduce the size of the pre-trained Swin-B transformer by 48%, while achieving an increase of 1.0% in Top-1 accuracy on ImageNet. Moreover, using a single-layer of parameters, MiniViT is able to compress DeiT-B by 9.7 times from 86M to 9M parameters, without seriously compromising the performance. Finally, we verify the transferability of MiniViT by reporting its performance on downstream benchmarks. Code and models are available at here.

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.

36 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • FacT: Factor-Tuning for Lightweight Adaptation on Vision Transformer cites ALBERT: A Lite BERT for Self-supervised Learning of Language Representations
  • FacT: Factor-Tuning for Lightweight Adaptation on Vision Transformer cites Swin Transformer: Hierarchical Vision Transformer using Shifted Windows
  • I-ViT: Integer-only Quantization for Efficient Vision Transformer Inference cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • I-ViT: Integer-only Quantization for Efficient Vision Transformer Inference cites Swin Transformer: Hierarchical Vision Transformer using Shifted Windows
  • I-ViT: Integer-only Quantization for Efficient Vision Transformer Inference cites RepQ-ViT: Scale Reparameterization for Post-Training Quantization of Vision Transformers
  • RepQ-ViT: Scale Reparameterization for Post-Training Quantization of Vision Transformers cites I-ViT: Integer-only Quantization for Efficient Vision Transformer Inference
  • I-ViT: Integer-only Quantization for Efficient Vision Transformer Inference cites Training data-efficient image transformers & distillation through attention
  • Swin Transformer: Hierarchical Vision Transformer using Shifted Windows cites CutMix: Regularization Strategy to Train Strong Classifiers With Localizable Features
  • Swin Transformer: Hierarchical Vision Transformer using Shifted Windows cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • Swin Transformer: Hierarchical Vision Transformer using Shifted Windows cites Training data-efficient image transformers & distillation through attention
  • Adaptive and Background-Aware Vision Transformer for Real-Time UAV Tracking cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • Adaptive and Background-Aware Vision Transformer for Real-Time UAV Tracking cites Swin Transformer: Hierarchical Vision Transformer using Shifted Windows
  • Adaptive and Background-Aware Vision Transformer for Real-Time UAV Tracking cites Training data-efficient image transformers & distillation through attention
  • MixFormerV2: Efficient Fully Transformer Tracking cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • MixFormerV2: Efficient Fully Transformer Tracking cites Swin Transformer: Hierarchical Vision Transformer using Shifted Windows
  • RepQ-ViT: Scale Reparameterization for Post-Training Quantization of Vision Transformers cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • RepQ-ViT: Scale Reparameterization for Post-Training Quantization of Vision Transformers cites Swin Transformer: Hierarchical Vision Transformer using Shifted Windows
  • RepQ-ViT: Scale Reparameterization for Post-Training Quantization of Vision Transformers cites Training data-efficient image transformers & distillation through attention
  • Training data-efficient image transformers & distillation through attention cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers36

  1. MixFormerV2: Efficient Fully Transformer TrackingYutao Cui, Tianhui Song, Gangshan Wu, Limin WangNeurIPS 2023 · 193 citations
  2. FacT: Factor-Tuning for Lightweight Adaptation on Vision TransformerShibo Jie, Zhi-Hong DengAAAI 2023 · 182 citations
  3. I-ViT: Integer-only Quantization for Efficient Vision Transformer InferenceZhikai Li, Qingyi GuICCV 2023 · 176 citations
  4. RepQ-ViT: Scale Reparameterization for Post-Training Quantization of Vision TransformersZhikai Li, Junrui Xiao, Lianwei Yang, Qingyi GuICCV 2023 · 172 citations
  5. Adaptive and Background-Aware Vision Transformer for Real-Time UAV TrackingShuiwang Li, Xiangxyang Yang, Dan Zeng, Xucheng WangICCV 2023 · 74 citations

Builds on22

  1. Swin Transformer: Hierarchical Vision Transformer using Shifted WindowsZe Liu, Yutong Lin, Yue Cao, Han Hu et al.ICCV 2021 · 31,683 citations
  2. 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
  3. Training data-efficient image transformers & distillation through attentionHugo Touvron, Matthieu Cord, Matthijs Douze, Francisco Massa et al.ICML 2021 · 8,974 citations
  4. 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
  5. CutMix: Regularization Strategy to Train Strong Classifiers With Localizable FeaturesSangdoo Yun, Dongyoon Han, Sanghyuk Chun, Seong Joon Oh et al.ICCV 2019 · 5,843 citations

Related papers

  1. Q-ViT: Accurate and Fully Quantized Low-bit Vision TransformerYanjing Li, Sheng Xu, Baochang Zhang, Xianbin Cao et al.NeurIPS 2022 · 185 citations
  2. Learning Efficient Vision Transformers via Fine-Grained Manifold DistillationZhiwei Hao, Jianyuan Guo, Ding Jia, Kai Han et al.NeurIPS 2022 · 103 citations
  3. Unified Visual Transformer CompressionShixing Yu, Tianlong Chen, Jiayi Shen, Huan Yuan et al.ICLR 2022 · 118 citations
  4. COMCAT: Towards Efficient Compression and Customization of Attention-Based Vision ModelsJinqi Xiao, Miao Yin, Yu Gong, Xiao Zang et al.ICML 2023 · 17 citations
  5. BiViT: Extremely Compressed Binary Vision TransformersYefei He, Zhenyu Lou, Luoming Zhang, Jing Liu et al.ICCV 2023 · 44 citations
Dusk over the sea between two cliffs drawn in fine vertical lines