mlsanityData to 7 Oct 2026

A Length Adaptive Algorithm-Hardware Co-design of Transformer on FPGA Through Sparse Attention and Dynamic Pipelining

arXiv 2208.03646 ↗First posted 7 Aug 2022cs.LG cs.ARcited by 21

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

  1. 2017Attention Is All You Needcited by 59,932
  2. 2015Deep Residual Learning for Image Recognitioncited by 51,809
  3. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  4. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
  5. 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
  6. 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,082
  7. 2019DistilBERT, a distilled version of BERT: smaller, faster, cheaper and lightercited by 4,243
  8. 2016SQuAD: 100,000+ Questions for Machine Comprehension of Textcited by 4,115
  9. 2016Pointer Sentinel Mixture Modelscited by 2,992
  10. 2020Big Bird: Transformers for Longer Sequencescited by 1,673
  11. 2020Reformer: The Efficient Transformercited by 1,658
  12. 2018Know What You Don't Know: Unanswerable Questions for SQuADcited by 1,538
13 more
  1. 2020End-to-End Human Pose and Mesh Reconstruction with Transformerscited by 417
  2. 2019On the Relationship between Self-Attention and Convolutional Layerscited by 299
  3. 2020SpAtten: Efficient Sparse Attention Architecture with Cascade Token and Head Pruningcited by 228
  4. 2020TernaryBERT: Distillation-aware Ultra-low Bit BERTcited by 145
  5. 2020A3: Accelerating Attention Mechanisms in Neural Networks with Approximationcited by 97
  6. 2020TurboTransformers: An Efficient GPU Serving System For Transformer Modelscited by 71
  7. 2019BP-Transformer: Modelling Long-Range Context via Binary Partitioningcited by 38
  8. 2021Accelerating Framework of Transformer by Hardware Design and Model Compression Co-Optimizationcited by 27
  9. 2021Binary Complex Neural Network Acceleration on FPGAcited by 14
  10. 2022An Automatic and Efficient BERT Pruning for Edge AI Systemscited by 13
  11. 2021Improving DNN Fault Tolerance using Weight Pruning and Differential Crossbar Mapping for ReRAM-based Edge AIcited by 10
  12. 2020Benchmarking High Bandwidth Memory on FPGAscited by 5
  13. 2021Optimizing FPGA-based Accelerator Design for Large-Scale Molecular Similarity Searchcited by 5

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2022: 4; 2023: 11; 2024: 5; 2025: 0; 2026: 1.

21 papers.

Sort:

  1. 2023A Survey of Techniques for Optimizing Transformer Inferencecited by 35
  2. 2023AutoReP: Automatic ReLU Replacement for Fast Private Network Inferencecited by 29
  3. 2023Understanding the Potential of FPGA-Based Spatial Acceleration for Large Language Model Inferencecited by 29
  4. 2023LinGCN: Structural Linearized Graph Convolutional Network for Homomorphically Encrypted Inferencecited by 26
  5. 2023MaxK-GNN: Extremely Fast GPU Kernel Design for Accelerating Graph Neural Networks Trainingcited by 25
  6. 2023Visual Prompting Upgrades Neural Network Sparsification: A Data-Model Perspectivecited by 23
  7. 2023Accel-GCN: High-Performance GPU Accelerator Design for Graph Convolution Networkscited by 22
  8. 2022Towards Sparsification of Graph Neural Networkscited by 18
  9. 2022Dynamic Sparse Training via Balancing the Exploration-Exploitation Trade-offcited by 15
  10. 2023RRNet: Towards ReLU-Reduced Neural Network for Two-party Computation Based Private Inferencecited by 12
  11. 2024HG-PIPE: Vision Transformer Acceleration with Hybrid-Grained Pipelinecited by 7
  12. 2023QuMoS: A Framework for Preserving Security of Quantum Machine Learning Modelcited by 5
9 more
  1. 2024A Runtime-Adaptive Transformer Neural Network Accelerator on FPGAscited by 3
  2. 2022PolyMPCNet: Towards ReLU-free Neural Architecture Search in Two-party Computation Based Private Inferencecited by 2
  3. 2023Edge-InversionNet: Enabling Efficient Inference of InversionNet on Edge Devicescited by 2
  4. 2023TransCODE: Co-design of Transformers and Accelerators for Efficient Training and Inferencecited by 1
  5. 2024ProTEA: Programmable Transformer Encoder Acceleration on FPGAcited by 1
  6. 2024FAMOUS: Flexible Accelerator for the Attention Mechanism of Transformer on UltraScale+ FPGAscited by 1
  7. 2022Efficient Traffic State Forecasting using Spatio-Temporal Network Dependencies: A Sparse Graph Neural Network Approachcited by 0
  8. 2024International Trade Flow Prediction with Bilateral Trade Provisionscited by 0
  9. 2026Salca: A Sparsity-Aware Hardware Accelerator for Efficient Long-Context Attention Decodingcited by 0