Famous: Flexible Accelerator for the Attention Mechanism of Transformer on Ultrascale+ FPGAs
This paper proposes FAMOUS, a flexible hardware accelerator for dense multi-head attention (MHA) computation of Transformer neural networks (TNNs) on field-programmable gate arrays (FPGAs). It is optimized for high utilization of processing elements and on-chip memories to improve parallelism and reduce latency. An efficient tiling of large matrices has been employed to distribute memory and computing resources across different modules on various FPGA platforms. The design is evaluated on Xilinx Alveo U55C data center cards containing Ultrascale+ FPGAs. Experimental results showed that it can attain a maximum throughput, the number of parallel attention heads, embedding dimension, and tile size of 328 (giga operations/second (GOPS)), 8, 768 and 64 respectively on the U55C. Furthermore, it is <tex xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">$3.28 \times$</tex> and <tex xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">$2.6 \times$</tex> faster than the Intel Xeon Gold 5220R CPU and NVIDIA V100 GPU respectively. It is also <tex xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">$\text{1. 3} \times$</tex> faster than the fastest state-of-the-art FPGA-based accelerator.
Authors
- Jason D. Bakos (ORCID: https://orcid.org/0000-0002-0821-6258)
- Austin Downey (ORCID: https://orcid.org/0000-0002-5524-2416)
- Ehsan Kabir (ORCID: https://orcid.org/0009-0009-3335-9419)
- David Andrews (ORCID: https://orcid.org/0000-0003-1464-7107)
- Miaoqing Huang (ORCID: https://orcid.org/0000-0001-7376-3744)
- MD Arafat Kabir
Institutions
- University of South Carolina (US)
- University of Arkansas at Fayetteville (US)
Publication Details
- Published
- 2024-12-10
- DOI
- https://doi.org/10.1109/icfpt64416.2024.11113430
- Citations
- 2
- Primary Topic
- Magneto-Optical Properties and Applications
- Type
- article
- Field-Weighted Citation Impact
- 0.42