A 77.79 GOPs/W Retentive Network FPGA Inference Accelerator with Optimized Workload
Retention Network (RetNet) is a novel neural network model, with a inference complexity of O(1), considered to be the successor of the Transformer model. This work presents an inference accelerator supporting RetNet and DNN algorithms focus on dataflow optimizing, model quantization for improved parallelism and reusability, and addressing K-V cache issues in Transformers. To meet model inference storage bandwidth requirements, we used output block stationary (OBS) dataflow to explore data reusability in time and space. A hardware accelerator for the position encoding module is designed, reducing storage bandwidth and on-chip storage during Extrapolatable Position Embedding (XPOS). Compared to Transformer models of the same size architecture, this work has better inference accuracy, achieving energy efficiency ratio of 77.79 GOPs/W, a 12.5x speedup, and 2.13x energy efficiency compared to GPU implementations, which is 1.33x better than the transformer work baseline. Meanwhile, the inference process of Muti-Scale-Retention(MSR) is completed with the smallest on-chip RAM of 350KB, thereby enabling a more efficient ASIC implementation of hardware accelerators.
Authors
- Dapeng Jiang (ORCID: https://orcid.org/0000-0001-8493-0464)
- Fasih Ud Din Farrukh (ORCID: https://orcid.org/0000-0002-0178-8130)
- Liting Niu
- Fei Chen (ORCID: https://orcid.org/0000-0003-4397-0931)
- Weiyi Zhang (ORCID: https://orcid.org/0000-0003-1296-3579)
- Chun Zhang (ORCID: https://orcid.org/0000-0002-1581-5806)
- Cheng Nian
Institutions
- Tsinghua University (CN)
Publication Details
- Published
- 2024-11-03
- DOI
- https://doi.org/10.1109/iecon55916.2024.10905965
- Primary Topic
- Software-Defined Networks and 5G
- Type
- article
- Field-Weighted Citation Impact
- 0.00
Funders
- National Natural Science Foundation of China