[Paper Review] On the Importance of a Multi-Scale Calibration for Quantization
MaCa introduces length-aware Hessian construction for PTQ by aggregating calibration data across multiple sequence lengths with per-sample normalization, improving low-bit quantization for LLMs.
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.
Motivation & Objective
- Motivate the impact of input sequence length on Hessian-based PTQ for LLMs.
- Propose MaCa to incorporate multi-scale sequence lengths into Hessian estimation.
- Improve stability and effectiveness of Hessian-based quantization without extra calibration cost.
Proposed method
- Redefine Hessian aggregation to be length-agnostic by normalizing each sequence before updating the Hessian.
- Introduce multi-scale length aggregation by drawing calibration lengths from a set of varied sequence lengths.
- Update Hessian using a sample-level moving average rather than a token-level one to give equal importance to each calibration sample.
- Apply MaCa to GPTQ and GPTAQ and evaluate across multiple LLMs and bit precisions.
- Demonstrate that MaCa yields a richer Hessian by combining short and long sequences, improving reconstruction error and quantization outcomes.
Experimental results
Research questions
- RQ1How does input sequence length affect the input-side Hessian H_in in PTQ for LLMs?
- RQ2Can a multi-scale, length-agnostic calibration strategy produce a more representative Hessian for quantization?
- RQ3Do multi-scale length aggregation and per-sequence normalization improve quantization accuracy across different models and bit-widths?
Key findings
- MaCa consistently improves average downstream accuracy under the same calibration budget across Qwen3, Gemma3, and LLaMA3 families.
- Multi-scale length aggregation and per-sequence normalization provide measurable gains at 4bit, 3bit, and 2bit/g128 settings for GPTQ and GPTAQ.
- MaCa achieves lower reconstruction error than GPTQ across layers, indicating more accurate quantization.
- MaCa yields notable gains on LongBench long-context benchmarks, including MultiFieldQA, NarrativeQA, and Qasper.
- Ablation studies show both multi-scale aggregation and per-sequence normalization contribute to performance improvements.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.