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

关于多尺度校准在量化中的重要性

On the Importance of a Multi-Scale Calibration for Quantization

Seungwoo Son, Ingyu Seong, Junhan Kim, Hyemi Jang, Yongkweon Jeon

AI总结:

本文提出MaCa方法,通过多尺度校准提升大语言模型量化精度,改进Hessian估计并增强量化效果。

摘要:

后训练量化(PTQ)是高效部署大语言模型(LLMs)的关键,其中一个小的校准集对量化性能有关键影响。然而,传统做法依赖于固定长度的随机序列,忽略了LLM输入的可变长度特性。输入长度直接影响激活分布,从而影响Hessian捕捉的权重重要性,进而影响量化结果。因此,从固定长度校准中得出的Hessian估计可能无法代表不同输入场景中权重的真实重要性。我们提出了MaCa(Matryoshka Calibration),一种简单而有效的多尺度校准方法。MaCa(i)将多尺度序列长度信息纳入Hessian估计,并(ii)将每个序列作为独立样本进行正则化,从而获得更稳定和丰富的Hessian以实现准确的量化。在最先进的LLMs(如Qwen3、Gemma3、LLaMA3)上的实验表明,MaCa在低比特量化下一致提高了准确性,提供了一种轻量级增强,与现有PTQ框架兼容。据我们所知,这是首次系统强调多尺度校准在LLM量化中的作用。

英文摘要:

Post-training quantization (PTQ) is a cornerstone for efficiently deploying large language models (LLMs), where a small calibration set critically affects quantization performance. However, conventional practices rely on random sequences of fixed length, overlooking the variable-length nature of LLM inputs. Input length directly influences the activation distribution and, consequently, the weight importance captured by the Hessian, which in turn affects quantization outcomes. As a result, Hessian estimates derived from fixed-length calibration may fail to represent the true importance of weights across diverse input scenarios. We propose MaCa (Matryoshka Calibration), a simple yet effective method for length-aware Hessian construction. MaCa (i) incorporates multi-scale sequence length information into Hessian estimation and (ii) regularizes each sequence as an independent sample, yielding a more stable and fruitful Hessian for accurate quantization. Experiments on state-of-the-art LLMs (e.g., Qwen3, Gemma3, LLaMA3) demonstrate that MaCa consistently improves accuracy under low bit quantization, offering a lightweight enhancement compatible with existing PTQ frameworks. To the best of our knowledge, this is the first work to systematically highlight the role of multi-scale calibration in LLM quantization.

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

↑