Abstract
Large Vision-Language Models (VLMs) face significant deployment challenges due to their massive memory and compute requirements. While Post-Training Quantization (PTQ) is a standard technique for model compression, existing methods often fail for VLMs because they treat vision and language modalities identically. We present Modality-Balanced Quantization (MBQ), a novel approach that recognizes language tokens are roughly 10 times more sensitive to quantization errors than vision tokens. By weighting these modalities differently during calibration, MBQ significantly recovers accuracy loss and enables a 1.4× speedup on consumer hardware.
Introduction
Deploying Large Vision-Language Models (VLMs) is a significant challenge due to their immense parameter counts. Post-Training Quantization (PTQ) addresses this by converting high-precision weights (e.g., FP16) into low-precision formats (e.g., 3-bit or 4-bit integers). However, standard PTQ methods designed for Large Language Models (LLMs) often lead to notable accuracy loss in VLMs. The core issue is that VLMs process multimodal data with varying degrees of redundancy; vision tokens are often more "fault-tolerant" than language tokens. Treating them equally during calibration forces the model to preserve less critical visual features at the expense of vital linguistic logic.
Modality-Aware Sensitivity Analysis
The authors discovered a critical asymmetry in how VLMs handle different inputs. By using the gradients of the Supervised Fine-Tuning loss to measure sensitivity, they found that language tokens exhibit an average absolute gradient value over 10× larger than vision tokens.
This finding suggests that language tokens are the "fragile" backbone of the model's reasoning, while vision tokens are more robust and redundant. MBQ leverages this redundancy as a resource, allowing for more quantization error in visual features to preserve the "precision budget" for language.
Methods: Modality-Balanced Quantization
MBQ introduces a modality-aware calibration process using 128 image-caption pairs from the ShareGPT4V version of the COCO dataset. The method consists of several key components:
- Balanced Reconstruction Loss: MBQ incorporates gradient-based sensitivity indicators directly into the optimization objective during quantization. This ensures that the calibration process prioritizes preserving the most sensitive (language) features.
- MAE over MSE: The researchers found that using Mean Absolute Error (MAE) for the reconstruction loss yielded superior results compared to the standard Mean Square Error (MSE) when balancing modalities.
- Custom GPU Kernel: To translate these algorithmic gains into practical performance, a specialized W3A16 CUDA kernel was developed. This kernel fuses dequantization and matrix-vector multiplication (GEMV), reducing memory access overhead and enabling efficient 3-bit weight execution.
Experimental Results
MBQ was evaluated across several state-of-the-art VLMs, including LLaVA-onevision, InternVL2, and Qwen2-VL, using a suite of benchmarks such as MMMU, OCRBench, TextVQA, and SEED-Bench.
Key Findings:
- Accuracy Recovery: MBQ improved task accuracy by up to 4.4% under W3A16 and 11.6% under W4A8 compared to baselines like AWQ and SmoothQuant.
- Hardware Speedup: The custom W3A16 kernel achieved a 1.4× end-to-end speedup on an NVIDIA RTX 4090 for LLaVA-onevision-7B.
- Scalability: For 72B parameter models, MBQ (combined with rotation-based techniques) achieved near-lossless performance, with less than 1.1% accuracy loss compared to the FP16 baseline.
Conclusion and Future Work
MBQ demonstrates that modality-aware quantization is essential for efficient VLM deployment. By recognizing the inherent sensitivity differences between vision and language, MBQ achieves superior compression without sacrificing reasoning capabilities. Future work may explore more aggressive quantization specifically for visual encoders and address compute-bound bottlenecks in the prefill stage to further leverage hardware acceleration.
Summary updated