Retraining-Free Depth Pruning of Vision Transformers: A Cross Domain Study of Layer Redundancy
Abstract
Transformer architectures have achieved strong results in natural language processing and computer vision, but their deployment is limited by high computational, memory and storage costs, motivating research into model compression techniques, such as pruning, while preserving performance. Prior work has shown substantial redundancy in large language models (LLMs), and redundancy in vision transformers has also been investigated, but it remains less systematically analyzed than in LLMs. In this work, we extend similarity-based redundancy analysis to vision models by measuring cosine similarity between layer inputs and outputs to identify transformations with minimal impact. We study redundancy patterns across several transformer architectures and find that deep vision transformers such as DINOv2 and SwinV2, like language models, exhibit significant redundancy. We then evaluate how this redundancy can be exploited to improve efficiency, analyzing the trade-off between inference speed and performance degradation under different pruning strategies. Our results show that moderate pruning can yield substantial acceleration with limited impact on accuracy, and that 20% of the DINOv2 blocks can be removed without any retraining, for a 1.24x throughput gain and a 20% lower energy per image at a relative accuracy loss below 1% on ImageNet-1K. We further propose a model selection pipeline that automatically identifies the best pruned configuration for a given dataset, reducing FLOPs by 13% to 27% on average across architectures with an average accuracy change between -0.3 and +1.0 points.
Create a lesson
Related papers
Competition Domains Matter: Selective Head Globalization for Training-Free Sparse Attention in Video Diffusion Transformers
Shared title terminologycs.CVTiantian Liu, Meng Wan, Zhiqiang Liang et al.
HSTTA: Hierarchical Selective Test-Time Adaptation for Label-Free Cross-Subject EEG-to-Image Retrieval
Shared title terminologycs.CVHongzhou Chen, Yuhao Wei, Lianghua He et al.
MP-MNCA: Morphology-Prior Masked Neighbor Cross-Attention for Efficient Spatial Domain Identification
Shared title terminologycs.CVSidharthan Sivacoumar Chitra, Sanjeev Manivannan
Sparse All-Layer Connector for Domain Generalised Semantic Segmentation
Shared title terminologycs.CVRuoyu Guo, Xin Kun Lin, Maurice Pagnucco et al.
DSM-Free UAV Visual Localization via Latent-Depth Variable Projection and Structure-Adaptive Coupling
Shared title terminologycs.CVYibin Ye, Xichao Teng, Shuo Chen et al.
Semantic State Reading for Joint Image-Semantic Diffusion Transformers
Shared title terminologycs.CVGuanxi Lai, Zixuan Li, Zhiwei Li et al.