An Efficient FPGA-Based Accelerator for Swin Transformer

现场可编程门阵列 计算 计算机科学 Softmax函数 硬件加速 加速 变压器 规范化(社会学) 推论 并行计算 查阅表格 卷积神经网络 计算科学 计算机工程 高效能源利用 计算机硬件 算法 人工智能 电压 电气工程 工程类 人类学 社会学 程序设计语言
作者
Zhiyang Liu,Pengyu Yin,Zhenhua Ren
出处
期刊:Cornell University - arXiv 被引量:3
标识
DOI:10.48550/arxiv.2308.13922
摘要

Since introduced, Swin Transformer has achieved remarkable results in the field of computer vision, it has sparked the need for dedicated hardware accelerators, specifically catering to edge computing demands. For the advantages of flexibility, low power consumption, FPGAs have been widely employed to accelerate the inference of convolutional neural networks (CNNs) and show potential in Transformer-based models. Unlike CNNs, which mainly involve multiply and accumulate (MAC) operations, Transformer involve non-linear computations such as Layer Normalization (LN), Softmax, and GELU. These nonlinear computations do pose challenges for accelerator design. In this paper, to propose an efficient FPGA-based hardware accelerator for Swin Transformer, we focused on using different strategies to deal with these nonlinear calculations and efficiently handling MAC computations to achieve the best acceleration results. We replaced LN with BN, Given that Batch Normalization (BN) can be fused with linear layers during inference to optimize inference efficiency. The modified Swin-T, Swin-S, and Swin-B respectively achieved Top-1 accuracy rates of 80.7%, 82.7%, and 82.8% in ImageNet. Furthermore, We employed strategies for approximate computation to design hardware-friendly architectures for Softmax and GELU computations. We also designed an efficient Matrix Multiplication Unit to handle all linear computations in Swin Transformer. As a conclude, compared with CPU (AMD Ryzen 5700X), our accelerator achieved 1.76x, 1.66x, and 1.25x speedup and achieved 20.45x, 18.60x, and 14.63x energy efficiency (FPS/power consumption) improvement on Swin-T, Swin-S, and Swin-B models, respectively. Compared to GPU (Nvidia RTX 2080 Ti), we achieved 5.05x, 4.42x, and 3.00x energy efficiency improvement respectively. As far as we know, the accelerator we proposed is the fastest FPGA-based accelerator for Swin Transformer.
最长约 10秒,即可获得该文献文件

科研通智能强力驱动
Strongly Powered by AbleSci AI
更新
PDF的下载单位、IP信息已删除 (2025-6-4)

科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
mufcyang完成签到,获得积分10
3秒前
了晨完成签到 ,获得积分10
4秒前
yi完成签到 ,获得积分10
7秒前
wxnice完成签到,获得积分10
8秒前
量子星尘发布了新的文献求助10
10秒前
星辰大海应助大橙子采纳,获得10
19秒前
19秒前
七QI完成签到 ,获得积分10
20秒前
23秒前
褚香旋完成签到,获得积分10
23秒前
一只狗东西完成签到 ,获得积分10
25秒前
宇老师发布了新的文献求助10
26秒前
27秒前
qiqi发布了新的文献求助30
29秒前
大橙子发布了新的文献求助10
32秒前
wzhang完成签到,获得积分10
33秒前
ken131完成签到 ,获得积分10
36秒前
myl完成签到,获得积分10
37秒前
728完成签到,获得积分10
43秒前
xiaofeng5838完成签到,获得积分10
43秒前
ronnie完成签到,获得积分10
43秒前
46秒前
寒冷芷蕊完成签到,获得积分20
46秒前
46秒前
Jane完成签到,获得积分10
46秒前
一氧化二氢完成签到,获得积分10
52秒前
凡事发生必有利于我完成签到,获得积分10
53秒前
yihaiqin完成签到 ,获得积分10
57秒前
轩辕剑身完成签到,获得积分0
57秒前
coolkid完成签到 ,获得积分0
58秒前
你怎么那么美完成签到,获得积分10
58秒前
游艺完成签到 ,获得积分10
1分钟前
冬月完成签到 ,获得积分10
1分钟前
薛乎虚完成签到 ,获得积分10
1分钟前
1分钟前
大胖完成签到,获得积分10
1分钟前
野火197完成签到,获得积分10
1分钟前
1分钟前
量子星尘发布了新的文献求助10
1分钟前
April完成签到,获得积分10
1分钟前
高分求助中
【提示信息,请勿应助】关于scihub 10000
Les Mantodea de Guyane: Insecta, Polyneoptera [The Mantids of French Guiana] 3000
徐淮辽南地区新元古代叠层石及生物地层 3000
The Mother of All Tableaux: Order, Equivalence, and Geometry in the Large-scale Structure of Optimality Theory 3000
Handbook of Industrial Diamonds.Vol2 1100
Global Eyelash Assessment scale (GEA) 1000
Picture Books with Same-sex Parented Families: Unintentional Censorship 550
热门求助领域 (近24小时)
化学 材料科学 医学 生物 工程类 有机化学 生物化学 物理 内科学 纳米技术 计算机科学 化学工程 复合材料 遗传学 基因 物理化学 催化作用 冶金 细胞生物学 免疫学
热门帖子
关注 科研通微信公众号,转发送积分 4038157
求助须知:如何正确求助?哪些是违规求助? 3575869
关于积分的说明 11373842
捐赠科研通 3305650
什么是DOI,文献DOI怎么找? 1819255
邀请新用户注册赠送积分活动 892655
科研通“疑难数据库(出版商)”最低求助积分说明 815022