M2XFP:一种元数据增强的微缩放数据格式,用于高效低比特量化
M2XFP: A Metadata-Augmented Microscaling Data Format for Efficient Low-bit Quantization
AI总结:
M2XFP通过引入元数据增强的微缩放数据格式,实现高效低比特量化,显著降低精度损失并提升加速器性能
摘要:
现有的低比特微缩放(MX)格式,如MXFP4,往往由于使用与2的幂格式共享的缩放因子而造成显著的精度下降。在本工作中,我们探索了引入最小元数据以在量化过程中恢复丢失的精度,同时在广泛的大语言模型范围内保持高比特效率的策略。我们提出了一种基于灵活元数据的完整算法-硬件协同设计,具有简单的编码在线量化。为了支持所提出的方法,我们实现了一个轻量级的硬件单元,并将其集成到加速器中。评估结果表明,我们的方法显著缩小了精度差距,在LLM基准测试中,与MXFP4相比平均精度损失减少了70.63%,相对于最新的NVFP4减少了37.30%。此外,我们的设计在最先进的加速器上实现了高达1.91倍的速度提升和1.75倍的能耗节省。我们的代码可在https://github.com/SJTU-ReArch-Group/M2XFP_ASPLOS26上获得。
英文摘要:
Existing low-bit Microscaling (MX) formats, such as MXFP4, often suffer from substantial accuracy degradation due to the use of a shared scaling factor with the Power-of-Two format. In this work, we explore strategies that introduce minimal metadata to recover accuracy lost during quantization while maintaining high bit efficiency across a wide range of large language models. We propose a complete algorithm-hardware co-design based on flexible metadata, featuring an online quantization with simple encoding. To support the proposed method efficiently, we implement a lightweight hardware unit and integrate it into the accelerator. Evaluation results demonstrate that our method substantially narrows the accuracy gap, achieving on average a 70.63% reduction in accuracy loss compared to MXFP4 and a 37.30% reduction relative to the latest NVFP4 on LLM benchmarks. Furthermore, our design delivers up to 1.91$\times$ speedup and 1.75$\times$ energy savings over state-of-the-art accelerators. Our code is available at https://github.com/SJTU-ReArch-Group/M2XFP_ASPLOS26.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。