A Length Adaptive Algorithm-Hardware Co-design of Transformer on FPGA Through Sparse Attention and Dynamic Pipelining
Not on the map. Why?
Abstract (arXiv)
Transformers are considered one of the most important deep learning models since 2018, in part because it establishes state-of-the-art (SOTA) records and could potentially replace existing Deep Neural Networks (DNNs). Despite the remarkable triumphs, the prolonged turnaround time of Transformer models is a widely recognized roadblock. The variety of sequence lengths imposes additional computing overhead where inputs need to be zero-padded to the maximum sentence length in the batch to accommodate the parallel computing platforms. This paper targets the field-programmable gate array (FPGA) and proposes a coherent sequence length adaptive algorithm-hardware co-design for Transformer acceleration. Particularly, we develop a hardware-friendly sparse attention operator and a length-aware hardware resource scheduling algorithm. The proposed sparse attention operator brings the complexity of attention-based models down to linear complexity and alleviates the off-chip memory traffic. The proposed length-aware resource hardware scheduling algorithm dynamically allocates the hardware resources to fill up the pipeline slots and eliminates bubbles for NLP tasks. Experiments show that our design has very small accuracy loss and has 80.2 × and 2.6 × speedup compared to CPU and GPU implementation, and 4 × higher energy efficiency than state-of-the-art GPU accelerator optimized via CUBLAS GEMM.
Key facts. Cited by 21 papers in the map (data through 7 Oct 2026). Builds on 25 of its 39 references that are in the map. First posted on arXiv 7 Aug 2022.
Builds on
25 of 39 references.
References · 25
- 2017Attention Is All You Needcited by 59,932
- 2015Deep Residual Learning for Image Recognitioncited by 51,809
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
- 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,082
- 2019DistilBERT, a distilled version of BERT: smaller, faster, cheaper and lightercited by 4,243
- 2016SQuAD: 100,000+ Questions for Machine Comprehension of Textcited by 4,115
- 2016Pointer Sentinel Mixture Modelscited by 2,992
- 2020Big Bird: Transformers for Longer Sequencescited by 1,673
- 2020Reformer: The Efficient Transformercited by 1,658
- 2018Know What You Don't Know: Unanswerable Questions for SQuADcited by 1,538
13 more
- 2020End-to-End Human Pose and Mesh Reconstruction with Transformerscited by 417
- 2019On the Relationship between Self-Attention and Convolutional Layerscited by 299
- 2020SpAtten: Efficient Sparse Attention Architecture with Cascade Token and Head Pruningcited by 228
- 2020TernaryBERT: Distillation-aware Ultra-low Bit BERTcited by 145
- 2020A3: Accelerating Attention Mechanisms in Neural Networks with Approximationcited by 97
- 2020TurboTransformers: An Efficient GPU Serving System For Transformer Modelscited by 71
- 2019BP-Transformer: Modelling Long-Range Context via Binary Partitioningcited by 38
- 2021Accelerating Framework of Transformer by Hardware Design and Model Compression Co-Optimizationcited by 27
- 2021Binary Complex Neural Network Acceleration on FPGAcited by 14
- 2022An Automatic and Efficient BERT Pruning for Edge AI Systemscited by 13
- 2021Improving DNN Fault Tolerance using Weight Pruning and Differential Crossbar Mapping for ReRAM-based Edge AIcited by 10
- 2020Benchmarking High Bandwidth Memory on FPGAscited by 5
- 2021Optimizing FPGA-based Accelerator Design for Large-Scale Molecular Similarity Searchcited by 5
Built on by
Citing papers per year: 2022: 4; 2023: 11; 2024: 5; 2025: 0; 2026: 1.
21 papers.
Sort:
- 2023A Survey of Techniques for Optimizing Transformer Inferencecited by 35
- 2023AutoReP: Automatic ReLU Replacement for Fast Private Network Inferencecited by 29
- 2023Understanding the Potential of FPGA-Based Spatial Acceleration for Large Language Model Inferencecited by 29
- 2023LinGCN: Structural Linearized Graph Convolutional Network for Homomorphically Encrypted Inferencecited by 26
- 2023MaxK-GNN: Extremely Fast GPU Kernel Design for Accelerating Graph Neural Networks Trainingcited by 25
- 2023Visual Prompting Upgrades Neural Network Sparsification: A Data-Model Perspectivecited by 23
- 2023Accel-GCN: High-Performance GPU Accelerator Design for Graph Convolution Networkscited by 22
- 2022Towards Sparsification of Graph Neural Networkscited by 18
- 2022Dynamic Sparse Training via Balancing the Exploration-Exploitation Trade-offcited by 15
- 2023RRNet: Towards ReLU-Reduced Neural Network for Two-party Computation Based Private Inferencecited by 12
- 2024HG-PIPE: Vision Transformer Acceleration with Hybrid-Grained Pipelinecited by 7
- 2023QuMoS: A Framework for Preserving Security of Quantum Machine Learning Modelcited by 5
9 more
- 2024A Runtime-Adaptive Transformer Neural Network Accelerator on FPGAscited by 3
- 2022PolyMPCNet: Towards ReLU-free Neural Architecture Search in Two-party Computation Based Private Inferencecited by 2
- 2023Edge-InversionNet: Enabling Efficient Inference of InversionNet on Edge Devicescited by 2
- 2023TransCODE: Co-design of Transformers and Accelerators for Efficient Training and Inferencecited 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
- 2022Efficient Traffic State Forecasting using Spatio-Temporal Network Dependencies: A Sparse Graph Neural Network Approachcited by 0
- 2024International Trade Flow Prediction with Bilateral Trade Provisionscited by 0
- 2026Salca: A Sparsity-Aware Hardware Accelerator for Efficient Long-Context Attention Decodingcited by 0
- 2026Salca: A Sparsity-Aware Hardware Accelerator for Efficient Long-Context Attention Decoding27 Apr 2026
- 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
- 2024HG-PIPE: Vision Transformer Acceleration with Hybrid-Grained Pipeline25 Jul 2024
- 2024International Trade Flow Prediction with Bilateral Trade Provisions23 Jun 2024
- 2023Understanding the Potential of FPGA-Based Spatial Acceleration for Large Language Model Inference23 Dec 2023
- 2023MaxK-GNN: Extremely Fast GPU Kernel Design for Accelerating Graph Neural Networks Training14 Dec 2023
- 2023Visual Prompting Upgrades Neural Network Sparsification: A Data-Model Perspective3 Dec 2023
- 2023Edge-InversionNet: Enabling Efficient Inference of InversionNet on Edge Devices14 Oct 2023
- 2023LinGCN: Structural Linearized Graph Convolutional Network for Homomorphically Encrypted Inference25 Sep 2023
- 2023Accel-GCN: High-Performance GPU Accelerator Design for Graph Convolution Networks22 Aug 2023
9 more
- 2023AutoReP: Automatic ReLU Replacement for Fast Private Network Inference20 Aug 2023
- 2023A Survey of Techniques for Optimizing Transformer Inference16 Jul 2023
- 2023QuMoS: A Framework for Preserving Security of Quantum Machine Learning Model23 Apr 2023
- 2023TransCODE: Co-design of Transformers and Accelerators for Efficient Training and Inference27 Mar 2023
- 2023RRNet: Towards ReLU-Reduced Neural Network for Two-party Computation Based Private Inference5 Feb 2023
- 2022Dynamic Sparse Training via Balancing the Exploration-Exploitation Trade-off30 Nov 2022
- 2022Efficient Traffic State Forecasting using Spatio-Temporal Network Dependencies: A Sparse Graph Neural Network Approach6 Nov 2022
- 2022PolyMPCNet: Towards ReLU-free Neural Architecture Search in Two-party Computation Based Private Inference20 Sep 2022
- 2022Towards Sparsification of Graph Neural Networks11 Sep 2022
- 2023A Survey of Techniques for Optimizing Transformer Inferencecited by 35
- 2023AutoReP: Automatic ReLU Replacement for Fast Private Network Inferencecited by 29
- 2023Understanding the Potential of FPGA-Based Spatial Acceleration for Large Language Model Inferencecited by 29
- 2023LinGCN: Structural Linearized Graph Convolutional Network for Homomorphically Encrypted Inferencecited by 26
- 2023MaxK-GNN: Extremely Fast GPU Kernel Design for Accelerating Graph Neural Networks Trainingcited by 25
- 2023Visual Prompting Upgrades Neural Network Sparsification: A Data-Model Perspectivecited by 23
- 2023Accel-GCN: High-Performance GPU Accelerator Design for Graph Convolution Networkscited by 22
- 2022Towards Sparsification of Graph Neural Networkscited by 18
- 2022Dynamic Sparse Training via Balancing the Exploration-Exploitation Trade-offcited by 15
- 2023RRNet: Towards ReLU-Reduced Neural Network for Two-party Computation Based Private Inferencecited by 12
- 2024HG-PIPE: Vision Transformer Acceleration with Hybrid-Grained Pipelinecited by 7
- 2023QuMoS: A Framework for Preserving Security of Quantum Machine Learning Modelcited by 5
12 most cited of 21 All 21 (JSON)
- 2026Salca: A Sparsity-Aware Hardware Accelerator for Efficient Long-Context Attention Decoding27 Apr 2026
- 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
- 2024HG-PIPE: Vision Transformer Acceleration with Hybrid-Grained Pipeline25 Jul 2024
- 2024International Trade Flow Prediction with Bilateral Trade Provisions23 Jun 2024
- 2023Understanding the Potential of FPGA-Based Spatial Acceleration for Large Language Model Inference23 Dec 2023
- 2023MaxK-GNN: Extremely Fast GPU Kernel Design for Accelerating Graph Neural Networks Training14 Dec 2023
- 2023Visual Prompting Upgrades Neural Network Sparsification: A Data-Model Perspective3 Dec 2023
- 2023Edge-InversionNet: Enabling Efficient Inference of InversionNet on Edge Devices14 Oct 2023
- 2023LinGCN: Structural Linearized Graph Convolutional Network for Homomorphically Encrypted Inference25 Sep 2023
- 2023Accel-GCN: High-Performance GPU Accelerator Design for Graph Convolution Networks22 Aug 2023
12 newest of 21 All 21 (JSON)