An FPGA-Based Transformer Accelerator With Parallel Unstructured Sparsity Handling for Question-Answering Applications
Dataflow management provides limited performance improvement to the transformer model due to its lesser weight reuse than the convolution neural network. The cosFormer reduced computational complexity while achieving comparable performance to the vanilla transformer for natural language processing tasks. However, the unstructured sparsity in the cosFormer makes it a challenge to be implemented efficiently. This brief proposes a parallel unstructured sparsity handling (PUSH) scheme to compute sparse-dense matrix multiplication (SDMM) efficiently. It transforms unstructured sparsity into structured sparsity and reduces the total memory access by balancing the memory accesses of the sparse and dense matrices in the SDMM. We also employ unstructured weight pruning cooperating with PUSH to further increase the structured sparsity of the model. Through verification on an FPGA platform, the proposed accelerator achieves a throughput of 2.82 TOPS and an energy efficiency of 144.8 GOPs/W for HotpotQA dataset with long sequences.
Authors
- Ka-Fai Un (ORCID: https://orcid.org/0000-0002-7574-4755)
- Pui‐In Mak (ORCID: https://orcid.org/0000-0002-3579-8740)
- Rujian Cao (ORCID: https://orcid.org/0000-0003-0612-2941)
- Wei-Han Yu (ORCID: https://orcid.org/0000-0002-9079-5227)
- Zhongyu Zhao (ORCID: https://orcid.org/0000-0002-5221-6490)
- Rui P. Martins (ORCID: https://orcid.org/0000-0003-2821-648X)
Institutions
- University of Macau (MO)
- Institute of Microelectronics (CN)
Publication Details
- Journal
- IEEE Transactions on Circuits & Systems II Express Briefs
- Published
- 2024-09-17
- DOI
- https://doi.org/10.1109/tcsii.2024.3462560
- Citations
- 3
- Primary Topic
- Experimental Learning in Engineering
- Type
- article
- Field-Weighted Citation Impact
- 0.96
Funders
- Universidade de Macau