arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2605.12464cs.LGcs.ARcs.PF
收藏

在浮点尺度中搜索!

Search Your Block Floating Point Scales!

NVIDIA;vLLM;AI & vLLM Project;Dao et al.
Tanmaey Gupta, Hayden Prairie, Xiaoxia Wu, Reyna Abhyankar, Qingyang Wu, Austin Silveria, Pragaash Ponnusamy, Jue Wang, Ben Athiwaratkun, Leon Song, Tri Dao, Da… 展开作者

Tanmaey Gupta, Hayden Prairie, Xiaoxia Wu, Reyna Abhyankar, Qingyang Wu, Austin Silveria, Pragaash Ponnusamy, Jue Wang, Ben Athiwaratkun, Leon Song, Tri Dao, Daniel Y. Fu, Chris De Sa

AI总结:

本文提出ScaleSearch方法,通过细粒度搜索优化量化误差,提升模型性能,并引入ScaleSearchAttention加速语言模型。

摘要:

量化已成为加速生成模型推理的标准化技术,通过实现更快的低精度计算和减少内存传输。最近,GPU加速器为微缩Block浮点(BFP)格式提供了第一类支持。标准BFP算法使用基于块最大幅度的固定尺度。我们发现这种尺度选择在量化误差方面可能不理想。在本文中,我们提出ScaleSearch,一种替代策略,利用微缩格式中的mantissa位进行细粒度搜索,以最小化给定分布的量化误差。ScaleSearch可以与现有量化方法如后训练量化和低精度注意力结合,并已证明能提升其性能。此外,我们引入ScaleSearchAttention,一种加速的NVFP4注意力算法,使用ScaleSearch和适应的先前技术,确保因果语言模型的接近0性能损失。实验表明,ScaleSearch在NVFP4中将量化误差减少27%,并提高语言模型PTQ性能,最高提升MATH500(Qwen3-8B)15个百分点。同时,ScaleSearchAttention将Wikitext-2 PPL提升至Llama 3.1 70B的0.77个百分点。所提方法接近基线性能,同时提供量化精度改进。

英文摘要:

Quantization has emerged as a standard technique for accelerating inference for generative models by enabling faster low-precision computations and reduced memory transfers. Recently, GPU accelerators have added first-class support for microscaling Block Floating Point (BFP) formats. Standard BFP algorithms use a fixed scale based on the maximum magnitude of the block. We observe that this scale choice can be suboptimal with respect to quantization errors. In this work, we propose ScaleSearch, an alternative strategy for selecting these scale factors: using a fine-grained search leveraging the mantissa bits in microscaling formats to minimize the quantization error for the given distribution. ScaleSearch can be integrated with existing quantization methods such as Post Training Quantization and low-precision attention, and is shown to improve their performance. Additionally, we introduce ScaleSearchAttention, an accelerated NVFP4-based attention algorithm, which uses ScaleSearch and adapted prior techniques to ensure near-0 performance loss for causal language modeling. Experiments show that ScaleSearch reduces quantization error by 27% for NVFP4 and improves language model PTQ by up to 15 points for MATH500 (Qwen3-8B), while ScaleSearchAttention improves Wikitext-2 PPL by upto 0.77 points for Llama 3.1 70B. The proposed methods closely match baseline performance while providing quantization accuracy improvements.

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

↑