TWDP: A Vision Transformer Accelerator with Token-Weight Dual-Pruning Strategy for Edge Device Deployment
Open Access
- 20 January 2025
- conference paper
- Published by Association for Computing Machinery (ACM)
- p. 177-182
Abstract
Vision Transformers (ViTs) have attracted significant attention due to their superior accuracy compared to convolutional neural networks (CNNs) in various computer vision tasks. However, their substantial computational load and significant memory footprint lead to excessive delay and considerable data storage overhead, posing challenges for resource-limited edge device deployment. To address these issues, we present TWDP, a vision transformer accelerator employing a Token-Weight Dual-Pruning strategy to enhance the efficiency of the inference process. Firstly, we propose a parameter-free self-adaptive token pruning method to skip redundant computations in an image-dependent manner. Secondly, we apply a Hessian-aware layer-wise N:M weight pruning approach to minimize storage overhead, memory access, and computational power consumption. Additionally, to manage the complex computing patterns in ViTs, an overlapping dataflow is utilized to further reduce temporal storage and inference latency. Implemented and evaluated under an industrial 28nm technology, the proposed TWDP framework reduces 66.1% weight storage requirements and achieves an energy efficiency of 2070.9 FPS/W. Compared to state-of-the-art architectures, TWDP obtains a 1.6× energy efficiency improvement with negligible accuracy loss, demonstrating the superiority of TWDP in edge device deployment scenarios.Keywords
Funding Information
- National Key Research and Development Program of China (2023YFB4403103)
This publication has 8 references indexed in Scilit:
- Accelerating ViT Inference on FPGA through Static and Dynamic Pruning2024
- P3 ViT: A CIM-Based High-Utilization Architecture With Dynamic Pruning and Two-Way Ping-Pong Macro for Vision TransformerIEEE Transactions on Circuits and Systems I: Regular Papers, 2023
- A unified pruning framework for vision transformersScience China Information Sciences, 2023
- Efficient Layer-Wise N:M Sparse CNN Accelerator with Flexible SPEC: Sparse Processing Element ClustersMicromachines, 2023
- HeatViT: Hardware-Efficient Adaptive Token Pruning for Vision Transformers2023
- ViTCoD: Vision Transformer Acceleration via Dedicated Algorithm and Accelerator Co-Design2023
- An Algorithm–Hardware Co-Optimized Framework for Accelerating N:M Sparse TransformersIEEE Transactions on Very Large Scale Integration (VLSI) Systems, 2022
- Energon: Toward Efficient Acceleration of Transformers Using Dynamic Sparse AttentionIEEE Transactions on Computer-Aided Design of Integrated Circuits and Systems, 2022