TL;DR
PrimeSVT introduces the first automated, single-shot structured pruning framework designed specifically for Spiking Vision Transformers (SViTs). By intelligently sorting layers by size and applying a non-uniform pruning policy based on layer robustness, it slashes memory footprint by 26.68% and energy consumption by 13.1% while keeping accuracy within a tight 3% margin—all without requiring specialized hardware accelerators.
What Problem Does This Paper Address?
Spiking Vision Transformers (SViTs) are an exciting frontier in energy-efficient AI, combining the powerful spatial feature extraction of Vision Transformers (ViTs) with the event-driven, low-power operations of Spiking Neural Networks (SNNs). However, SViTs remain too massive for seamless deployment on resource-constrained embedded edge devices.
While prior works have attempted to compress SViTs, they suffer from two major flaws:
- Unstructured Pruning: They prune individual, scattered weights. This creates irregular sparsity patterns that standard hardware (like systolic arrays) cannot exploit, resulting in zero actual performance speedup.
- Manual Tuning: Finding the right pruning rate for each layer requires massive, non-scalable human design effort.
PrimeSVT addresses these challenges by introducing an automated framework for structured (channel-wise) pruning, making the resulting compressed models highly compatible with widely used, standard computing architectures.
Methods
PrimeSVT operates as a fully automated, single-shot pruning pipeline divided into three core stages:
- Identifying Targeted Pruning Layers: SViT layers are sorted from largest to smallest. The framework evaluates uniform channel-wise pruning across different subsets of the largest layers (e.g., top-95%, top-90%) to find an initial configuration that maximizes memory savings while respecting a user-defined maximum accuracy drop.
-
Prioritized Compression Policy: Instead of pruning all layers equally, PrimeSVT groups layers into architectural blocks and calculates a novel robustness-under-pruning metric ($\eta$): $$\eta = \frac{M^*}{A_{drop} + \epsilon}$$ where $M^*$ is memory savings and $A_{drop}$ is the accuracy drop. It then applies a non-uniform pruning strategy—aggressively cutting channels from robust blocks while sparing sensitive ones.
-
Compressed Model Selection: A search-and-update mechanism automatically tracks candidates during the incremental pruning process, selecting the optimal model that satisfies both the memory budget and accuracy constraints.
Datasets
The framework was evaluated using the highly competitive ImageNet-1K classification dataset, benchmarking against the state-of-the-art Spike-driven Transformer v2 (SDTv2) architecture.
Key Insights and Ideas
- Structured Pruning is Essential for Edge AI: Removing entire channels (structured pruning) rather than individual weights ensures that standard hardware compute engines can translate the reduction in parameters into actual computational and energy speedups.
- Prioritizing Large Layers Yields Better Trade-offs: Pruning fewer, larger layers yields significantly better memory reduction with less accuracy degradation than blindly pruning across all layers uniformly.
- Automated Robustness Profiling: Quantifying a block's sensitivity mathematically allows the framework to discover non-uniform pruning configurations that human engineers would struggle to find manually.
Key Results
- Memory Reduction: PrimeSVT successfully reduced the parameter count of the baseline SDTv2 model by 26.68% (dropping from 55.4M to 40.6M parameters).
- Accuracy Preservation: The framework maintained top-1 accuracy within the requested 3% bound, achieving 70.32% accuracy completely single-shot (without fine-tuning) and 72.9% with post-pruning fine-tuning (compared to the 73.3% unpruned baseline).
- Efficiency Gains: The pruned model achieved a 15.5% reduction in FLOPs and a 13.1% reduction in total energy consumption.
- Design Automation: The entire automated search process takes roughly 11.5 hours on a single GPU, entirely eliminating manual trial-and-error.
Limitations and Future Work
When faced with extremely aggressive or conflicting constraints (e.g., demanding a 27% memory reduction when the model can only safely give 26%), the framework cannot satisfy both constraints simultaneously and must present alternative trade-off models to the user.
Additionally, while the paper uses FLOPs and analytical energy equations as proxies for efficiency, future work could benefit from incorporating direct hardware-in-the-loop latency measurements on physical embedded edge devices to further optimize deployment.
Summary updated