Rethinking Practical and Efficient Quantization Calibration for Vision-Language Models
Zhenhao Shang, Haizhao Jing, Guoting Wei, Haokui Zhang, Rong Xiao, Jianqing Gao, Peng Wang
TL;DR
The paper addresses calibration bias in post-training quantization for vision-language models arising from token-level heterogeneity between visual and textual tokens. It introduces TLQ, a gradient-guided, token-level importance framework that constructs a compact calibration set and couples it with a quantization-exposed, multi-GPU layer-wise calibration that mirrors the actual inference path. Experiments on LLaVA-onevision and Qwen2-VL across three model scales and two quant settings show TLQ consistently improves FP16 accuracy retention over strong baselines and enables calibration on modest GPUs. The work offers practical, scalable PTQ solutions for deploying large multimodal models while maintaining stability and performance, and code will be released publicly.
Abstract
Post-training quantization (PTQ) is a primary approach for deploying large language models without fine-tuning, and the quantized performance is often strongly affected by the calibration in PTQ. By contrast, in vision-language models (VLMs), substantial differences between visual and text tokens in their activation distributions and sensitivities to quantization error pose significant challenges for effective calibration during PTQ. In this work, we rethink what PTQ calibration should align with in VLMs and propose the Token-level Importance-aware Layer-wise Quantization framework (TLQ). Guided by gradient information, we design a token-level importance integration mechanism for quantization error, and use it to construct a token-level calibration set, enabling a more fine-grained calibration strategy. Furthermore, TLQ introduces a multi-GPU, quantization-exposed layer-wise calibration scheme. This scheme keeps the layer-wise calibration procedure consistent with the true quantized inference path and distributes the complex layer-wise calibration workload across multiple RTX3090 GPUs, thereby reducing reliance on the large memory of A100 GPUs. TLQ is evaluated across two models, three model scales, and two quantization settings, consistently achieving performance improvements across all settings, indicating its strong quantization stability. The code will be released publicly.
