Accelerating Attention Mechanism on FPGAs based on Efficient Reconfigurable Systolic Array

计算机科学 现场可编程门阵列 计算 收缩阵列 高效能源利用 计算机体系结构 嵌入式系统 可重组计算 门阵列 并行计算 计算机硬件 算法 超大规模集成 电气工程 工程类
作者
Wenhua Ye,Xu Zhou,Joey Tianyi Zhou,Cen Chen,Kenli Li
出处
期刊:ACM Transactions in Embedded Computing Systems [Association for Computing Machinery]
卷期号:22 (6): 1-22 被引量:16
标识
DOI:10.1145/3549937
摘要

Transformer model architectures have recently received great interest in natural language, machine translation, and computer vision, where attention mechanisms are their building blocks. However, the attention mechanism is expensive because of its intensive matrix computations and complicated data flow. The existing hardware architecture has some disadvantages for the computing structure of attention, such as inflexibility and low efficiency. Most of the existing papers accelerate attention by reducing the amount of computation through various pruning algorithms, which will affect the results to a certain extent with different sparsity. This paper proposes the hardware accelerator for the multi-head attention (MHA) on field-programmable gate arrays (FPGAs) with reconfigurable architecture, efficient systolic array, and hardware-friendly radix-2 softmax. We propose a novel method called Four inputs Processing Element (FPE) to double the computation rate of the data-aware systolic array (SA) and make it efficient and load balance. Especially, the computation framework is well designed to ensure the utilization of SA efficiently. Our design is evaluated on a Xilinx Alveo U250 card, and the proposed architecture achieves 51.3×, 17.3× improvement in latency, and 54.4×, 17.9× energy savings compared to CPU and GPU.

科研通智能强力驱动
Strongly Powered by AbleSci AI
科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
1秒前
吃的饱饱呀完成签到 ,获得积分10
2秒前
vitamin完成签到 ,获得积分0
6秒前
甜叶菊完成签到,获得积分10
9秒前
ghost202完成签到,获得积分10
9秒前
nanfeng完成签到 ,获得积分10
15秒前
18秒前
羽毛完成签到 ,获得积分10
19秒前
John完成签到,获得积分10
20秒前
高贵宛海完成签到,获得积分10
25秒前
杨树完成签到 ,获得积分10
25秒前
独孤磕盐完成签到,获得积分10
26秒前
BUG完成签到,获得积分10
34秒前
JUN完成签到,获得积分10
37秒前
ll完成签到,获得积分10
38秒前
菲菲完成签到,获得积分10
40秒前
没心没肺完成签到,获得积分10
40秒前
cdercder应助科研通管家采纳,获得20
43秒前
lambs13完成签到,获得积分10
43秒前
景妙海完成签到 ,获得积分10
47秒前
我本人lrx完成签到 ,获得积分10
49秒前
lx完成签到,获得积分10
53秒前
平常忆灵完成签到 ,获得积分10
56秒前
56秒前
Robin完成签到 ,获得积分10
59秒前
aikeyan完成签到,获得积分10
1分钟前
1分钟前
鼠鼠完成签到 ,获得积分10
1分钟前
学术霸王完成签到,获得积分10
1分钟前
回响完成签到,获得积分10
1分钟前
zhangruiii完成签到 ,获得积分10
1分钟前
h_h完成签到,获得积分10
1分钟前
77完成签到 ,获得积分10
1分钟前
1分钟前
感动的盼雁完成签到 ,获得积分10
1分钟前
guoxihan完成签到,获得积分10
1分钟前
流星雨完成签到 ,获得积分10
1分钟前
回首不再是少年完成签到,获得积分0
1分钟前
唐陌完成签到 ,获得积分10
1分钟前
zhang完成签到 ,获得积分10
1分钟前
高分求助中
Adhesion Science: Principles & Practice 1234
Signals, Systems, and Signal Processing 610
Inflectional Morphology in Harmonic Serialism 600
Competition Law: Cases and Materials, 5th edition 500
Petrology and Plate Tectonics,2025 400
Burger's Medicinal Chemistry and Drug Discovery 400
A Step-by-Step Guide to Qualitative Data Coding 2nd Edition 400
热门求助领域 (近24小时)
化学 材料科学 医学 生物 纳米技术 工程类 有机化学 化学工程 生物化学 计算机科学 物理 内科学 复合材料 催化作用 物理化学 光电子学 电极 细胞生物学 基因 无机化学
热门帖子
关注 科研通微信公众号,转发送积分 6711218
求助须知:如何正确求助?哪些是违规求助? 8450524
关于积分的说明 18042687
捐赠科研通 5956657
什么是DOI,文献DOI怎么找? 2992963
邀请新用户注册赠送积分活动 1968892
关于科研通互助平台的介绍 1918274