arrow
返回

A Cost-Efficient FPGA-Based CNN-Transformer Using Neural ODE

delete2024-01-01
delete0
delete
OA
AI
I
Ikumi Okubo *
K
Keisuke Sugiura
H
Hiroki Matsutani
DOI:10.1109/ACCESS.2024.3480977delete
delete原文链接
delete原文求助
delete分享
delete收藏
摘要

摘要

En 中文
Transformer has been adopted to image recognition tasks and shown to outperform CNNs and RNNs while it suffers from high training cost and computational complexity. To address these issues, a hybrid approach has become a recent research trend, which replaces a part of ResNet with an MHSA (Multi-Head Self-Attention). In this paper, we propose a lightweight hybrid model which uses Neural ODE (Ordinary Differential Equation) as a backbone instead of ResNet so that we can increase the number of iterations of building blocks while reusing the same parameters, mitigating the increase in parameter size per iteration. The proposed model is deployed on a modest-sized FPGA device for edge computing. The model is further quantized by QAT (Quantization Aware Training) scheme to reduce FPGA resource utilization while suppressing the accuracy loss. The quantized model achieves 79.68% top-1 accuracy for STL10 dataset that contains 96x96 pixel images. The weights of the feature extraction network are stored on-chip to minimize the memory transfer overhead, allowing faster inference. By eliminating the overhead of memory transfers, inference can be executed seamlessly, leading to accelerated inference. The proposed FPGA implementation accelerates the backbone and MHSA parts by 34.01x , and achieves an overall 9.85x speedup when taking into account the software pre- and post-processing. The FPGA acceleration leads to 7.10x better energy efficiency compared to the ARM Cortex-A53 CPU. The proposed lightweight Transformer model is demonstrated on Xilinx ZCU104 board for the image recognition of 96x96 pixel images in this paper and can be applied to different image sizes by modifying the pre-processing layer.
Keyword:
Transformers
Field programmable gate arrays
Computational modeling
Accuracy
Attention mechanisms
Quantization (signal)
Costs
Training
Load modeling
Mathematical models
Artificial intelligence
machine learning
tiny machine learning

期刊

IEEE Access 封面图
IEEE Access
IF:
3.6
论文数:
9.8W
被引数:
29.4W

机构

K
Keio University
学者数:
2.2W
论文数: 1.6W
被引数: 13
引用论文

引用论文

ImageNet Large Scale Visual Recognition ChallengeImageNet大规模视觉识别挑战
err2015-04-11
err2.7W
PREAI
errRussakovsky, Olga; Deng, Jia; Su, Hao; Krause, Jonathan; Satheesh, Sanjeev; Ma, Sean; Huang, Zhiheng; Karpathy, Andrej; Khosla, Aditya; Bernstein, Michael; Berg, Alexander C.; Fei-Fei, Li
err分享
err收藏
Differential Virulence and Disease Progression following Mycobacterium tuberculosis Complex Infection of the Common Marmoset (Callithrix jacchus)
err2013-08-01
err0
errOAAI
errLaura E. Via; Danielle M. Weiner; Daniel Schimel; Philana Ling Lin; Emmanuel Dayao; Sarah L. Tankersley; Ying Cai; M. Teresa Coleman; Jaime Tomko; Praveen Paripati; Marlene Orandle; Robin J. Kastenmayer; Michael Tartakovsky; Alexander Rosenthal; Damien Portevin; Seok Yong Eum; Saher Lahouar; Sebastien Gagneux; Douglas B. Young; JoAnne L. Flynn; Clifton E. Barry
err分享
err收藏
学者 查看更多内容