FPGA-Based Vit Inference Accelerator Optimization
DOI:
https://doi.org/10.54097/ffw9q577Keywords:
FPGA; ViT; Hardware Accelerator.Abstract
In the AI era, the emergence of the transformer model contributes to a significant shift in the natural language processing field. Its derivative, the Vision Transformer (ViT), adapts these principles for image recognition and demonstrates superior performance over traditional Convolutional Neural Networks (CNNs). Despite its excellent performance, deploying these models on edge devices is impeded by their extensive computational demands and large memory requirements, which poses challenges for the limited resources and real-time processing needs at the edge. Hence, it is necessary to develop a new hardware accelerator to optimize ViT architecture. This paper reviews the development of Field-Programmable Gate Array (FPGA)-based ViT inference accelerators, focusing on their architectures and applications in solving the dilemmas of ViT model deployment. Additionally, it explores the optimization approaches on both algorithm and hardware and traces the advancements in deploying AI models at the edge using FPGAs. It summarizes the current trends in research on FPGA-based ViT accelerators and provides insights into future directions for innovations in hardware-accelerated AI. Generally, by tracing the related works for FPGA-based ViT inference accelerator optimization, this article presents a useful snapshot of current research in ViT hardware accelerators and contributes to clarifying future research directions in this area.
Downloads
References
Ashish V. Attention is all you need. Advances in neural information processing systems, 2017, 30: I..
Dosovitskiy A, Beyer L, Kolesnikov A, et al. An image is worth 16x16 words: Transformers for image recognition at scale. arXiv preprint arXiv:2010.11929, 2020.
Liu Y, Zhang Y, Wang Y, et al. A survey of visual transformers. IEEE Transactions on Neural Networks and Learning Systems, 2023.
Liu Z, Lin Y, Cao Y, et al. Swin transformer: Hierarchical vision transformer using shifted windows. Proceedings of the IEEE/CVF international conference on computer vision. 2021: 10012-10022.
Shawahna A, Sait S M, El-Maleh A. FPGA-based accelerators of deep learning networks for learning and classification: A review. ieee Access, 2018, 7: 7823-7859..
Wang T, Gong L, Wang C, et al. Via: A novel vision-transformer accelerator based on fpga. IEEE Transactions on Computer-Aided Design of Integrated Circuits and Systems, 2022, 41(11): 4088-4099.
Frank B H. Microsoft's Brainwave makes Bing's AI over 10 times faster. 2018. https://venturebeat.com/ai/microsofts-brainwave-makes-bings-ai-over-10-times-faster/.
Chung E, Fowers J, Ovtcharov K, et al. Serving dnns in real time at datacenter scale with project brainwave. iEEE Micro, 2018, 38(2): 8-20.
Microsoft Azure. Accelerating AI on the intelligent edge: Microsoft and Qualcomm create vision AI developer kit. 2018. https://azure.microsoft.com/en-us/blog/accelerating-ai-on-the-intelligent-edge-microsoft-and-qualcomm-create-vision-ai-developer-kit/.
Khan H, Khan A, Khan Z, et al. NPE: An FPGA-based overlay processor for natural language processing. arXiv preprint arXiv:2104.06535, 2021.
Bai Y, Zhou H, Zhao K, et al. LTrans-OPU: A Low-Latency FPGA-Based Overlay Processor for Transformer Networks. 2023 33rd International Conference on Field-Programmable Logic and Applications (FPL). IEEE, 2023: 283-287.
Yu Y, Wu C, Zhao T, et al. OPU: An FPGA-based overlay processor for convolutional neural networks. IEEE Transactions on Very Large Scale Integration (VLSI) Systems, 2019, 28(1): 35-47.
Yuan Z, Xue C, Chen Y, et al. Ptq4vit: Post-training quantization for vision transformers with twin uniform quantization. European conference on computer vision. Cham: Springer Nature Switzerland, 2022: 191-207.
Zhang X, Wu Y, Zhou P, et al. Algorithm-hardware co-design of attention mechanism on fpga devices. ACM Transactions on Embedded Computing Systems (TECS), 2021, 20(5s): 1-24.
Nag S, Datta G, Kundu S, et al. ViTA: A vision transformer inference accelerator for edge applications. 2023 IEEE International Symposium on Circuits and Systems (ISCAS). IEEE, 2023: 1-5.
Downloads
Published
Issue
Section
License
Copyright (c) 2024 Highlights in Science, Engineering and Technology

This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.







