TL;DR
VLMQ is a novel post-training quantization (PTQ) framework designed specifically for Vision-Language Models (VLMs) that addresses the performance degradation caused by redundant visual tokens. By introducing a gradient-driven importance factor to prioritize salient tokens and down-weight redundant ones, VLMQ achieves state-of-the-art accuracy in ultra-low-bit settings (e.g., 2-bit and 3-bit), outperforming existing methods by as much as 16.45% on key benchmarks.
What Problem Does This Paper Address?
As Large Vision-Language Models (VLMs) grow in size, deploying them on consumer hardware requires aggressive compression. Post-training quantization (PTQ) is the preferred method because it converts high-precision weights (FP16) to low-precision formats (INT4 or even INT2) without the massive computational cost of retraining.
However, existing PTQ methods were mostly built for Large Language Models (LLMs). When applied to VLMs, they fail for two main reasons:
- Visual Over-representation: VLMs are flooded with visual tokens (often thousands per image), many of which are redundant or represent unimportant background information.
- Modality Gap: Text and vision tokens occupy very different regions in the model's latent feature space.
Standard PTQ treats every token as equally important. In a VLM, this means the quantization process is "distracted" by the sheer volume of redundant image tokens, causing it to lose the fine-grained details necessary for accurate reasoning and text recognition.
Methods
The authors propose VLMQ, an importance-aware calibration framework. Its core innovation is moving away from "token-agnostic" quantization toward a strategy that "knows" which tokens matter most for the final output.
1. Gradient-Driven Importance Factor ($G$)
Instead of just looking at the magnitude of activations (which can be misleading), VLMQ uses gradients to determine token importance. The authors provide a theoretical proof (Theorem 4.1) showing that the perturbation in the model's loss is directly linked to first-order token-level activation errors. In short: if a token has a high gradient, errors in its quantization will hurt the model's performance more.
2. Efficient Block-wise Backpropagation
Calculating gradients for the entire network is slow and memory-intensive. VLMQ uses a "lightweight block-wise" approach. It places "hooks" after attention modules to calculate a localized loss between the quantized model and its full-precision counterpart. This allows the system to capture cross-layer dependencies efficiently without needing a full-model backprop.
3. Importance-Aware Objective
The authors reformulate the standard quantization optimization objective (commonly used in algorithms like GPTQ or GPTAQ). They introduce a diagonal importance matrix $G$ into the Mean Squared Error (MSE) loss. This forces the quantizer to minimize errors more aggressively for "salient" tokens while allowing more "noise" in redundant ones.
Datasets
- Calibration: The model uses 512 text-image pairs from the ShareGPT4V dataset (an improved version of COCO Captions) to calibrate the quantization parameters.
- Evaluation: The framework was tested across 8 diverse benchmarks, including:
- Perception & Recognition: OCRBench, TextVQA, DocVQA, ChartQA.
- Reasoning: ScienceQA, MME-RealWorld, SeedBench 2 Plus.
- Generalization: MMMU, HellaSwag, TextCaps.
Key Insights and Ideas
- The "Less is More" Pilot Study: The authors found that randomly down-weighting 50% of vision tokens actually improved quantization performance. This confirmed that "visual over-representation" is a real bottleneck—too much redundant data acts as noise during the calibration process.
- Gradients are the Best Compass: While previous works tried using attention scores to find important tokens, VLMQ shows that gradients are a much more reliable indicator of how much a specific token contributes to the final loss.
- Plug-and-Play Compatibility: VLMQ is designed to be a "drop-in" enhancement for existing PTQ pipelines like GPTQ and GPTAQ. It doesn't require new hardware kernels and is fully compatible with optimized inference libraries like Marlin or ExLLaMA.
Key Results
VLMQ demonstrates its greatest strengths in ultra-low-bit regimes where other methods typically fall apart:
- 2-Bit Quantization (INT2): On the MME-RealWorld (Chinese) benchmark, VLMQ achieved a massive 16.45% accuracy gain over standard GPTQ for the Qwen2.5-VL-7B model.
- 3-Bit Quantization (INT3): Across various models (LLaVA-OneVision, Qwen2-VL), VLMQ consistently narrowed the gap between the quantized model and the full-precision original, often outperforming the previous best methods (AWQ, MBQ) by significant margins.
- Efficiency: Despite the extra gradient calculation, the overhead is minimal. Quantizing a 32B model takes only about 6 minutes longer than standard GPTQ and still fits on a single H100 (80GB) GPU.
Limitations and Future Work
- Task Scope: The current evaluation focuses primarily on image-text tasks. The authors suggest that future work should explore how VLMQ handles video understanding and pure language tasks.
- Block-Split Strategy: The current method for splitting the model into "blocks" for gradient calculation is based on empirical settings. A more automated or fine-grained strategy for determining these breakpoints could further improve results.
- Small Model Challenge: While VLMQ helps, the authors noted that very small models (e.g., 0.5B parameters) still show a significant performance gap when quantized to ultra-low bits, indicating that "model capacity" remains a hard floor for quantization.
Summary updated