arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2604.03950cs.LGcs.AI
收藏

对角 tiled 混合精度注意力机制用于高效低比特 MXFP 推理

Diagonal-Tiled Mixed-Precision Attention for Efficient Low-Bit MXFP Inference

State Key Laboratory of Complex & Critical Software Environment (SKLCCSE), Beihang University(北京航空航天大学复杂关键软件环境国家重点实验室);School of Computer Science and Engineering, Beihang University(北京航空航天大学计算机科学与工程学院);School of Artificial Intelligence, Beihang University(北京航空航天大学人工智能学院);Beijing Jiaotong University(北京交通大学)

Yifu Ding, Xinhao Zhang, Jinyang Guo

AI总结:

本文提出了一种低比特混合精度注意力核,利用MXFP数据格式在下一代GPU架构上实现高效低比特MXFP推理,通过融合核和硬件级并行性提升推理速度而不牺牲模型性能。

摘要:

基于Transformer的大型语言模型(LLMs)在广泛的实际任务中表现出色,但其推理成本仍然过高,因为注意力的二次复杂性和高精度运算的内存带宽限制。本文提出了一种低比特混合精度注意力核,利用微缩浮点(MXFP)数据格式,利用下一代GPU架构的计算能力。我们的对角 tiled 混合精度注意力(DMA)在分块级别采用两种低比特计算,并通过Triton实现精细的融合核,利用硬件级并行性和内存效率,实现快速高效的推理,不牺牲模型性能。在NVIDIA B200 GPU上的广泛实证评估表明,我们的核在生成质量上保持稳定,同时通过核融合实现了显著的加速。我们发布了代码在https://github.com/yifu-ding/MP-Sparse-Attn。

英文摘要:

Transformer-based large language models (LLMs) have demonstrated remarkable performance across a wide range of real-world tasks, but their inference cost remains prohibitively high due to the quadratic complexity of attention and the memory bandwidth limitations of high-precision operations. In this work, we present a low-bit mixed-precision attention kernel using the microscaling floating-point (MXFP) data format, utilizing the computing capability on next-generation GPU architectures. Our Diagonal-Tiled Mixed-Precision Attention (DMA) incorporates two kinds of low-bit computation at the tiling-level, and is a delicate fused kernel implemented using Triton, exploiting hardware-level parallelism and memory efficiency to enable fast and efficient inference without compromising model performance. Extensive empirical evaluations on NVIDIA B200 GPUs show that our kernel maintains generation quality with negligible degradation, and meanwhile achieves significant speedup by kernel fusion. We release our code at https://github.com/yifu-ding/MP-Sparse-Attn.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑