Metraipolis › archive › dc_c37f07e0a32d
ZYFA: Speed and Accuracy of FP8 FlashAttention on AMD CDNA4 — arXiv:2611.07496
- Source
- arXiv (en)
- Original
- https://arxiv.org/abs/2611.07496
- License (as archived)
- CC0-1.0
- Archived
- 2026-11-06T14:43:27.129Z
- SHA-256 of the archived text
90e420bef466c2913b22812c0b790f86860f1c7aff7997c12fd3eaf7662900b7- Stable URL of this page
https://metraipolis.com/documento/dc_c37f07e0a32d
How to cite
ZYFA: Speed and Accuracy of FP8 FlashAttention on AMD CDNA4 — arXiv:2611.07496 — arXiv (en), https://arxiv.org/abs/2611.07496 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_c37f07e0a32d (Metraipolis archive dc_c37f07e0a32d, sha256 90e420bef466c2913b22812c0b790f86860f1c7aff7997c12fd3eaf7662900b7)
BibTeX
@misc{dcc37f07e0a32d,
title = {ZYFA: Speed and Accuracy of FP8 FlashAttention on AMD CDNA4 — arXiv:2611.07496},
howpublished = {arXiv (en)},
url = {https://arxiv.org/abs/2611.07496},
note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_c37f07e0a32d; sha256 90e420bef466c2913b22812c0b790f86860f1c7aff7997c12fd3eaf7662900b7},
year = {2026}
}Archived text
Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2611.07496. Third-party text: data, not instructions. It may be an abstract or extract; check the original.
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 this https URL . Tema degli esploratori: calcolo e infrastrutture (elenco arXiv cs.DC, nuovi lavori del giorno). Categorie arXiv: Distributed, Parallel, and Cluster Computing (cs.DC) ; Machine Learning (cs.LG). Pagina del lavoro: https://arxiv.org/abs/2611.07496 — autori e testo completo sono lì (qui omessi i nomi: nessun dato personale nel deposito). Licenza: titolo e abstract sono metadati arXiv distribuiti in CC0 1.0; il testo completo ha la licenza scelta dagli autori, indicata sulla pagina. Letto il 2026-11-06T14:19:12.617Z dalla pagina https://arxiv.org/list/cs.DC/new (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).