Introduction
Vision Transformers (ViTs) have achieved remarkable success across a variety of vision tasks, establishing themselves as state-of-the-art architectures. However, their deployment—particularly on edge devices—is frequently hindered by prohibitive computational costs. Historically, efficiency research has focused heavily on Token Compression, which aims to reduce the number of tokens ($N$) to mitigate the quadratic cost of self-attention ($O(N^2)$).
Yet, this focus leaves a massive computational blind spot: the Feed-Forward Networks (FFNs). In a standard ViT, FFNs account for roughly 61% of total FLOPs, and their cost scales quadratically with the hidden dimension ($D^2$). Existing weight pruning methods targeting this dimension typically require expensive, full-model retraining and suffer from inter-layer dependencies, where pruning one layer disrupts the optimization of the next.
To address this, researchers introduce ToaSt (Token Channel Selection and Structured Pruning), a decoupled compression framework that targets the often-overlooked channel dimension. By combining synchronized pruning in attention heads with a training-free, dynamic channel selection method for FFNs, ToaSt achieves up to 2x throughput speedups and significant accuracy boosts by acting as a noise filter for redundant features.
Methodology: The Decoupled ToaSt Framework
ToaSt employs a two-pronged approach, applying specialized strategies to distinct ViT components while preserving the global embedding dimension ($D$). This "block interface" preservation allows each layer to be compressed independently, eliminating ripple effects across the network.
1. Structured Coupled Weight Pruning (SCWP) for MHSA
In the Multi-Head Self-Attention (MHSA) modules, ToaSt prunes the internal head dimension ($d_k$). The core innovation here is synchronization. To maintain mathematical integrity during the attention operation, pruning a column in the Query matrix ($Q$) necessitates pruning the corresponding column in the Key matrix ($K$) to keep the dot product valid. ToaSt strictly enforces these structural constraints across the $Q, K, V,$ and output projection matrices.
2. Token Channel Selection (TCS) for FFN
For the computationally heavy FFNs, ToaSt introduces a training-free method applied directly at inference time:
- Statistical Sampling: Rather than analyzing every token, ToaSt samples a small subset (2–20%) to rapidly estimate channel importance.
- Importance Scoring: It calculates an importance score for each channel. For models like DeiT, it leverages the "CLS" token's attention weights to prioritize channels that encode global semantic information.
- Layer-Adaptive Policy: Based on an analysis of "Effective Rank," ToaSt applies conservative pruning in early layers and aggressive pruning (up to 90%) in deeper layers, where feature redundancy is highest.
Key Insights: Redundancy and Regularization
The development of ToaSt yielded several counterintuitive insights into ViT architecture:
- The FFN Redundancy Signature: As data progresses deeper into a ViT, FFN activations exhibit high sparsity and a collapsing effective rank. The standard 4x expansion in FFNs creates massive amounts of redundant data in these later layers.
- Pruning as Regularization: Surprisingly, ToaSt often improves accuracy compared to unpruned baselines. TCS acts as an implicit noise filter, stripping away low-discriminative channels that otherwise function as "noise amplifiers."
- Scale-Dependent Recovery: Larger models possess higher intrinsic redundancy. For instance, the massive ViT-MAE-Huge required only 15 epochs of fine-tuning to recover performance, whereas the smaller DeiT-Small required 290 epochs.
- Orthogonality: Because ToaSt operates on the channel dimension ($D$), it is perfectly compatible with existing sequence-dimension ($N$) token compression methods (like ToMe), allowing for additive speedups.
Experimental Results
Evaluated across nine diverse models from the DeiT, ViT-MAE, and Swin Transformer families, ToaSt demonstrated superior trade-offs between accuracy and efficiency:
- Accuracy Boosts: On ViT-MAE-Huge, ToaSt achieved 88.52% Top-1 accuracy on ImageNet-1K—a +1.64%p increase over the baseline—while simultaneously reducing FLOPs by 39.4%.
- Throughput Gains: On an NVIDIA H100 GPU, DeiT-Small achieved a 2.07x speedup in throughput while gaining +3.58%p in accuracy.
- Hardware Efficiency: By producing structured, dense sub-matrices, ToaSt delivers real-world acceleration on standard GPUs without the need for specialized sparse kernels.
- Downstream Transferability: The framework transfers effectively to complex downstream tasks. A Swin-Small backbone compressed with ToaSt reached 52.2 mAP on COCO object detection (outperforming the 51.9 mAP baseline) and showed strong results on ADE20K segmentation and CIFAR-100 classification.
Limitations and Future Directions
While highly effective, ToaSt currently relies on manual tuning or sensitivity sweeps for per-layer pruning ratios, though a robust default pattern is provided. Additionally, while ImageNet-derived ratios transferred well to COCO and ADE20K, optimality is not guaranteed across all possible datasets. Future work will explore learnable, dataset-adaptive ratio optimization, extend the framework to Vision-Language Models (VLMs), and integrate ToaSt with quantization techniques for even greater edge efficiency.
Summary updated