Litcius/Paper detail

A high speed reconfigurable architecture for softmax and GELU in vision transformer

Tianyang Li, Fan Zhang, Guangwei Xie, Xitian Fan, Yanzhao Gao, Mingqian Sun

2023Electronics Letters17 citationsDOIOpen Access PDF

Abstract

Abstract Transformers have been widely used in various computer vision applications. Compared to traditional convolutional neural networks (CNNs), transformer's inference includes plenty of non‐linear operations, such as softmax and Gaussian error linear units (GELU). As the scale of transformers grows, an efficient hardware implementation of these operations is significant. However, the current works of computer vision neural network accelerators focus on CNN and less attention is paid to transformer. In addition, most current FPGA‐based softmax or GELU accelerators are not designed for vision transformer (ViT). To solve this problem, this work proposes a high speed reconfigurable accelerator. The architecture can support both softmax and GELU functions in ViT by reconfiguring the data path. This architecture on Xilinx XCVU37P is implemented through mathematical transformation and hardware optimization design, and achieve the performance of 102.4 Giga bits per second (Gbps) at 200 MHz. Experimental results show that the architecture achieves a very small accuracy loss in the ViT's inference by using fixed‐point 16‐bit quantization. Compared with existing accelerators, the design has greater throughput and area efficiency.

Topics & Concepts

Softmax functionField-programmable gate arrayConvolutional neural networkComputer scienceTransformerInferenceArtificial neural networkComputer hardwareComputer engineeringArtificial intelligenceEngineeringElectrical engineeringVoltageCCD and CMOS Imaging SensorsAdvanced Neural Network ApplicationsAdvanced Memory and Neural Computing