NVFP4最近作为一种高效的4位微缩格式出现,为大语言模型(LLMs)提供优异的数值精度和原生硬件支持。然而,现有方法由于尺度选择的不灵活和量化与反量化尺度的耦合处理,往往性能不佳。为此,我们提出了Scale Optimization for Accurate Reconstruction(SOAR),一种新的后训练量化框架,以提升NVFP4量化精度。其核心是Closed-form Joint Scale Optimization(CJSO),通过从重建误差最小化中导出的解析解,联合优化全局和块级尺度。此外,它还集成了Decoupled Scale Search(DSS)。DSS将高精度量化尺度与其受限的反量化对应物解耦,并通过离散搜索来减轻尺度量化带来的精度损失。在多个LLM上的广泛实验表明,我们的方法在相同内存占用下,通过无额外硬件开销,实现了优于现有NVFP4量化基线的精度。代码和模型将在https://github.com/steven-bao1/SOAR上提供。
英文摘要:
NVFP4 has recently emerged as an efficient 4-bit microscaling format for large language models (LLMs), offering superior numerical fidelity with native hardware support. However, existing methods often yield suboptimal performance due to inflexible scale selection and the coupled treatment of quantization and dequantization scales. To address these issues, we propose Scale Optimization for Accurate Reconstruction (SOAR), a novel post-training quantization framework that improves the accuracy of NVFP4 quantization. At its core, SOAR features Closed-form Joint Scale Optimization (CJSO), which jointly optimizes global and block-wise scales via analytical solutions derived from reconstruction error minimization. Furthermore, it incorporates Decoupled Scale Search (DSS). DSS decouples the high-precision quantization scale from its constrained dequantization counterpart, and performs discrete search to mitigate precision loss from scale quantization. Extensive experiments across multiple LLMs show that our method consistently outperforms existing NVFP4 quantization baselines, achieving superior accuracy under the same memory footprint with no additional hardware overhead. The code and models will be available at https://github.com/steven-bao1/SOAR.
Multi-Scale Vector Quantization with Reconstruction Trees
Università di Genova(热那亚大学);Istituto Italiano di Tecnologia(意大利理工学院);Massachusetts Institute of Technology(麻省理工学院);Universitá degli Studi di Genova(热那亚大学)
When Lower Reconstruction Loss Hurts: Distributionally Robust Refinement for Low-Bit LLM Quantization
University of Science and Technology of China(中国科学技术大学);University College London(伦敦大学学院);Shanghai University of Finance and Economics(上海财经大学);AMSS, Chinese Academy of Sciences(中国科学院数学与系统科学研究院);University of Copenhagen(哥本哈根大学);Imperial College London(伦敦帝国学院);Technical University of Denmark(丹麦技术大学);Shenzhen Research Institute of Big Data(深圳大数据研究院)
Scalar Quantization as Sparse Least Square Optimization
College of Electrical Engineering, Sichuan University(四川大学电气工程学院);Department of Computer Science, Rutgers University -- New Brunswick(罗格斯大学新布朗斯维广场分校计算机科学系);Engineering Practice Center, Chengdu University of Information Technology(成都信息科技大学工程实践中心)
EDA-DM: Enhanced Distribution Alignment for Post-Training Quantization of Diffusion Models
Institute of Automation, Chinese Academy of Sciences(中国科学院自动化研究所);School of Artificial Intelligence, University of Chinese Academy of Sciences(中国科学院大学人工智能学院)
Saliency-Aware Regularized Quantization Calibration for Large Language Models
University of Science and Technology of China(中国科学技术大学);University College London(伦敦大学学院);Shanghai University of Finance and Economics(上海财经大学);Academy of Mathematics and Systems Science, Chinese Academy of Sciences(中国科学院数学与系统科学研究院);University of Copenhagen(哥本哈根大学);Imperial College London(伦敦帝国学院);Technical University of Denmark(丹麦技术大学);Peking University(北京大学)
GPTQ-intrinsic LoRA: A Near-optimal Algorithm for Low-precision Quantization with Low-rank Adaptation
Department of Mathematics, University of California San Diego(数学系,加州大学圣地亚哥分校);Department of Mathematics and Halıcıoğlu Data Science Institute, University of California San Diego(数学系和Halıcıoğlu数据科学研究所,加州大学圣地亚哥分校)