Causal MXFP8 attention kernel stops future tokens altering earlier predictions
Original title: A Masked Future Is Not a Hidden Future: Keeping MXFP8 Attention Causal
On Qwen3-4B-Base at 32K, next-token disagreement falls from 0.416% to 0.021%, near the BF16 reference of 0.015%.
The authors say stock Transformer Engine MXFP8 attention can let a masked future token change how an earlier value is rounded because quantization scales are shared across tokens. Their kernel uses token-local scales inside mixed value blocks and folds them into attention weights, keeping native MXFP8 forward products. It supports a causal dequantized-input backward and an MXFP8 KV cache. They report the causality fix on released language models, plus modest training and decode speedups versus BF16 and vLLM FP8.
Unconfirmed: The causality break and speedups are the authors' measurements; independent reproduction is not reported.
- MXFP8 matrix products target NVIDIA Blackwell GPUs.
- Qwen3-4B training at 32K gained 4.9% throughput and cut peak memory 5.2% versus BF16.
- Single-request Qwen3-4B decode rose 3.8–9.9% over vLLM FP8 at 4K–32K.
- Qwen3-14B throughput was broadly comparable.
- The kernel retains native MXFP8 for both forward matrix products.
- Vendors
- NVIDIA
- Products
- Transformer EnginevLLMBlackwell
- AI models
- Qwen3-4B-BaseQwen3-4BQwen3-14B
From the original article
1 min read at arxiv.orgCausal attention must prevent future tokens from influencing earlier predictions, including during parallel training and prompt prefill. Its cost grows quadratically with sequence length, making lower-precision arithmetic an attractive way to accelerate these computations. MXFP8 enables fast eight-bit matrix products on NVIDIA Blackwell GPUs, but sharing quantization scales across tokens can break causality.
By Pushkar Patel · arxiv.org
A short excerpt; the article and its images belong to the publisher. Summary, key facts and assessment above are AI-written from the article and can be wrong.