An FPGA-Based Frequency-Focused Vision Transformer Accelerator for Real-Time Inference on Edge Platforms
Vision Transformers (ViTs) often struggle to effectively capture local features. SpectFormer addresses this limitation by incorporating spectral blocks into the shallow layers of DeiT. However, deploying SpectFormer on edge devices is challenging due to its high computational complexity, the implementation of spectral blocks, additional matrix transpositions, and intensive nonlinear operations. To address these challenges, we propose an FPGA-based Frequency-focused Vision Transformer Accelerator (FFVTA), the first FPGA-based ViT accelerator that incorporates frequency-domain optimization for real-time inference of SpectFormer on edge devices. FFVTA employs a Unified DFT-Attention Matrix (UDAM) architecture to unify the computation of spectral and self-attention blocks, significantly enhancing the hardware reuse and reducing resource usage. Additionally, FFVTA introduces a Block-Broadcast Loop (BBL) Dataflow to efficiently accelerate matrix multiplication in self-attention blocks and a Configurable Two-Stage Log-Softmax (CTS-Log-Softmax) computation process to optimize nonlinear function computations. These innovations improve computational efficiency while reducing the resource usage. When deployed on a resource-constrained FPGA platform (KV260), FFVTA achieves a 16.61× speedup compared to the baseline, with significant reductions in the hardware resource usage and power consumption. FFVTA demonstrates superior performance with an energy efficiency of 63.40 GOPs/W and a DSP efficiency of 0.46 GOPs/DSP. FFVTA not only achieves efficient acceleration for the hierarchical SpectFormer-H-S variant, but also attains competitive accuracy of 84.02% on ImageNet classification.
Authors
- Lianwen Deng (ORCID: https://orcid.org/0000-0002-4561-3068)
- C. Tian
- Xiaowen Xu
- Tao Zhang (ORCID: https://orcid.org/0000-0003-1559-406X)
- Jiafeng Ding (ORCID: https://orcid.org/0000-0002-3906-6598)
- Congwei Liao
Institutions
- Central South University (CN)
- Shenzhen Technology University (CN)
Publication Details
- Journal
- IEEE Transactions on Circuits and Systems I Regular Papers
- Published
- 2025-09-16
- DOI
- https://doi.org/10.1109/tcsi.2025.3606813
- Primary Topic
- CCD and CMOS Imaging Sensors
- Type
- article
- Field-Weighted Citation Impact
- 0.00