Skip to main content
QUICK REVIEW

[论文解读] On the Importance of a Multi-Scale Calibration for Quantization

Seungwoo Son, Ingyu Seong|arXiv (Cornell University)|Feb 7, 2026
Advanced Data Compression TechniquesComputer Science被引用 0
一句话总结

MaCa 通过在多种序列长度下对校准数据进行聚合并进行每样本归一化,引入长度感知 Hessian 构建,从而提升对低比特量化的 LLM 表现。

ABSTRACT

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.

研究动机与目标

  • 说明输入序列长度对 LLM 的基于 Hessian 的 PTQ 的影响。
  • 提出 MaCa 将多尺度序列长度纳入 Hessian 估计。
  • 在不增加额外校准成本的前提下,提升基于 Hessian 的量化的稳定性与有效性。

提出的方法

  • 通过在更新 Hessian 之前对每个序列进行归一化,将 Hessian 聚合重新定义为与长度无关。
  • 通过从一组不同序列长度中抽取校准长度,引入多尺度长度聚合。
  • 使用样本级滑动平均来更新 Hessian,而不是按 token 级别,从而给予每个校准样本同等重要性。
  • 将 MaCa 应用于 GPTQ 和 GPTAQ,并在多种 LLM 与不同比特位宽下进行评估。
  • 证明 MaCa 通过结合短序列和长序列,获得更丰富的 Hessian,从而改善重建误差和量化结果。

实验结果

研究问题

  • RQ1输入序列长度如何影响 PTQ 中的输入端 Hessian H_in 对 LLM 的影响?
  • RQ2多尺度、与长度无关的校准策略是否能够产生更具代表性的量化 Hessian?
  • RQ3多尺度长度聚合和逐序列归一化是否在不同模型与比特宽度下提升量化精度?

主要发现

  • MaCa 在相同校准预算下,持续提升 Qwen3、Gemma3、LLaMA3 家族的下游平均准确度。
  • 在 GPTQ 和 GPTAQ 的 4bit、3bit、2bit/g128 设置下,多尺度长度聚合与逐序列归一化带来可观察的增益。
  • MaCa 在各层次上实现的重建误差低于 GPTQ,指示更高精度的量化。
  • MaCa 在 LongBench 的长上下文基准上取得显著收益,包括 MultiFieldQA、NarrativeQA 和 Qasper。
  • 消融研究显示多尺度聚合和逐序列归一化都对性能改进有贡献。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。