mlsanityData to 24 Nov 2026

ZYFA: Speed and Accuracy of FP8 FlashAttention on AMD CDNA4

arXiv 2611.07496 ↗Submitted 5 Nov 2026cs.DC cs.LGcited by 0

Not on the map. Why?

Abstract (arXiv)

Attention is a core building block of frontier models and often dominates compute-bound prefill at long context. FP8 matrix instructions offer twice the peak throughput of BF16, but they accelerate only matrix multiplication, and the softmax between the two matrix multiplications of attention runs on vector units that FP8 does not accelerate. On the AMD Instinct MI355X, the vendor's AITER kernels reach 39% of peak FP8 matrix throughput at 32K tokens, compared with 49% in BF16. Attention is also more numerically sensitive to quantization than feed-forward layers, and unlike NVIDIA's Hopper and Blackwell GPUs, the MI355X does not track the completion of matrix instructions in hardware, so overlapping the softmax with the matrix multiplications depends on instruction order. We present ZYFA, prefill kernels for the MI355X built on three techniques: (1) computing each FP8 probability directly from its score with a multiply-add and an integer conversion instead of an exponential; (2) a ping-pong schedule in which one group of threads computes its softmax while another executes its matrix multiplications; and (3) scaling each block of probabilities up by a power of two before rounding, and normalizing by the sum of the rounded probabilities. On attention inputs captured from three models and timed at sustained clock speeds, ZYFA achieves 1.16-1.76x the throughput of AITER. On the Gaussian inputs of kernel benchmarks at 32K tokens, it achieves 1.26-1.37x at head dimension 128 and 1.99x for DeepSeek-style multi-head latent attention. The sustained clock of the MI355X depends on operand values, so throughput on random inputs does not reliably predict throughput on real model activations. At head dimension 128, ZYFA's numerical error is within a few percent of that of Composable Kernel and Triton and 62-78% lower than that of AITER's. The source code is available at https://github.com/Zyphra/zyfa.

Key facts. No citing papers in the map yet (data through 24 Nov 2026). Builds on 25 of its 37 references that are in the map. Submitted 5 Nov 2026.

Builds on

25 of 37 references.

References · 25

  1. 2025Qwen3 Technical Reportcited by 9,994
  2. 2023Mamba: Linear-Time Sequence Modeling with Selective State Spacescited by 5,111
  3. 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,893
  4. 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,871
  5. 2023Mistral 7Bcited by 3,489
  6. 2016Pointer Sentinel Mixture Modelscited by 3,344
  7. 2023FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioningcited by 2,787
  8. 2022SmoothQuant: Accurate and Efficient Post-Training Quantization for Large Language Modelscited by 1,487
  9. 2024DeepSeek-V2: A Strong, Economical, and Efficient Mixture-of-Experts Language Modelcited by 1,241
  10. 2019Compressive Transformers for Long-Range Sequence Modellingcited by 798
  11. 2024QuaRot: Outlier-Free 4-Bit Inference in Rotated LLMscited by 717
  12. 2024FlashAttention-3: Fast and Accurate Attention with Asynchrony and Low-precisioncited by 611
13 more
  1. 2019HAWQ: Hessian AWare Quantization of Neural Networks with Mixed-Precisioncited by 425
  2. 2023SqueezeLLM: Dense-and-Sparse Quantizationcited by 330
  3. 2021I-BERT: Integer-only BERT Quantizationcited by 264
  4. 2022FP8 Formats for Deep Learningcited by 244
  5. 2023Microscaling Data Formats for Deep Learningcited by 195
  6. 2024SageAttention: Accurate 8-Bit Attention for Plug-and-play Inference Accelerationcited by 191
  7. 2024SageAttention2: Efficient Attention with Thorough Outlier Smoothing and Per-thread INT4 Quantizationcited by 134
  8. 2026FlashAttention-4: Algorithm and Kernel Pipelining Co-Design for Asymmetric Hardware Scalingcited by 99
  9. 2025SageAttention3: Microscaling FP4 Attention for Inference and An Exploration of 8-Bit Trainingcited by 81
  10. 2021Softermax: Hardware/Software Co-Design of an Efficient Softmax for Transformerscited by 57
  11. 2024ThunderKittens: Simple, Fast, and Adorable AI Kernelscited by 43
  12. 2025HipKittens: Fast and Furious AMD Kernelscited by 4
  13. 2024Input-Dependent Power Usage in GPUscited by 3

Built on by

Not cited yet.