mlsanityData to 7 Oct 2026

FLASH-D: FlashAttention with Hidden Softmax Division

arXiv 2505.14201 ↗First posted 20 May 2025cs.LG cs.AI cs.ARcited by 2

Not on the map. Why?

Abstract (arXiv)

The transformer's attention mechanism has revolutionized AI and machine learning, with its efficient computation being crucial to its performance. However, calculating attention involves matrix operations interspersed with softmax rescaling, which inherently slows down computation and requires processing the entire input sequence. Building on online softmax computation, FlashAttention integrates softmax calculation with matrix arithmetic, enabling tiled computation independent of sequence length. While optimized for GPUs, FlashAttention's simplicity makes it amenable to direct hardware acceleration. This work re-evaluates the core FlashAttention kernel, presenting FLASH-D a mathematically equivalent, yet simplified, formulation that achieves: (a) hiding softmax division within other non-linear function evaluations; (b) inherently numerically stable computation of exponentials, eliminating the need for maximum value subtraction; and (c) a reduction in computational cost without introducing numerical approximations to the FlashAttention kernel. Importantly, the essential FlashAttention properties that facilitate efficient tiled implementation are fully preserved. Hardware implementation results at 28nm demonstrate that this proposed formulation achieves a 22.8% reduction in area and a 20.3% reduction in power, on average, compared to state-of-the-art parallel hardware architectures without any performance penalty.

Key facts. Cited by 2 papers in the map (data through 7 Oct 2026). Builds on 21 of its 35 references that are in the map. First posted on arXiv 20 May 2025.

Builds on

21 of 35 references.

References · 21

  1. 2017Attention Is All You Needcited by 59,932
  2. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
  3. 2025DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement Learningcited by 6,146
  4. 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,611
  5. 2020Longformer: The Long-Document Transformercited by 3,362
  6. 2023FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioningcited by 2,551
  7. 2020Transformers are RNNs: Fast Autoregressive Transformers with Linear Attentioncited by 1,979
  8. 2019Generating Long Sequences with Sparse Transformerscited by 1,523
  9. 2019A Study of BFLOAT16 for Deep Learning Trainingcited by 227
  10. 2022FP8 Formats for Deep Learningcited by 187
  11. 2018Online normalizer calculation for softmaxcited by 154
  12. 2021Self-attention Does Not Need O(n2) Memorycited by 152
9 more
  1. 2020A3: Accelerating Attention Mechanisms in Neural Networks with Approximationcited by 97
  2. 2020EdgeBERT: Sentence-Level Energy Optimizations for Latency-Aware Multi-Task NLP Inferencecited by 69
  3. 2023FasterViT: Fast Vision Transformers with Hierarchical Attentioncited by 65
  4. 2020Hardware Accelerator for Multi-Head Attention and Position-Wise Feed-Forward in the Transformercited by 42
  5. 2023PromptBench: A Unified Library for Evaluation of Large Language Modelscited by 42
  6. 2023X-Former: In-Memory Acceleration of Transformerscited by 25
  7. 2024ConSmax: Hardware-Friendly Alternative Softmax with Learnable Parameterscited by 14
  8. 2024Low-rank Attention Side-Tuning for Parameter-Efficient Fine-Tuningcited by 7
  9. 2024Online Alignment and Addition in Multi-Term Floating-Point Adderscited by 2

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2025: 1; 2026: 1.

2 papers.