FLAMIA: FLAsh MIcroscaling Attention for Fast and Causally Safe Training on Blackwell
Not on the map. Why?
Abstract (arXiv)
Attention remains a substantial computational cost in Transformer training, particularly at long context lengths. NVIDIA Blackwell GPUs provide high-throughput low-precision matrix multiplication, but exploiting it in attention requires addressing quantization overhead, causal information leakage through shared scales, and numerical inconsistencies between the forward and backward passes. We present FLAMIA, a family of attention kernels for Blackwell with MXFP8 and mixed NVFP4/FP8 training paths. Our design combines token-block scaling that reuses quantized operands across matrix orientations, targeted safeguards against scale-induced leakage, and consistent forward and backward computations. Fused quantization and architecture-specific kernel optimizations reduce overhead, while document-local scaling and workload-aware scheduling support variable-length documents directly in packed layouts without repacking. Across various causal packed-document workloads, the MXFP8 path accelerates the combined forward and backward attention call, including quantization, by factors of 1.10--1.40× on B200 and 1.06--1.42× on B300 relative to the fastest evaluated baseline for each workload. We validate training stability and quality preservation on pretraining Llama-style models. These results show how jointly designing quantization, training numerics, and document scheduling translates low-bit hardware throughput into practical attention acceleration.
Key facts. No citing papers in the map yet (data through 24 Nov 2026). Builds on 26 of its 34 references that are in the map. Submitted 2 Nov 2026.
Builds on
26 of 34 references.
References · 26
- 2017Attention Is All You Needcited by 62,125
- 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,893
- 2023FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioningcited by 2,787
- 2024The FineWeb Datasets: Decanting the Web for the Finest Text Data at Scalecited by 1,356
- 2024FlashAttention-3: Fast and Accurate Attention with Asynchrony and Low-precisioncited by 611
- 2023QuIP: 2-Bit Quantization of Large Language Models With Guaranteescited by 452
- 2024QuIP#: Even Better LLM Quantization with Hadamard Incoherence and Lattice Codebookscited by 429
- 2025FlashInfer: Efficient and Customizable Attention Engine for LLM Inference Servingcited by 330
- 2023Microscaling Data Formats for Deep Learningcited by 195
- 2024SageAttention: Accurate 8-Bit Attention for Plug-and-play Inference Accelerationcited by 191
- 2024SageAttention2: Efficient Attention with Thorough Outlier Smoothing and Per-thread INT4 Quantizationcited by 134
- 2024TorchTitan: One-stop PyTorch native solution for production ready LLM pre-trainingcited by 99
14 more
- 2026FlashAttention-4: Algorithm and Kernel Pipelining Co-Design for Asymmetric Hardware Scalingcited by 99
- 2025SageAttention3: Microscaling FP4 Attention for Inference and An Exploration of 8-Bit Trainingcited by 81
- 2025Bridging the Gap Between Promise and Performance for Microscaling FP4 Quantizationcited by 48
- 2025Quartet: Native FP4 Training Can Be Optimal for Large Language Modelscited by 47
- 2025Training LLMs with MXFP4cited by 44
- 2025SageAttention2++: A More Efficient Implementation of SageAttention2cited by 26
- 2026Quartet II: Accurate LLM Pre-Training in NVFP4 by Improved Unbiased Gradient Estimationcited by 25
- 2026Attn-QAT: 4-Bit Attention With Quantization-Aware Trainingcited by 16
- 2025Why Low-Precision Transformer Training Fails: An Analysis on Flash Attentioncited by 14
- 2026SageBwd: A Trainable Low-bit Attentioncited by 12
- 2026Full-Stack FP4: Stable LLM Pretraining with Quantized Projections, Optimizers, and Attentioncited by 9
- 2026Hardware-Aware FP4 FlashAttention-4cited by 6
- 2026A Fix for Softmax and Cross-Entropycited by 5
- 2026EFQ-Softmax: Exp-Free Quantization for Softmaxcited by 1
Built on by
Not cited yet.