mlsanityData to 7 Oct 2026

ConSmax: Hardware-Friendly Alternative Softmax with Learnable Parameters

arXiv 2402.10930 ↗First posted 31 Jan 2024cs.AR cs.AI cs.LGcited by 14

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

  1. 2017Attention Is All You Needcited by 59,932
  2. 2020Language Models are Few-Shot Learnerscited by 32,199
  3. 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,082
  4. 2019DistilBERT, a distilled version of BERT: smaller, faster, cheaper and lightercited by 4,243
  5. 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,611
  6. 2023Mistral 7Bcited by 3,065
  7. 2016Pointer Sentinel Mixture Modelscited by 2,992
  8. 2023FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioningcited by 2,551
  9. 2022GPTQ: Accurate Post-Training Quantization for Generative Pre-trained Transformerscited by 1,838
  10. 2021ViViT: A Video Vision Transformercited by 1,610
  11. 2019Root Mean Square Layer Normalizationcited by 1,425
  12. 2023SparseGPT: Massive Language Models Can Be Accurately Pruned in One-Shotcited by 1,090
17 more
  1. 2023QuIP: 2-Bit Quantization of Large Language Models With Guaranteescited by 397
  2. 2021Post-Training Quantization for Vision Transformercited by 274
  3. 2021I-BERT: Integer-only BERT Quantizationcited by 250
  4. 2020SpAtten: Efficient Sparse Attention Architecture with Cascade Token and Head Pruningcited by 228
  5. 2023TPU v4: An Optically Reconfigurable Supercomputer for Machine Learning with Hardware Support for Embeddingscited by 198
  6. 2020A3: Accelerating Attention Mechanisms in Neural Networks with Approximationcited by 97
  7. 2023FlashDecoding++: Faster Large Language Model Inference on GPUscited by 70
  8. 2021Softermax: Hardware/Software Co-Design of an Efficient Softmax for Transformerscited by 52
  9. 2022DFX: A Low-latency Multi-FPGA Appliance for Accelerating Transformer-based Text Generationcited by 46
  10. 2021FLAT: An Optimized Dataflow for Mitigating Attention Bottleneckscited by 38
  11. 2015An Exploration of Softmax Alternatives Belonging to the Spherical Loss Familycited by 27
  12. 2021Exploring Transformers in Natural Language Generation: GPT, BERT, and XLNetcited by 27
  13. 2021NN-LUT: Neural Approximation of Non-Linear Operations for Efficient Transformer Inferencecited by 25
  14. 2021Mind Mappings: Enabling Efficient Algorithm-Accelerator Mapping Space Searchcited by 24
  15. 2020Exploring Alternatives to Softmax Functioncited by 16
  16. 2022Sparse Attention Acceleration with Synergistic In-Memory Pruning and On-Chip Recomputationcited by 12
  17. 2021Mixed Precision of Quantization of Transformer Language Models for Speech Recognitioncited by 10

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 3; 2025: 5; 2026: 6.

14 papers.

Sort:

By area: