Fully Quantized Matrix Arithmetic-Only BERT Model and Its FPGA-Based Accelerator
Open Access
- 20 June 2025
- journal article
- Published by Institute of Electrical and Electronics Engineers (IEEE) in IEEE Access
- Vol. 13, 107165-107174
Abstract
In this paper, we propose a fully quantized matrix arithmetic-only BERT (FQ MA-BERT) model to enable efficient natural language processing. Conventionally, the BERT model relies on floating point arithmetic for inference and requires not only linear matrix multiplication but also nonlinear functions, such as softmax and normalization functions, which significantly increase hardware costs. In contrast, the proposed FQ MA-BERT model quantizes all activations and weights to 8-bit integer precision and ternary precision, respectively, i.e., the proposed model is fully quantized. Moreover, all nonlinear layers are replaced with matrix arithmetic operations. This means that the proposed model consists solely of integer-precision linear matrix arithmetic operations, allowing a significant reduction in hardware resources. To validate the hardware-friendliness of the proposed FQ MA-BERT model, we implement an accelerator for the proposed model on AMD Zynq Ultrascale+ FPGA. The proposed accelerator comprises only two types of integer-precision matrix multiplication units without the need for specialized circuits to perform nonlinear functions. The implementation results show that the hardware resource efficiency of the proposed accelerator is 1.8 times higher than that of conventional FPGA-based BERT accelerators.Keywords
Funding Information
- JSPS KAKENHI (JP24K02918)
This publication has 16 references indexed in Scilit:
- TATAA: Programmable Mixed-Precision Transformer Acceleration with a Transformable Arithmetic ArchitectureACM Transactions on Reconfigurable Technology and Systems, 2025
- Co-Designing Binarized Transformer and Hardware Accelerator for Efficient End-to-End Edge Deployment2024
- Multiplication-Free Lookup-Based CNN Accelerator Using Residual Vector Quantization and Its FPGA ImplementationIEEE Access, 2024
- FET-OPU: A Flexible and Efficient FPGA-Based Overlay Processor for Transformer Networks2023
- LUT-NN: Empower Efficient Neural Network Inference with Centroid Learning and Table Lookup2023
- Lookup Table-Based Computing-in-Memory Macro Approximating Dot Products Without Multiplications for Energy-Efficient CNN InferenceIEEE Transactions on Circuits and Systems I: Regular Papers, 2023
- NPE: An FPGA-based Overlay Processor for Natural Language Processing2021
- Edge Artificial Intelligence Chips for the Cyberphysical Systems EraComputer, 2021
- TernaryBERT: Distillation-aware Ultra-low Bit BERT2020
- MobileBERT: a Compact Task-Agnostic BERT for Resource-Limited Devices2020