HuggingFace Daily Papers·· 19 小时前
FLAMIA:面向 Blackwell 的快速且因果安全训练的 Flash 微缩放注意力
FLAMIA: FLAsh MIcroscaling Attention for Fast and Causally Safe Training on Blackwell
AI 导读
FLAMIA 是面向 NVIDIA Blackwell 的注意力 kernel 系列,支持 MXFP8 与混合 NVFP4/FP8 训练路径,通过 token-block 缩放复用跨矩阵方向的量化操作数,并防止共享缩放导致的因果信息泄漏。
正文 · 原文
Abstract: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\times$ on B200 and $1.06$--$1.42\times$ 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.
| Subjects: | Machine Learning (cs.LG) |
| Cite as: | arXiv:2611.03344 [cs.LG] |
| (or arXiv:2611.03344v1 [cs.LG] for this version) | |
| https://doi.org/10.48550/arXiv.2611.03344 arXiv-issued DOI via DataCite (pending registration) |
Submission history
From: Denis Kuznedelev [view email]
[v1]
Mon, 2 Nov 2026 16:00:12 UTC (63 KB)
来源:HuggingFace Daily Papers · arxiv.org