Papers
arxiv:2611.36044

A Masked Future Is Not a Hidden Future: Keeping MXFP8 Attention Causal

Published on Nov 26
Authors:
,

Abstract

Causal 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. In Transformer Engine's stock MXFP8 attention, a masked future token can change how an earlier value is rounded and alter an earlier prediction. We demonstrate this dependency in released language models and present a causal attention kernel that removes it. Within value blocks containing both visible and future tokens, our kernel uses token-local scales and folds them into the corresponding attention weights, retaining native MXFP8 for both forward matrix products. We support training with a causal dequantized-input backward and inference with an MXFP8 KV cache. On Qwen3-4B-Base at 32K context, our kernel reduces full-sequence versus prefix disagreement on the most likely next token from 0.416% to 0.021%, close to the BF16 reference of 0.015%. In end-to-end Qwen3-4B training at 32K, our recipe improves throughput by 4.9% and reduces peak memory by 5.2% relative to BF16. For single-request inference, it improves Qwen3-4B decode throughput by 3.8-9.9% over vLLM with FP8 attention and an FP8 KV cache at 4K-32K context, with broadly comparable throughput on Qwen3-14B.

Community

Sign up or log in to comment

Get this paper in your agent:

hf papers read 2611.36044
Don't have the latest CLI?
curl -LsSf https://hf.co/cli/install.sh | bash

Models citing this paper 0

No model linking this paper

Cite arxiv.org/abs/2611.36044 in a model README.md to link it from this page.

Datasets citing this paper 0

No dataset linking this paper

Cite arxiv.org/abs/2611.36044 in a dataset README.md to link it from this page.

Spaces citing this paper 0

No Space linking this paper

Cite arxiv.org/abs/2611.36044 in a Space README.md to link it from this page.

Collections including this paper 0

No Collection including this paper

Add this paper to a collection to link it from this page.