2026-11-03 · 专家 · 计算机视觉 · 机器学习

FLAMIA: FLAsh MIcroscaling Attention for Fast and Causally Safe Training on Blackwell

FLAMIA通过微缩化和结构化设计,实现了在Blackwell GPU上高效且因果安全的Transformer训练。

更新于 2026-11-03。作者:Fedor Velikonivtsev、Mikhail Koltakov、Denis Kuznedelev。

中文摘要

在Transformer训练中,注意力机制仍然是一个重要的计算成本,尤其是在长上下文长度的情况下。NVIDIA Blackwell GPU提供了高吞吐量的低精度矩阵乘法,但在利用这一特性进行注意力计算时,需要解决量化开销、通过共享尺度引起的因果信息泄露以及正向和反向传播中的数值不一致性问题。我们提出了FLAMIA,这是一系列适用于Blackwell的注意力内核,支持MXFP8和混合NVFP4/FP8训练路径。我们的设计结合了token-block缩放,它可以在矩阵的不同方向上重用量化操作数,有针对性地防范由尺度引起的泄露,并确保正向和反向计算的一致性。融合的量化和针对特定架构的内核优化减少了开销,而本地文档缩放和工作负载感知调度支持直接在打包布局中处理可变长度的文档,无需重新打包。在各种因果打包文档工作负载中,MXFP8路径加速了包括量化在内的正向和反向注意力调用,相对于每个工作负载评估的最快基线,B200上加速了1.10至1.40倍,B300上加速了1.06至1.42倍。我们在预训练Llama-style模型上验证了训练稳定性和质量保持。这些结果表明,联合设计量化、训练数值和文档调度如何将低比特硬件吞吐量转化为实际的关注力加速。

英文摘要

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.40times on B200 and 1.06--1.42times 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.

解读

一句话总结

FLAMIA通过微缩化和结构化设计,实现了在Blackwell GPU上高效且因果安全的Transformer训练。

问题1:这篇论文想要解决什么具体问题?

问题2:论文的核心创新点是什么?

问题3:实验结果如何验证了方法的有效性?

问题4:这个研究的实际应用价值是什么?

来源

机器可读索引:llms.txt