Reusing Softmax Hardware Unit for GELU Computation in Transformers
Not on the map. Why?
Abstract (arXiv)
Transformers have improved drastically the performance of natural language processing (NLP) and computer vision applications. The computation of transformers involves matrix multiplications and non-linear activation functions such as softmax and GELU (Gaussion Error Linear Unit) that are accelerated directly in hardware. Currently, function evaluation is done separately for each function and rarely allows for hardware reuse. To mitigate this problem, in this work, we map the computation of GELU to a softmax operator. In this way, the efficient hardware units designed already for softmax can be reused for computing GELU as well. Computation of GELU can enjoy the inherent vectorized nature of softmax and produce in parallel multiple GELU outcomes. Experimental results show that computing GELU via a pre-existing and incrementally modified softmax hardware unit (a) does not reduce the accuracy of representative NLP applications and (b) allows the reduction of the overall hardware area and power by 6.1% and 11.9%, respectively, on average.
Key facts. Cited by 3 papers in the map (data through 14 Oct 2026). Builds on 15 of its 29 references that are in the map. First posted on arXiv 15 Feb 2024.
Builds on
15 of 29 references.
References · 15
- 2017Attention Is All You Needcited by 60,361
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,599
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 14,132
- 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,899
- 2016Gaussian Error Linear Units (GELUs)cited by 3,502
- 2019ALBERT: A Lite BERT for Self-supervised Learning of Language Representationscited by 2,790
- 2017A Broad-Coverage Challenge Corpus for Sentence Understanding through Inferencecited by 2,682
- 2018Neural Network Acceptability Judgmentscited by 958
- 2021I-BERT: Integer-only BERT Quantizationcited by 255
- 2018Online normalizer calculation for softmaxcited by 162
3 more
Built on by
Citing papers per year: 2025: 1; 2026: 2.
3 papers.
- 2025QUARK: Quantization-Enabled Circuit Sharing for Transformer Acceleration by Exploiting Common Patterns in Nonlinear Operationscited by 11
- 2026DAPA: Distribution Aware Piecewise Activation Functions for On-Device Transformer Inference and Trainingcited by 0
- 2026MIVE: A Minimalist Integer Vector Engine for Softmax LayerNorm and RMSNorm Accelerationcited by 0
- 2026MIVE: A Minimalist Integer Vector Engine for Softmax LayerNorm and RMSNorm Acceleration16 Jun 2026
- 2026DAPA: Distribution Aware Piecewise Activation Functions for On-Device Transformer Inference and Training19 Mar 2026
- 2025QUARK: Quantization-Enabled Circuit Sharing for Transformer Acceleration by Exploiting Common Patterns in Nonlinear Operations10 Nov 2025