Back to search

Nanyang Technological University

An FPGA-based hardware accelerator design for quantitative transformer

Abstract

dc:description.abstract

With the continuous development of neural networks and the continuous improvement of hardware arithmetic, artificial intelligence has gradually been widely developed and applied in various industries, but the high arithmetic overhead has affected the further development of neural networks. Designing neural network accelerators on hardware can help improve the inference speed of neural networks, which is the preferred solution for large-scale neural network computing. Transformer is a neural network model based on the self-attention mechanism, and it performs well in many fields and tasks because of its highly parallel computation capability. This dissertation first introduces the development and application of neural networks and Transformer models, and then presents the core structures of the Transformer model, such as positional encoding, the self-attention mechanism, and the fully connected layer. Finally, it introduces the Vision Transformer (ViT), which is suitable for image classification tasks in the field of computer vision. The use of low-bitwidth fixed-point numbers in hardware instead of floating-point arithmetic helps reduce the resource overhead of hardware accelerators and improve system performance. In this dissertation, the basic theory of neural network quantisation is introduced to convert floating-point models into integer models, and a model quantisation training system based on quantisation-aware training is implemented to obtain neural network quantisation models with low bitwidth and high accuracy. Based on the quantised model, this dissertation designs a hardware accelerator system that can support the deployment of Transformer quantised models. This dissertation first introduces the structure, data flow, and main workflow of the system, and then presents the main functions and interface signals of the matrix multiplication module. The hardware accelerator system based on the Group-Vector systolic array is implemented in Verilog HDL for the Transformer model, which contains a large number of matrix multiplication and addition operations. This design reduces the data scheduling requirement of the system, shortens the time of matrix multiplication, andv the power consumption of the main module is only 2.274 W, thereby improving the performance of the hardware system.

Degree

thesis:*
College dc:contributor.school
School of Electrical and Electronic Engineering
Grantor dc:publisher
Nanyang Technological University
Year dc:date.issued
2025

Author and committee

dc:creator, dc:contributor.*
Author dc:creator
  • Zhao, Zhixiong
Advisor dc:contributor.supervisor
  • Kim Tae Hyoung

Subjects

dc:subject × 1

Rights

Language dc:language.iso
en

Identifiers

dc:identifier.*
Handle dc:identifier.uri
https://hdl.handle.net/10356/212634

Chain of custody

source
Harvested from
Nanyang Technological University
Base URL
dr.ntu.edu.sg/oai/request
Last updated
2026-11-27
Source record
OAI-PMH GetRecord
related terms
citation

Zhao, Zhixiong. An FPGA-based hardware accelerator design for quantitative transformer. Nanyang Technological University, 2025. https://hdl.handle.net/10356/212634