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

块旋转是 MXFP4 量化所需的全部

Block Rotation is All You Need for MXFP4 Quantization

Nanjing University of Science and Technology(南京理工大学);School of Artificial Intelligence, University of Chinese Academy of Sciences(中国科学院大学人工智能学院);Zhongguancun Academy(中关村学院);School of Computer Science, University of Sydney(悉尼大学计算机科学学院)

Yuantian Shao, Peisong Wang, Yuanteng Chen, Chang Xu, Zhihui Wei, Jian Cheng

AI总结:

本文针对 MXFP4 低精度量化格式,揭示了现有基于旋转的 PTQ 方法与其不兼容的根源,并提出块旋转策略加以适配,在多种 LLMs 上显著提升了量化精度。

摘要:

大型语言模型(LLMs)已取得显著成功,但其快速增长的规模在内存、计算和能耗方面带来了难以承受的成本。训练后量化(PTQ)是实现高效部署的一种有前景的解决方案,然而实现准确的 W4A4 量化仍然是一个尚未解决的挑战。虽然现有大多数方法都是为 INT4 格式设计的,但 MXFP4——一种具有多种硬件支持(NVIDIA、AMD、Intel)的新型 FP4 格式——的出现,引发了关于当前技术是否适用的疑问。在本工作中,我们建立了 MXFP4 格式下 PTQ 方法的全面基准。通过系统评估,我们发现像 GPTQ 这样的方法始终能提供较强的性能,而几乎所有最先进方法都采用的基于旋转的方法则与 MXFP4 存在严重的不兼容。我们进一步首次对这一冲突进行了深入分析,将其根源追溯到 MXFP4 的 PoT(2 的幂次)块缩放与通过全局旋转重新分布异常值能量之间的根本性不匹配。基于这一认识,我们提出了一种简单而有效的块旋转策略,使基于旋转的方法能够适配 MXFP4,从而在各种 LLMs 上带来显著的精度提升。我们的发现不仅为实践者提供了明确的指导,也为在新兴低精度格式下推进 PTQ 研究奠定了基础。

英文摘要:

Large language models (LLMs) have achieved remarkable success, but their rapidly growing scale imposes prohibitive costs in memory, computation, and energy. Post-training quantization (PTQ) is a promising solution for efficient deployment, yet achieving accurate W4A4 quantization remains an open challenge. While most existing methods are designed for INT4 formats, the emergence of MXFP4 -- a new FP4 format with various hardware support (NVIDIA, AMD, Intel)-- raises questions about the applicability of current techniques. In this work, we establish a comprehensive benchmark of PTQ methods under the MXFP4 format. Through systematic evaluation, we find that methods like GPTQ consistently deliver strong performance, whereas rotation-based approaches, which are almost used by all state-of-the-art approaches, suffer from severe incompatibility with MXFP4. We further provide the first in-depth analysis of this conflict, tracing its root to a fundamental mismatch between MXFP4's PoT (power-of-two) block scaling and the redistribution of outlier energy via global rotation. Building on this insight, we propose a simple yet effective block rotation strategy that adapts rotation-based methods to MXFP4, leading to substantial accuracy improvements across diverse LLMs. Our findings not only offer clear guidance for practitioners but also set a foundation for advancing PTQ research under emerging low-precision formats.

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

↑