Unified Visual Transformer Compression
Shixing Yu, Tianlong Chen, Jiayi Shen, Huan Yuan, Jianchao Tan, Sen, Yang, Ji Liu, Zhangyang Wang

TL;DR
This paper introduces a unified framework for compressing Vision Transformers by combining pruning, layer skipping, and knowledge distillation, achieving significant FLOPs reduction with minimal accuracy loss.
Contribution
It presents a novel end-to-end optimization approach that jointly learns weights, pruning ratios, and skip configurations for ViT compression.
Findings
DeiT-Tiny reduced to 50% FLOPs with minimal accuracy loss
Consistent outperformance over recent competitors on ImageNet
Effective joint optimization of multiple compression techniques
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…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
Videos
Taxonomy
TopicsAdvanced Neural Network Applications · Visual Attention and Saliency Detection · Image Enhancement Techniques
MethodsMulti-Head Attention · Attention Is All You Need · Pruning · Linear Layer · Byte Pair Encoding · Feedforward Network · Position-Wise Feed-Forward Layer · Convolution · Attention Dropout · Dropout
