跳到正文
EasyXiv 检索
投稿 关于 登录

按回车检索 · 直接输入编号(如 1706.03762)可跳转到论文

电气工程与系统科学 > 信号处理

arXiv:2009.08605 (eess)
[提交于 2020年9月18日]

标题:Hardware Accelerator for Multi-Head Attention and Position-Wise Feed-Forward in the Transformer

作者:Siyuan Lu, Meiqi Wang, Shuang Liang, Jun Lin, Zhongfeng Wang
查看论文《Hardware Accelerator for Multi-Head Attention and Position-Wise Feed-Forward in the Transformer》的 PDF
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读
摘要:Designing hardware accelerators for deep neural networks (DNNs) has been much desired. Nonetheless, most of these existing accelerators are built for either convolutional neural networks (CNNs) or recurrent neural networks (RNNs). Recently, the Transformer model is replacing the RNN in the natural language processing (NLP) area. However, because of intensive matrix computations and complicated data flow being involved, the hardware design for the Transformer model has never been reported. In this paper, we propose the first hardware accelerator for two key components, i.e., the multi-head attention (MHA) ResBlock and the position-wise feed-forward network (FFN) ResBlock, which are the two most complex layers in the Transformer. Firstly, an efficient method is introduced to partition the huge matrices in the Transformer, allowing the two ResBlocks to share most of the hardware resources. Secondly, the computation flow is well designed to ensure the high hardware utilization of the systolic array, which is the biggest module in our design. Thirdly, complicated nonlinear functions are highly optimized to further reduce the hardware complexity and also the latency of the entire system. Our design is coded using hardware description language (HDL) and evaluated on a Xilinx FPGA. Compared with the implementation on GPU with the same setting, the proposed design demonstrates a speed-up of 14.6x in the MHA ResBlock, and 3.4x in the FFN ResBlock, respectively. Therefore, this work lays a good foundation for building efficient hardware accelerators for multiple Transformer networks.
评论: 6 pages, 8 figures. This work has been accepted by IEEE SOCC (System-on-chip Conference) 2020, and peresnted by Siyuan Lu in SOCC2020. It also received the Best Paper Award in the Methdology Track in this conference
主题: 信号处理 (eess.SP); 硬件体系结构 (cs.AR)
引用方式: arXiv:2009.08605 [eess.SP]
  (或者 arXiv:2009.08605v1 [eess.SP] 对于此版本)
  https://doi.org/10.48550/arXiv.2009.08605

提交历史

来自:Siyuan Lu
[v1] 2020年9月18日 星期五 03:13:19 UTC
全文链接:

访问论文:

  • 查看原文 PDF
  • 中文 PDF (下批处理)
  • EasyResearch 阅读
  • TeX 源文件
  • arXiv 原文页面
查看许可

当前浏览上下文:

eess.SP
< 上一篇   |   下一篇 >
最新 | 近期 | 2020-09
切换浏览方式为:
eess
cs.AR

参考文献与引用

  • Google Scholar
  • Semantic Scholar

BibTeX 格式的引用

EasyXiv 是独立运营的中文预印本站点,与 arXiv 及康奈尔大学无隶属关系。 论文元数据与原文来自 arXiv.org,感谢 arXiv 提供开放获取服务。
关于 · 帮助 · 投稿指南 · 版权 · arXiv 原站