Rethinking Depth Pruning for Vision Transformers: A Heterogeneity-Aware Perspective
Abstract
Lay Summary
Modern vision AI models can recognize images very accurately, but they are often large and slow to run. This makes them expensive to use and difficult to deploy on devices with limited computing power. A common way to make such models faster is to remove unnecessary parts, but removing whole layers from vision Transformers often causes a large drop in accuracy. In this paper, we study why this happens and find that different types of layers behave very differently when removed. Treating all layers in the same way can therefore lead to poor pruning decisions. We propose HetDPT, a method that carefully accounts for these differences when deciding which layers to remove. Our method also avoids structural issues that would otherwise make the pruned model invalid. Across several image recognition, object detection, and segmentation benchmarks, HetDPT makes vision Transformer models faster while keeping their accuracy nearly unchanged. When combined with existing compression methods, it achieves even stronger speedups. This work can help make powerful vision AI models cheaper, faster, and easier to deploy in real-world applications.