Sarvam AI fixes MXFP8 causal attention leakage, gaining 4.9% training throughput

dejavucoder · x · 2026-12-02

Sarvam AI published a research article on a kernel that keeps MXFP8 attention causal during training and prefill. MXFP8 shares quantization scales across 32-token blocks, so a future token can alter how earlier tokens are represented—breaking causality. They show this affects released Qwen3 checkpoints and that MXFP8 outputs shift when a prefix changes while BF16 doesn't.

Their kernel uses token-local scales and folds the boundary value product into attention weights, retaining native MXFP8 matrix products. On Qwen3-4B-Base at 32K context, sub-sequence prefill disagreement drops from 0.0416% to 0.021% (BF16: 0.015%); end-to-end training throughput improves 4.9% vs BF16 with 5.2% lower peak memory; single-request decode throughput improves 3.8–9.9% over vLLM FP8 attention.

Related event: Sarvam AI Fixes MXFP8 Causality Bug, Boosting Throughput 4.9%(2 posts)→

Original post →

More from Infra

Infra channel →