Abstract
Vision Transformers (ViTs) offer state-of-the-art performance in computer vision but suffer from quadratic computational complexity relative to the number of input tokens. Existing acceleration methods, such as unstructured pruning, often destroy the spatial structure of the image, limiting their compatibility with hierarchical architectures. We present Evo-ViT, a "Slow-Fast" token evolution strategy that accelerates ViTs while preserving spatial integrity. By partitioning tokens into informative "VIP" sets for full processing and background sets for coarse updating, Evo-ViT achieves a 60% increase in throughput on DeiT-S with minimal accuracy loss (0.4%).
Introduction
The self-attention mechanism in Vision Transformers (ViTs) is computationally intensive. To mitigate this, researchers have explored structured compression (reducing resolution) and unstructured pruning (deleting uninformative tokens). However, pruning disrupts the 2D spatial grid, making it incompatible with modern "deep-narrow" architectures like Swin or LeViT that rely on consistent spatial layouts. Furthermore, many pruning techniques require expensive pre-training and fine-tuning cycles.
Evo-ViT addresses these challenges by introducing a structure-preserving acceleration method that works from scratch and maintains the spatial manifold throughout the network.
Methodology
The core of Evo-ViT is the Slow-Fast Token Updating mechanism, which avoids the destructive nature of pruning by differentiating the computational paths for different tokens.
Structure-Preserving Token Selection
Evo-ViT identifies informative tokens by leveraging the model's internal Global Class Attention. Instead of using external predictor modules, it tracks the attention scores of the "class token" across layers. The top-$k$ patches are designated as Informative Tokens, while the remainder are treated as Placeholder Tokens. A "Global Class Attention Evolution" mechanism ensures stability by carrying attention information across layers.
Slow-Fast Updating
The computational efficiency is gained through a dual-path approach:
- Slow Path: The $k$ informative tokens undergo standard Multi-Head Self-Attention (MSA) and Feed-Forward Network (FFN) processing.
- Fast Path: Placeholder tokens are summarized into a single representative token. This representative token is processed alongside the informative tokens in the slow path. The resulting residual update is then broadcast back to all original placeholder tokens.
Because placeholder tokens are never deleted, the 2D spatial structure remains intact, allowing the model to be integrated into hierarchical architectures and enabling the model to "re-discover" important features in later layers.
Experimental Results
Evo-ViT was evaluated on ImageNet-1K using DeiT (Tiny, Small, Base) and LeViT architectures.
Performance on DeiT
On DeiT-Small, Evo-ViT achieved a throughput of 1510 img/s, representing a 60.6% speedup over the baseline, with only a 0.4% drop in top-1 accuracy. This outperforms previous methods like DynamicViT, which typically exhibit higher accuracy degradation for similar speed gains. For DeiT-Tiny, throughput reached 4027 img/s (a 58.8% boost).
Versatility and Training
Unlike many pruning methods that require a pre-trained teacher model, Evo-ViT can be trained from scratch. It also successfully accelerated LeViT-128S, increasing throughput from 8755 to 10135 img/s. This demonstrates its effectiveness on complex, non-flat architectures where traditional pruning often fails.
Conclusion and Future Work
Evo-ViT provides a robust, "plug-and-play" solution for ViT acceleration. By preserving spatial structure, it maintains compatibility with a wider range of architectures and tasks. Future research will focus on extending this "Slow-Fast" paradigm to dense prediction tasks like object detection and instance segmentation, and exploring dynamic selection ratios based on image complexity.
Summary updated