mlsanityData to 14 Oct 2026

Vectorized FlashAttention with Low-cost Exponential Computation in RISC-V Vector Processors

arXiv 2510.06834 ↗First posted 8 Oct 2025cs.LG cs.DC cs.PFcited by 0

Not on the map. Why?

Abstract (arXiv)

Attention is a core operation in numerous machine learning and artificial intelligence models. This work focuses on the acceleration of attention kernel using FlashAttention algorithm, in vector processors, particularly those based on the RISC-V instruction set architecture (ISA). This work represents the first effort to vectorize FlashAttention, minimizing scalar code and simplifying the computational complexity of evaluating exponentials needed by softmax used in attention. By utilizing a low-cost approximation for exponentials in floating-point arithmetic, we reduce the cost of computing the exponential function without the need to extend baseline vector ISA with new custom instructions. Also, appropriate tiling strategies are explored with the goal to improve memory locality. Experimental results highlight the scalability of our approach, demonstrating significant performance gains with the vectorized implementations when processing attention layers in practical applications.

Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 26 of its 42 references that are in the map. First posted on arXiv 8 Oct 2025.

Builds on

26 of 42 references.

References · 26

  1. 2017Attention Is All You Needcited by 60,361
  2. 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,599
  3. 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,899
  4. 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,673
  5. 2020Longformer: The Long-Document Transformercited by 3,413
  6. 2023FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioningcited by 2,598
  7. 2020Transformers are RNNs: Fast Autoregressive Transformers with Linear Attentioncited by 2,022
  8. 2019Generating Long Sequences with Sparse Transformerscited by 1,546
  9. 2020Linformer: Self-Attention with Linear Complexitycited by 1,474
  10. 2024FlashAttention-3: Fast and Accurate Attention with Asynchrony and Low-precisioncited by 519
  11. 2022Transformers in Time Series: A Surveycited by 497
  12. 2021I-BERT: Integer-only BERT Quantizationcited by 255
14 more
  1. 2018Online normalizer calculation for softmaxcited by 162
  2. 2021Self-attention Does Not Need O(n2) Memorycited by 154
  3. 2020A3: Accelerating Attention Mechanisms in Neural Networks with Approximationcited by 101
  4. 2021Softermax: Hardware/Software Co-Design of an Efficient Softmax for Transformerscited by 54
  5. 2023PromptBench: A Unified Library for Evaluation of Large Language Modelscited by 44
  6. 2020Hardware Accelerator for Multi-Head Attention and Position-Wise Feed-Forward in the Transformercited by 43
  7. 2023X-Former: In-Memory Acceleration of Transformerscited by 25
  8. 2023SwiftTron: An Efficient Hardware Accelerator for Quantized Transformerscited by 18
  9. 2020The gem5 Simulator: Version 20.0+cited by 14
  10. 2022Dynamic N:M Fine-grained Structured Sparse Attention Mechanismcited by 14
  11. 2024PEANO-ViT: Power-Efficient Approximations of Non-Linearities in Vision Transformerscited by 13
  12. 2025Low-Cost FlashAttention with Fused Exponential and Multiplication Hardware Operatorscited by 5
  13. 2025VEXP: A Low-Cost RISC-V ISA Extension for Accelerated Softmax Computation in Transformerscited by 4
  14. 2021A RISC-V Simulator and Benchmark Suite for Designing and Evaluating Vector Architecturescited by 1

Built on by

Not cited yet.