ZYFA: Speed and Accuracy of FP8 FlashAttention on AMD CDNA4
Quentin AnthonyGanesh BikshandiPraneeth MedepalliStephen Ebert
Quentin Anthony
Ganesh Bikshandi
Praneeth Medepalli
Stephen Ebert
+4
ZYFA presents FP8 prefill attention kernels for the AMD MI355X, addressing that FP8 accelerates only matrix multiplication, not softmax, and that the hardware lacks tracking of matrix-instruction completion. It combines per-score FP8 probability computation via multiply-add and integer conversion, a ping-pong schedule overlapping softmax with matrix multiplications, and power-of-two scaling before rounding. ZYFA achieves 1.16-1.76x AITER's throughput on real activations and up to 1.99x on benchmarks, with reduced numerical error at head dimension 128.

arXiv ·
· November 5, 2026