TEA-S: A Tiny and Efficient Architecture for PLAC-Based Softmax in Transformers
- 10 April 2023
- journal article
- research article
- Published by Institute of Electrical and Electronics Engineers (IEEE) in IEEE Transactions on Circuits and Systems II: Express Briefs
- Vol. 70 (9) , 3594-3598
Abstract
With the popularity of Transformer neural networks, it is inevitable for hardware accelerators to perform nonlinear computation mainly based on the softmax operation. However, a better compromise between the algorithm performance and hardware overhead is always a constant challenge. Hence, this brief advances a tiny and efficient architecture named TEA-S to implement the softmax function with the universal approximation scheme based on Piecewise Linear Approximation Computation (PLAC). With the first co-optimization of calculation and memory, TEA-S can better achieve the design goals of the tiny area and high efficiency. The implementation results show that the peak efficiency of processing 8-bit quantized data will be 487.51 Gps/(mm2∙mW) with the tiny area of 3052.43 μm2 at the frequency of 0.5 GHz under 90-nm CMOS technology. Moreover, TEA-S can offer the universal solution to any lengths of input sequences, providing negligible accuracy loss in Transformers compared to the quantized baselines.Keywords
This publication has 14 references indexed in Scilit:
- Design and Implementation of an Approximate Softmax Layer for Deep Neural Networks2020
- PLAC: Piecewise Linear Approximation Computation for All Nonlinear Unary FunctionsIEEE Transactions on Very Large Scale Integration (VLSI) Systems, 2020
- Efficient Precision-Adjustable Architecture for Softmax Function in Deep LearningIEEE Transactions on Circuits and Systems II: Express Briefs, 2020
- Transformers: State-of-the-Art Natural Language Processing2020
- Efficient Softmax Hardware Architecture for Deep Neural Networks2019
- Efficient FPGA Implementation of Softmax Function for DNN Applications2018
- A High-Speed and Low-Complexity Architecture for Softmax Function in Deep Learning2018
- In-Datacenter Performance Analysis of a Tensor Processing Unit2017
- Efficient hardware architecture of softmax layer in deep neural network2016
- SQuAD: 100,000+ Questions for Machine Comprehension of Text2016