Litcius/Paper detail

TEA-S: A Tiny and Efficient Architecture for PLAC-Based Softmax in Transformers

Zhengyu Mei, Hongxi Dong, Yuxuan Wang, Hongbing Pan

2023IEEE Transactions on Circuits & Systems II Express Briefs14 citationsDOI

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/(mm <inline-formula xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink"> <tex-math notation="LaTeX">$^{{2}}{\cdot }$ </tex-math></inline-formula> mW) with the tiny area of <inline-formula xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink"> <tex-math notation="LaTeX">$3052.43~{\mu }{\mathrm {m}}^{2}$ </tex-math></inline-formula> 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.

Topics & Concepts

Softmax functionComputationTransformerComputer scienceMathematicsAlgorithmDiscrete mathematicsArithmeticArtificial neural networkArtificial intelligenceElectrical engineeringEngineeringVoltageNeural Networks and Reservoir ComputingNeural Networks and ApplicationsFerroelectric and Negative Capacitance Devices