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

诊断FP4推理:NVFP4和MXFP4的逐层和分块敏感性分析

Diagnosing FP4 inference: a layer-wise and block-wise sensitivity analysis of NVFP4 and MXFP4

Department of Computer Science and Engineering The Pennsylvania State University(计算机科学与工程系宾夕法尼亚州立大学)

Musa Cim, Burak Topcu, Mahmut Taylan Kandemir

AI总结:

本研究通过分析MXFP4和NVFP4在不同模型规模下的敏感性,揭示了FP4量化在不同层和分块中的表现差异,为理解FP4推理行为提供了诊断依据。

摘要:

量化通过缓解大语言模型(LLMs)的高资源需求,减轻内存压力和带宽拥堵,并提供显著扩大的计算能力,同时对准确性的影响是可以接受的。四比特浮点数(FP4),作为保留基本数值属性如指数和符号的最低精度格式,已经开始在包括Blackwell和AMD CDNA在内的前沿架构中被采用,以支持LLM量化并减少部署成本。尽管激进的量化可以带来效率提升,但转换器层内的量化敏感性和这些敏感性是否在现有FP4格式和模型规模之间普遍适用仍缺乏研究。为了阐明量化敏感性,本研究系统分析了两种FP4格式MXFP4和NVFP4,通过受控的组件级和分块隔离方法,跨三个Qwen2.5模型规模(0.5B、7B和14B)进行分析。我们观察到,MLP上采样和下采样投影层在敏感性方面始终占主导地位,而门和注意力投影则在FP4量化下表现出中等和显著的不敏感性。我们进一步发现,敏感性不普遍局限于最终分块,但早期分块可以高度敏感,特别是在MXFP4下。我们的结果为FP4在组件、深度和FP4格式之间的推理行为提供了诊断特征描述。

英文摘要:

Quantization addresses the high resource demand for large language models (LLMs) by alleviating memory pressure and bandwidth congestion and providing significantly scaled compute power with a tolerable impact on accuracy. Four-bit floating point (FP4), the lowest-precision format that preserves essential numerical properties such as exponent and sign, has begun to be adopted in cutting-edge architectures, including Blackwell and AMD CDNA, to support LLM quantization and reduce deployment costs. Although aggressive quantization can yield efficiency gains, the quantization sensitivity of within-transformer layers and whether these sensitivities generalize across existing FP4 formats and model scales remain underexplored. To elucidate quantization sensitivity, this study conducts a systematic analysis of two FP4 formats, MXFP4 and NVFP4, across three Qwen2.5 model scales (0.5B, 7B, and 14B), using controlled component-wise and block-wise isolation methodologies. We observe that MLP up- and down-projection layers consistently dominate in terms of sensitivity, while gate and attention projections are moderately and substantially less sensitive to FP4 quantization, respectively. We further find that sensitivity does not universally localize to the final blocks, but early blocks can be highly sensitive, particularly under MXFP4. Our results provide a diagnostic characterization of the inference behavior of FP4 across components, depths, and FP4 formats.

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

↑