FlexViT: A Flexible FPGA-based Accelerator for Edge Vision Transformers
Hubert Dymarkowski, Xingjian Fu, Rappy Saha, Jude Haris, José Cano
Abstract
Deploying Vision Transformer (ViT) models on edge platforms remains challenging due to their high computational demands and the architectural heterogeneity of modern hybrid ViT models, which incorporate both fully connected and convolutional layers. This heterogeneity leads to significant variation in tensor shapes, requiring flexible and efficient FPGA-based acceleration. In this paper, we present FlexViT, a reconfigurable FPGA accelerator for efficient ViT inference on resource-constrained edge devices. Built on the SECDA-TFLite framework, FlexViT employs a hardware-software co-design approach that maps both fully connected and convolutional layers onto a unified high-throughput INT8 GEMM engine using a runtime im2col transformation. To efficiently support diverse layer configurations, we propose a dual-mode dataflow that dynamically switches between input and weight reuse by reconfiguring the compute array at runtime. We further introduce a depth-first tiling strategy that completes accumulation in a single pass, eliminating off-chip partial-sum transfers and reducing memory bandwidth requirements. We implement FlexViT on a PYNQ-Z2 FPGA and evaluate it across a representative set of ViT models. FlexViT achieves up to 2.74x speedup on accelerator-executed layers, translating into up to 1.40x end-to-end speedup compared to CPU-only execution. The code is available at: https://github.com/gicLAB/FlexViT
Create a lesson
Metadata
- Categories
- cs.AR, cs.CV, cs.DC, cs.LG
- Comments
- Accepted to 36th International Conference on Field-Programmable Logic and Applications (FPL) 2026
Related papers
Approximate Attention Weighting for Sustainable FPGA-Based Vision Transformer Inference
Shared title terminologycs.ARMuhammad Usman, Muhammad Akmal Shafique, Shujaat Khan et al.
A Flexible Sparsity-Aware FPGA Accelerator with Column-Wise Compression for Efficient CNN Inference
Shared title terminologycs.ARAmirhossein Zarei, Shervin Vakili
Opto-ViT-v2: Noise-Resilient On-Chip Fine-Tuning for Photonic Near-Sensor Vision Transformer Accelerators
Shared title terminologycs.ARXuming Chen, Deniz Najafi, Mehrdad Morsali et al.
FPGA-Accelerated Neuromorphic Vision System for Real-Time Orbital Object Detection
Shared title terminologycs.ARDiego Hernández, Sebastián Valdivia, Vicente Westerhout et al.
FPGA-Based Neural Network Accelerators for Space Applications: A Survey
Shared title terminologycs.ARPedro Antunes, Artur Podobas
Bottom-Up FPGA Reconfigurable Accelerator Overlay Generation
Shared title terminologycs.ARMohamed Bouaziz, Suhaib A. Fahmy