Cited by 154Embedded Systems Design TechniquesAdvanced Neural Network ApplicationsNetwork Packet Processing and Optimization

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

Open access
Lu, Siyuan, Wang, Meiqi, Liang, Shuang, Lin, Jun, Wang, Zhongfeng·2020·2020 IEEE 33rd International System-on-Chip Conference (SOCC)

Abstract

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.6 x in the MHA ResBlock, and 3.4 x in the FFN ResBlock, respectively. Therefore, this work lays a good foundation for building efficient hardware accelerators for multiple Transformer networks.

Integrity signals

Registry

Crossref · 10.1109/socc49529.2020.9524802

Cites

2 of 2 references verified0 citation errors · 0 not checkable

Statistics

Recomputing p-values needs the paper’s full text.

Claims the paper makes

We couldn’t retrieve this paper’s full text, so its claims and self-check weren’t run. The registry and citation checks still apply.

Claims other papers make about this one

Each is checked against this paper’s own text: does it say what the citing paper says it does?

  • Compared to Lu et al.'s design with 4096 MAC units, Fang et al.'s design has comparable inference latency and much higher throughput per MAC unit.

    “Compared to Lu et al. [119], which uses 4096 MAC units, their design has comparable inference latency and much higher throughput per MAC unit.”

    From A Survey of Techniques for Optimizing Transformer Inference (2023) · cites this paper as [119]

  • The use of a single SA saves hardware resources.

    “The use of a single SA saves hardware resources.”

    From A Survey of Techniques for Optimizing Transformer Inference (2023) · cites this paper as [119]

Cites

Flagged first, then by citations

Cited by

Sorted by citations

Authors
Lu, S., Wang, M., Liang, S., Lin, J., & Wang, Z.
Affiliations
Nanjing University (CN)
Venue
2020 IEEE 33rd International System-on-Chip Conference (SOCC)
Publisher
IEEE
Published
2020-09-08
Pages
84-89
OpenAlex
W3196923642
Cited by
154
References
2
Citations by year
2026: 17 · 2025: 52 · 2024: 39 · 2023: 27 · 2022: 16 · 2021: 2 · 2020: 1
FWCI
8.60
Type
conference paper
Language
en
Open access
Locations
  • IEEE International System-on-Chip Conference (SOCC) (publishedVersion)
  • arXiv (Cornell University) (submittedVersion)
  • arXiv (Cornell University)
Funders
National Natural Science Foundation of China (61604068)
Topics
  • Physical Sciences › Computer Science › Hardware and Architecture › Embedded Systems Design Techniques
  • Physical Sciences › Computer Science › Computer Vision and Pattern Recognition › Advanced Neural Network Applications
  • Physical Sciences › Computer Science › Hardware and Architecture › Network Packet Processing and Optimization
Keywords
transformer models, multi-head attention, hardware accelerators, systolic arrays, matrix partitioning, hardware sharing, nonlinear programming, FPGA implementation, deep neural network acceleration, natural language processing

About these checks

Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.

Statistics and arithmetic are recomputed, not judged.

Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.

What counts as a claim ›How we measure confidence ›How we check this ›

Are you an author, or do you see a problem with this page? Request a review