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

一种基于海森矩阵引导的后训练量化统一框架

A Unified Hessian-Guided Framework for Post-Training Quantization

Qualcomm AI Research(高通人工智能研究部)

Mads Toftrup, Marco Federici, Boris van Breugel, Paul Whatmough, Markus Nagel

AI总结:

本研究提出一种海森矩阵引导的后训练量化统一框架,通过联合优化量化相关组件,在两类量化设置下均优于现有方法,为大语言模型高效部署提供了更优方案。

摘要:

低比特量化通过减少内存占用和计算成本,实现了大语言模型的高效部署。在低精度下获得高准确率需要选择量化范围、线性变换和权重舍入决策。现有方法通常使用局部重建目标独立优化这些组件,未能考虑量化误差对下游预测的不同影响。直接优化任务级指标会提供更忠实的目标,但由于量化操作的不连续性及其下游效应评估的高计算成本,这极具挑战性。本研究中,我们推导了由权重与激活联合量化引起的输出变化的海森矩阵引导近似。基于易处理的费舍尔近似,我们构建了一个统一的后训练量化框架,该框架可在共同的输出敏感性目标下联合优化量化范围、线性变换和权重舍入。所得方法对现代大语言模型仍具有实用性,且在通道式和块式量化设置下,均始终优于最先进的变换与舍入方法。

英文摘要:

Low-bit quantization enables efficient deployment of large language models by reducing memory footprint and computational cost. Achieving high accuracy at low precision requires selecting quantization ranges, linear transformations, and weight rounding decisions. Existing approaches typically optimize these components independently using local reconstruction objectives, which fail to account for the varying impact of quantization errors on downstream predictions. Direct optimization of task-level metrics would provide a more faithful objective, but is challenging due to the discontinuous nature of quantization operations and the high computational cost of evaluating their downstream effects. In this work, we derive a Hessian-guided approximation of the output change induced by joint weight and activation quantization. Based on a tractable Fisher approximation, we formulate a unified post-training quantization framework that enables the joint optimization of quantization ranges, linear transformations, and weight rounding under a common output-sensitivity objective. The resulting method remains practical for modern large language models and consistently outperforms state-of-the-art transformation and rounding methods across both channel-wise and block-wise quantization settings.

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

↑