Skip to main navigation Skip to search Skip to main content

A Case for Low Bitwidth Floating Point Arithmetic on FPGA for Transformer Based DNN Inference

  • Jiajun Wu
  • , Mo Song
  • , Jingmin Zhao
  • , Hayden Kwok-Hay So

Research output: Chapters, Conference Papers, Creative and Literary Works › RGC 32 - Refereed conference paper (with host publication) › peer-review

Abstract

Modern Transformer-based deep neural networks are increasingly reliance on an accelerator's ability to perform the model's non-linear operations accurately and efficiently. Unfortu-nately, while conventional low bitwidth fixed-point arithmetic are superior in terms of power, performance, and area consumption for low-precision linear operations, they are not well-suited to perform non-linear operations that require large dynamic range and high precision. In this work, we present a case for using a mix of low-bitwidth block floating-point and single precision floating-point operations to address the needs of both the linear and non-linear layers of Transformer-based DNNs. To support both datatypes in hardware, an 8-bit block floating point (bfp8) processing array that can be reconfigured to implement 32-bit floating point (fp32) computation during run time is proposed. With the support of both datatypes, pre-trained Transformer models in fp32 can now be deployed without the need for quantization-aware retraining. The proposed bfp8 systolic array has been implemented efficiently on an AMD Alveo U280 FPGA, consuming only marginally more hardware resources than an int8 equivalence. It attains 2.052 TOPS throughput for the linear operations in bfp8 mode, which is equivalent to over 95 % of the theoretical maximum 8-bit throughput of the target platform, while it achieves 33.88 GFLOPS throughput when operating in fp32 mode. By demonstrating the hardware efficiency of low-precision floating-point operations on FPGAs, this work provides an attractive tradeoff direction in the vast design space of accuracy, speed, power, and time-to-market for full-stack Transformer models acceleration. © 2024 IEEE.
Original languageEnglish
Title of host publication2024 IEEE International Parallel and Distributed Processing Symposium Workshops (IPDPSW)
PublisherIEEE
Pages178-185
ISBN (Electronic)979-8-3503-6460-6
DOIs
Publication statusPublished - 2024
Externally publishedYes
Event2024 IEEE International Parallel and Distributed Processing Symposium Workshops, IPDPSW 2024 - San Francisco, United States
Duration: 27 May 2024 → 31 May 2024

Publication series

NameIEEE International Parallel and Distributed Processing Symposium Workshops, IPDPSW

Conference

Conference2024 IEEE International Parallel and Distributed Processing Symposium Workshops, IPDPSW 2024
PlaceUnited States
CitySan Francisco
Period27/05/24 → 31/05/24

Funding

This work was supported in part by the Research Grants Council (RGC) of Hong Kong under the Research Impact Fund project R7003-21 and the Theme-based Research Scheme (TRS) Project T45-701-22-R. This work was supported by AI Chip Center for Emerging Smart Systems (ACCESS), sponsored by InnoHK funding, Hong Kong SAR.

RGC Funding Information

  • RGC-funded

Fingerprint

Dive into the research topics of 'A Case for Low Bitwidth Floating Point Arithmetic on FPGA for Transformer Based DNN Inference'. Together they form a unique fingerprint.

Cite this