On the Importance of a Multi-Scale Calibration for Quantization

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

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.

Introduction

To deploy massive Large Language Models (LLMs) efficiently, practitioners use Post-Training Quantization (PTQ) to compress weights to lower precisions, such as 4-bit or 2-bit. Advanced PTQ methods like GPTQ rely on a small "calibration" dataset to compute a Hessian matrix—essentially a map of which model weights are most sensitive to quantization errors.

However, standard PTQ methods typically calibrate using sequences of a fixed length (e.g., exactly 2048 tokens). In real-world applications, LLMs process prompts of wildly varying sizes. This paper demonstrates that an LLM's activation distribution—and consequently, the input-side Hessian ($H_{in}$)—is highly dependent on sequence length. Short sequences emphasize different input channels than long sequences. A Hessian built solely on fixed-length sequences is "blind" to the sensitivities of shorter or longer prompts, leading to suboptimal weight updates and higher quantization error.

MaCa addresses the limitations of fixed-length calibration by capturing a more diverse set of input channel sensitivities, leading to a more "fruitful" Hessian.

MaCa: Matryoshka Calibration

The authors propose MaCa (Matryoshka Calibration), a drop-in technique that modifies the calibration phase of Hessian-based PTQ through two key mechanisms:

  1. Multi-Length Aggregation: Instead of using a single fixed length, MaCa draws calibration sequences from a predefined set of varying lengths (e.g., 256, 512, 1024, 2048, and 4096 tokens).
  2. Length-Agnostic Normalization: Standard GPTQ updates the Hessian using a token-weighted moving average. Because longer sequences have more tokens, they mathematically dominate the final Hessian. MaCa shifts from token-level averaging to sample-level averaging by normalizing each sequence's activation matrix by its own length. This ensures that a 256-token sequence has the same "voting power" as a 4096-token sequence when determining weight importance.

This approach requires no extra training time or additional calibration data budget, making it highly efficient for deployment pipelines.

Experimental Results

MaCa was tested on state-of-the-art LLM families including Qwen3 (4B, 8B), Gemma3 (4B, 12B), and LLaMA3 (3B, 8B). Calibration was performed using the C4 dataset, and models were evaluated across eight zero-shot benchmarks and the LongBench suite.

Performance Gains in Low-Bit Regimes

MaCa consistently improves accuracy, with the most dramatic gains observed at extreme compression levels. On Qwen3-8B using GPTQ, MaCa added +5.5% accuracy at 3-bit and a massive +8.7% at 2-bit/g128. Similar trends were observed across the Gemma and LLaMA families, proving the method's robustness across different architectures.

Quantitative results show that MaCa consistently improves zero-shot accuracy across various LLM architectures and bitwidths compared to standard GPTQ and GPTAQ.

Long-Context and Versatility

Beyond standard benchmarks, MaCa significantly improved long-context understanding. On LongBench, MaCa improved the score of Qwen3-4B-IT (4-bit GPTQ) from 6.07 to 8.31. Furthermore, the method is versatile; applying it to AWQ (an activation-aware, non-Hessian method) on Qwen3-4B improved 4-bit zero-shot accuracy from 59.93% to 60.28%, demonstrating that length-aware calibration provides orthogonal benefits to existing techniques.

Conclusion

MaCa highlights a previously overlooked factor in LLM quantization: the impact of sequence length on weight importance. By incorporating multi-scale calibration and sample-level normalization, MaCa provides a more stable and representative Hessian matrix. This lightweight enhancement offers a significant performance boost for low-bit quantization without increasing computational overhead, paving the way for more efficient deployment of high-performance LLMs.

Summary updated

BibTeX
@misc{son2026importance,
  author = {Seungwoo Son and Ingyu Seong and Junhan Kim and Hyemi Jang and Yongkweon Jeon},
  title = {{On the Importance of a Multi-Scale Calibration for Quantization}},
  year = {2026},
  eprint = {2602.07465},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2602.07465},
}
Figure