ConSmax: Hardware-Friendly Alternative Softmax with Learnable Parameters
Not on the map. Why?
Abstract (arXiv)
The self-attention mechanism distinguishes transformer-based large language models (LLMs) apart from convolutional and recurrent neural networks. Despite the performance improvement, achieving real-time LLM inference on silicon remains challenging due to the extensive use of Softmax in self-attention. In addition to the non-linearity, the low arithmetic intensity significantly limits processing parallelism, especially when working with longer contexts. To address this challenge, we propose Constant Softmax (ConSmax), a software-hardware co-design that serves as an efficient alternative to Softmax. ConSmax utilizes differentiable normalization parameters to eliminate the need for maximum searching and denominator summation in Softmax. This approach enables extensive parallelization while still executing the essential functions of Softmax. Moreover, a scalable ConSmax hardware design with a bitwidth-split look-up table (LUT) can achieve lossless non-linear operations and support mixed-precision computing. Experimental results show that ConSmax achieves a minuscule power consumption of 0.2mW and an area of 0.0008mm^2 at 1250MHz working frequency in 16nm FinFET technology. For open-source contribution, we further implement our design with the OpenROAD toolchain under SkyWater's 130nm CMOS technology. The corresponding power is 2.69mW and the area is 0.007mm^2. ConSmax achieves 3.35x power savings and 2.75x area savings in 16nm technology, and 3.15x power savings and 4.14x area savings with the open-source EDA toolchain. In the meantime, it also maintains comparable accuracy on the GPT-2 model and the WikiText103 dataset. The project is available at https://github.com/ReaLLMASIC/ConSmax
Key facts. Cited by 14 papers in the map (data through 7 Oct 2026). Builds on 29 of its 43 references that are in the map. First posted on arXiv 31 Jan 2024.
Builds on
29 of 43 references.
References · 29
- 2017Attention Is All You Needcited by 59,932
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,082
- 2019DistilBERT, a distilled version of BERT: smaller, faster, cheaper and lightercited by 4,243
- 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,611
- 2023Mistral 7Bcited by 3,065
- 2016Pointer Sentinel Mixture Modelscited by 2,992
- 2023FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioningcited by 2,551
- 2022GPTQ: Accurate Post-Training Quantization for Generative Pre-trained Transformerscited by 1,838
- 2021ViViT: A Video Vision Transformercited by 1,610
- 2019Root Mean Square Layer Normalizationcited by 1,425
- 2023SparseGPT: Massive Language Models Can Be Accurately Pruned in One-Shotcited by 1,090
17 more
- 2023QuIP: 2-Bit Quantization of Large Language Models With Guaranteescited by 397
- 2021Post-Training Quantization for Vision Transformercited by 274
- 2021I-BERT: Integer-only BERT Quantizationcited by 250
- 2020SpAtten: Efficient Sparse Attention Architecture with Cascade Token and Head Pruningcited by 228
- 2023TPU v4: An Optically Reconfigurable Supercomputer for Machine Learning with Hardware Support for Embeddingscited by 198
- 2020A3: Accelerating Attention Mechanisms in Neural Networks with Approximationcited by 97
- 2023FlashDecoding++: Faster Large Language Model Inference on GPUscited by 70
- 2021Softermax: Hardware/Software Co-Design of an Efficient Softmax for Transformerscited by 52
- 2022DFX: A Low-latency Multi-FPGA Appliance for Accelerating Transformer-based Text Generationcited by 46
- 2021FLAT: An Optimized Dataflow for Mitigating Attention Bottleneckscited by 38
- 2015An Exploration of Softmax Alternatives Belonging to the Spherical Loss Familycited by 27
- 2021Exploring Transformers in Natural Language Generation: GPT, BERT, and XLNetcited by 27
- 2021NN-LUT: Neural Approximation of Non-Linear Operations for Efficient Transformer Inferencecited by 25
- 2021Mind Mappings: Enabling Efficient Algorithm-Accelerator Mapping Space Searchcited by 24
- 2020Exploring Alternatives to Softmax Functioncited by 16
- 2022Sparse Attention Acceleration with Synergistic In-Memory Pruning and On-Chip Recomputationcited by 12
- 2021Mixed Precision of Quantization of Transformer Language Models for Speech Recognitioncited by 10
Built on by
Citing papers per year: 2024: 3; 2025: 5; 2026: 6.
14 papers.
Sort:
By area:
- 2024Large Language Model Inference Acceleration: A Comprehensive Hardware Perspectivecited by 36
- 2024More Expressive Attention with Negative Weightscited by 9
- 2025VEXP: A Low-Cost RISC-V ISA Extension for Accelerated Softmax Computation in Transformerscited by 4
- 2024SoftmAP: Software-Hardware Co-design for Integer-Only Softmax on Associative Processorscited by 3
- 2025UniAttn: Reducing Inference Costs via Softmax Unification for Post-Training LLMscited by 3
- 2025IntAttention: A Fully Integer Attention Pipeline for Efficient Edge Inferencecited by 3
- 2025FLASH-D: FlashAttention with Hidden Softmax Divisioncited by 2
- 2026TriCCOT: Tri-part Convolutional Conformal Transformer for Onboard Space Object Detectioncited by 2
- 2025PIM-LLM: A High-Throughput Hybrid PIM Architecture for 1-bit LLMscited by 1
- 2026Taming the Exponential: A Fast Softmax Surrogate for Integer-Native Edge Inferencecited by 0
- 2026Agentic Anomaly Detection with ORCA-Style Dynamic Inductive Bias Adaptation in Multimodal Wearable Time Series Datacited by 0
- 2026Approximating Softmax in Pretrained LLMs: Model Sensitivity and Kernel Accelerationcited by 0
2 more
- 2026Latency and accuracy tradeoffs in Spiking Neural Networks28 Sep 2026
- 2026Pretraining Transformers with Quantized Softmax in Attention27 Sep 2026
- 2026Approximating Softmax in Pretrained LLMs: Model Sensitivity and Kernel Acceleration27 Sep 2026
- 2026TriCCOT: Tri-part Convolutional Conformal Transformer for Onboard Space Object Detection8 Sep 2026
- 2026Agentic Anomaly Detection with ORCA-Style Dynamic Inductive Bias Adaptation in Multimodal Wearable Time Series Data9 Aug 2026
- 2026Taming the Exponential: A Fast Softmax Surrogate for Integer-Native Edge Inference2 Apr 2026
- 2025IntAttention: A Fully Integer Attention Pipeline for Efficient Edge Inference26 Nov 2025
- 2025FLASH-D: FlashAttention with Hidden Softmax Division20 May 2025
- 2025VEXP: A Low-Cost RISC-V ISA Extension for Accelerated Softmax Computation in Transformers15 Apr 2025
- 2025PIM-LLM: A High-Throughput Hybrid PIM Architecture for 1-bit LLMs31 Mar 2025
- 2025UniAttn: Reducing Inference Costs via Softmax Unification for Post-Training LLMs1 Feb 2025
- 2024SoftmAP: Software-Hardware Co-design for Integer-Only Softmax on Associative Processors26 Nov 2024
2 more
- 2024More Expressive Attention with Negative Weightscited by 9
- 2025VEXP: A Low-Cost RISC-V ISA Extension for Accelerated Softmax Computation in Transformerscited by 4
- 2024SoftmAP: Software-Hardware Co-design for Integer-Only Softmax on Associative Processorscited by 3
- 2025UniAttn: Reducing Inference Costs via Softmax Unification for Post-Training LLMscited by 3
- 2025IntAttention: A Fully Integer Attention Pipeline for Efficient Edge Inferencecited by 3
- 2025FLASH-D: FlashAttention with Hidden Softmax Divisioncited by 2
- 2026TriCCOT: Tri-part Convolutional Conformal Transformer for Onboard Space Object Detectioncited by 2
- 2025PIM-LLM: A High-Throughput Hybrid PIM Architecture for 1-bit LLMscited by 1
- 2026Taming the Exponential: A Fast Softmax Surrogate for Integer-Native Edge Inferencecited by 0
- 2026Agentic Anomaly Detection with ORCA-Style Dynamic Inductive Bias Adaptation in Multimodal Wearable Time Series Datacited by 0
- 2026Approximating Softmax in Pretrained LLMs: Model Sensitivity and Kernel Accelerationcited by 0
- 2026Pretraining Transformers with Quantized Softmax in Attentioncited by 0
12 most cited of 13 All 13 (JSON)
- 2026Latency and accuracy tradeoffs in Spiking Neural Networks28 Sep 2026
- 2026Pretraining Transformers with Quantized Softmax in Attention27 Sep 2026
- 2026Approximating Softmax in Pretrained LLMs: Model Sensitivity and Kernel Acceleration27 Sep 2026
- 2026TriCCOT: Tri-part Convolutional Conformal Transformer for Onboard Space Object Detection8 Sep 2026
- 2026Agentic Anomaly Detection with ORCA-Style Dynamic Inductive Bias Adaptation in Multimodal Wearable Time Series Data9 Aug 2026
- 2026Taming the Exponential: A Fast Softmax Surrogate for Integer-Native Edge Inference2 Apr 2026
- 2025IntAttention: A Fully Integer Attention Pipeline for Efficient Edge Inference26 Nov 2025
- 2025FLASH-D: FlashAttention with Hidden Softmax Division20 May 2025
- 2025VEXP: A Low-Cost RISC-V ISA Extension for Accelerated Softmax Computation in Transformers15 Apr 2025
- 2025PIM-LLM: A High-Throughput Hybrid PIM Architecture for 1-bit LLMs31 Mar 2025
- 2025UniAttn: Reducing Inference Costs via Softmax Unification for Post-Training LLMs1 Feb 2025
- 2024SoftmAP: Software-Hardware Co-design for Integer-Only Softmax on Associative Processors26 Nov 2024
12 newest of 13 All 13 (JSON)