Hardware Accelerator for Multi-Head Attention and Position-Wise Feed-Forward in the Transformer
Not on the map. Why?
Abstract (arXiv)
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.
Key facts. Cited by 42 papers in the map (data through 7 Oct 2026). First posted on arXiv 18 Sep 2020.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 2; 2022: 5; 2023: 7; 2024: 16; 2025: 11; 2026: 1.
42 papers.
Sort:
By area:
- 2023Full Stack Optimization of Transformer Inference: a Surveycited by 79
- 2022Efficient Methods for Natural Language Processing: A Surveycited by 78
- 2023A Survey of Techniques for Optimizing Transformer Inferencecited by 35
- 2022Enable Deep Learning on Mobile Devices: Methods, Systems, and Applicationscited by 32
- 2024LLMServingSim: A HW/SW Co-Simulation Infrastructure for LLM Inference Serving at Scalecited by 30
- 2022An Algorithm-Hardware Co-Optimized Framework for Accelerating N:M Sparse Transformerscited by 28
- 2023AccelTran: A Sparsity-Aware Accelerator for Dynamic Inference with Transformerscited by 24
- 2023Edge-MoE: Memory-Efficient Multi-Task Vision Transformer Architecture with Task-level Sparsity via Mixture-of-Expertscited by 23
- 2025LLM-Powered AI Agent Systems and Their Applications in Industrycited by 22
- 2023SwiftTron: An Efficient Hardware Accelerator for Quantized Transformerscited by 17
- 2024A Survey on Hardware Accelerators for Large Language Modelscited by 15
- 2024Designing Efficient LLM Accelerators for Edge Devicescited by 13
30 more
- 2024MARCA: Mamba Accelerator with ReConfigurable Architecturecited by 13
- 2023TRON: Transformer Neural Network Acceleration with Non-Coherent Silicon Photonicscited by 12
- 2023ViTA: A Vision Transformer Inference Accelerator for Edge Applicationscited by 11
- 2025QUARK: Quantization-Enabled Circuit Sharing for Transformer Acceleration by Exploiting Common Patterns in Nonlinear Operationscited by 10
- 2024BETA: Binarized Energy-Efficient Transformer Accelerator at the Edgecited by 6
- 2025Low-Cost FlashAttention with Fused Exponential and Multiplication Hardware Operatorscited by 5
- 2025Kelle: Co-design KV Caching and eDRAM for Efficient LLM Serving in Edge Computingcited by 5
- 2025SOLE: Hardware-Software Co-design of Softmax and LayerNorm for Efficient Transformer Inferencecited by 5
- 2024P2-ViT: Power-of-Two Post-Training Quantization and Acceleration for Fully Quantized Vision Transformercited by 4
- 2024Integrated Hardware Architecture and Device Placement Searchcited by 4
- 2024Deploying Foundation Model Powered Agent Services: A Surveycited by 4
- 2024Hardware Acceleration of LLMs: A comprehensive survey and comparisoncited by 3
- 2024A Runtime-Adaptive Transformer Neural Network Accelerator on FPGAscited by 3
- 2021Vis-TOP: Visual Transformer Overlay Processorcited by 2
- 2022Row-wise Accelerator for Vision Transformercited by 2
- 2024From Algorithm to Hardware: A Survey on Efficient and Safe Deployment of Deep Neural Networkscited by 2
- 2024Co-Designing Binarized Transformer and Hardware Accelerator for Efficient End-to-End Edge Deploymentcited by 2
- 2025FLASH-D: FlashAttention with Hidden Softmax Divisioncited by 2
- 2021Dynamic Multi-Branch Layers for On-Device Neural Machine Translationcited by 1
- 2022Fast and Accurate FSA System Using ELBERT: An Efficient and Lightweight BERTcited by 1
- 2024Accelerating Neural Networks for Large Language Models and Graph Processing with Silicon Photonicscited by 1
- 2024ARTEMIS: A Mixed Analog-Stochastic In-DRAM Accelerator for Transformer Neural Networkscited by 1
- 2024ProTEA: Programmable Transformer Encoder Acceleration on FPGAcited by 1
- 2024FAMOUS: Flexible Accelerator for the Attention Mechanism of Transformer on UltraScale+ FPGAscited by 1
- 2025A Low-Power Streaming Speech Enhancement Accelerator For Edge Devicescited by 1
- 2025Design and Implementation of an FPGA-Based Hardware Accelerator for Transformercited by 0
- 2025Accelerating Sparse Transformer Inference on GPUcited by 0
- 2025Vectorized FlashAttention with Low-cost Exponential Computation in RISC-V Vector Processorscited by 0
- 2025F-BFQ: Flexible Block Floating-Point Quantization Accelerator for LLMscited by 0
- 2026DxPTA: An Architecture Design Space Exploration with Optical Dataflow-guided Strategy for HW/SW Co-Design of Photonic Transformer Acceleratorscited by 0
- 2026DxPTA: An Architecture Design Space Exploration with Optical Dataflow-guided Strategy for HW/SW Co-Design of Photonic Transformer Accelerators2 Jun 2026
- 2025QUARK: Quantization-Enabled Circuit Sharing for Transformer Acceleration by Exploiting Common Patterns in Nonlinear Operations10 Nov 2025
- 2025SOLE: Hardware-Software Co-design of Softmax and LayerNorm for Efficient Transformer Inference20 Oct 2025
- 2025Kelle: Co-design KV Caching and eDRAM for Efficient LLM Serving in Edge Computing16 Oct 2025
- 2025F-BFQ: Flexible Block Floating-Point Quantization Accelerator for LLMs15 Oct 2025
- 2025Vectorized FlashAttention with Low-cost Exponential Computation in RISC-V Vector Processors8 Oct 2025
- 2025Accelerating Sparse Transformer Inference on GPU6 Jun 2025
- 2025LLM-Powered AI Agent Systems and Their Applications in Industry22 May 2025
- 2025Low-Cost FlashAttention with Fused Exponential and Multiplication Hardware Operators20 May 2025
- 2025FLASH-D: FlashAttention with Hidden Softmax Division20 May 2025
- 2025A Low-Power Streaming Speech Enhancement Accelerator For Edge Devices27 Mar 2025
- 2025Design and Implementation of an FPGA-Based Hardware Accelerator for Transformer20 Mar 2025
30 more
- 2024Deploying Foundation Model Powered Agent Services: A Survey18 Dec 2024
- 2024A Runtime-Adaptive Transformer Neural Network Accelerator on FPGAs27 Nov 2024
- 2024FAMOUS: Flexible Accelerator for the Attention Mechanism of Transformer on UltraScale+ FPGAs21 Sep 2024
- 2024ProTEA: Programmable Transformer Encoder Acceleration on FPGA21 Sep 2024
- 2024MARCA: Mamba Accelerator with ReConfigurable Architecture16 Sep 2024
- 2024Hardware Acceleration of LLMs: A comprehensive survey and comparison5 Sep 2024
- 2024LLMServingSim: A HW/SW Co-Simulation Infrastructure for LLM Inference Serving at Scale10 Aug 2024
- 2024Designing Efficient LLM Accelerators for Edge Devices1 Aug 2024
- 2024Integrated Hardware Architecture and Device Placement Search18 Jul 2024
- 2024ARTEMIS: A Mixed Analog-Stochastic In-DRAM Accelerator for Transformer Neural Networks17 Jul 2024
- 2024Co-Designing Binarized Transformer and Hardware Accelerator for Efficient End-to-End Edge Deployment16 Jul 2024
- 2024P2-ViT: Power-of-Two Post-Training Quantization and Acceleration for Fully Quantized Vision Transformer30 May 2024
- 2024From Algorithm to Hardware: A Survey on Efficient and Safe Deployment of Deep Neural Networks9 May 2024
- 2024BETA: Binarized Energy-Efficient Transformer Accelerator at the Edge22 Jan 2024
- 2024A Survey on Hardware Accelerators for Large Language Models18 Jan 2024
- 2024Accelerating Neural Networks for Large Language Models and Graph Processing with Silicon Photonics12 Jan 2024
- 2023A Survey of Techniques for Optimizing Transformer Inference16 Jul 2023
- 2023Edge-MoE: Memory-Efficient Multi-Task Vision Transformer Architecture with Task-level Sparsity via Mixture-of-Experts30 May 2023
- 2023SwiftTron: An Efficient Hardware Accelerator for Quantized Transformers8 Apr 2023
- 2023TRON: Transformer Neural Network Acceleration with Non-Coherent Silicon Photonics22 Mar 2023
- 2023AccelTran: A Sparsity-Aware Accelerator for Dynamic Inference with Transformers28 Feb 2023
- 2023Full Stack Optimization of Transformer Inference: a Survey27 Feb 2023
- 2023ViTA: A Vision Transformer Inference Accelerator for Edge Applications17 Feb 2023
- 2022Fast and Accurate FSA System Using ELBERT: An Efficient and Lightweight BERT16 Nov 2022
- 2022Efficient Methods for Natural Language Processing: A Survey31 Aug 2022
- 2022An Algorithm-Hardware Co-Optimized Framework for Accelerating N:M Sparse Transformers12 Aug 2022
- 2022Row-wise Accelerator for Vision Transformer9 May 2022
- 2022Enable Deep Learning on Mobile Devices: Methods, Systems, and Applications25 Apr 2022
- 2021Vis-TOP: Visual Transformer Overlay Processor21 Oct 2021
- 2021Dynamic Multi-Branch Layers for On-Device Neural Machine Translation14 May 2021
- 2023Full Stack Optimization of Transformer Inference: a Surveycited by 79
- 2022Efficient Methods for Natural Language Processing: A Surveycited by 78
- 2023A Survey of Techniques for Optimizing Transformer Inferencecited by 35
- 2022Enable Deep Learning on Mobile Devices: Methods, Systems, and Applicationscited by 32
- 2022An Algorithm-Hardware Co-Optimized Framework for Accelerating N:M Sparse Transformerscited by 28
- 2023AccelTran: A Sparsity-Aware Accelerator for Dynamic Inference with Transformerscited by 24
- 2023SwiftTron: An Efficient Hardware Accelerator for Quantized Transformerscited by 17
- 2024A Survey on Hardware Accelerators for Large Language Modelscited by 15
- 2024Designing Efficient LLM Accelerators for Edge Devicescited by 13
- 2024MARCA: Mamba Accelerator with ReConfigurable Architecturecited by 13
- 2023TRON: Transformer Neural Network Acceleration with Non-Coherent Silicon Photonicscited by 12
- 2023ViTA: A Vision Transformer Inference Accelerator for Edge Applicationscited by 11
12 most cited of 37 All 37 (JSON)
- 2026DxPTA: An Architecture Design Space Exploration with Optical Dataflow-guided Strategy for HW/SW Co-Design of Photonic Transformer Accelerators2 Jun 2026
- 2025QUARK: Quantization-Enabled Circuit Sharing for Transformer Acceleration by Exploiting Common Patterns in Nonlinear Operations10 Nov 2025
- 2025SOLE: Hardware-Software Co-design of Softmax and LayerNorm for Efficient Transformer Inference20 Oct 2025
- 2025F-BFQ: Flexible Block Floating-Point Quantization Accelerator for LLMs15 Oct 2025
- 2025Vectorized FlashAttention with Low-cost Exponential Computation in RISC-V Vector Processors8 Oct 2025
- 2025Accelerating Sparse Transformer Inference on GPU6 Jun 2025
- 2025Low-Cost FlashAttention with Fused Exponential and Multiplication Hardware Operators20 May 2025
- 2025FLASH-D: FlashAttention with Hidden Softmax Division20 May 2025
- 2025A Low-Power Streaming Speech Enhancement Accelerator For Edge Devices27 Mar 2025
- 2025Design and Implementation of an FPGA-Based Hardware Accelerator for Transformer20 Mar 2025
- 2024A Runtime-Adaptive Transformer Neural Network Accelerator on FPGAs27 Nov 2024
- 2024FAMOUS: Flexible Accelerator for the Attention Mechanism of Transformer on UltraScale+ FPGAs21 Sep 2024
12 newest of 37 All 37 (JSON)