TL;DR
Modality-Aware Bit Allocation (MABA) is a novel mixed-precision post-training quantization framework designed specifically for Vision-Language Models (VLMs). By using gradient-guided sensitivity estimates to allocate higher precision to fragile language-critical weights and lower precision to robust visual weights, MABA improves multimodal understanding by up to 2.3% over uniform-bit baselines under the same resource budget.
What Problem Does This Paper Address?
Quantizing large vision-language models (VLMs) like LLaVA or Qwen-VL is essential for deploying them on memory-constrained edge devices. Standard Post-Training Quantization (PTQ) methods (e.g., GPTQ, AWQ) typically apply a uniform bit-width across all layers or weight groups.
However, the authors point out a fundamental flaw in this approach: different modalities react differently to quantization. Language understanding and generation rely on precise token-to-token interactions, making linguistic components highly sensitive to precision loss. Conversely, visual components are often much more tolerant due to spatial redundancy and feature aggregation. Uniform quantization wastes precious bits on robust visual parameters while under-provisioning critical language parameters.
Methods
MABA introduces an explicit, data-driven bit allocation stage that treats quantization as a budget-constrained optimization problem. The pipeline operates in four main steps:
- Modality-Dependent Sensitivity Estimation: Using a small multimodal calibration dataset, MABA runs a forward pass and tracks separate token masks for language tokens ($M_{\text{lang}}$) and vision tokens ($M_{\text{vis}}$). It computes a first-order proxy of sensitivity by calculating the gradient of the loss with respect to each weight group, isolated by modality.
- Normalized Modality Weighting: These sensitivities are converted into normalized weights to capture whether a specific group predominantly influences vision or language.
- Modality-Weighted Reconstruction Error: MABA evaluates candidate bit-widths (e.g., 2-bit, 3-bit, 4-bit) by measuring the local output distortion (Mean Absolute Error) caused by quantizing a single group, scaled by that group's modality preference.
- Greedy Bit Allocation: To solve the global optimization problem efficiently under a strict hardware budget, MABA uses a greedy scheduler. It starts all groups at a minimum bit-width and iteratively upgrades the precision of groups that yield the highest reduction in modality-weighted error per unit cost.
To maintain hardware and kernel efficiency during inference, MABA constrains each transformer layer to use at most two distinct bit-widths, preventing excessive branching and kernel fragmentation.
Datasets
- Calibration: A randomly sampled subset of 128 image-caption pairs from the improved COCO Caption dataset in ShareGPT4V, featuring high-quality descriptions generated by GPT-4V.
- Evaluation Benchmarks: The framework was evaluated across six diverse multimodal benchmarks via the LMMs-Eval suite: MMMU (expert-level reasoning), SEED-Bench (generative comprehension), OCRBench and TextVQA (OCR-centric tasks), VizWiz (real-world VQA), and ScienceQA-IMG (scientific QA).
Key Insights and Ideas
- Modality Asymmetry: Language tokens are significantly more fragile under quantization than visual tokens. Exploiting this asymmetry allows for aggressive compression of vision-dominated blocks without tanking overall model performance.
- Gradients as Cheap Proxies: Instead of running expensive full-forward simulations for every possible mixed-precision combination, first-order gradient statistics from a tiny calibration set (128 samples) provide a remarkably stable and accurate proxy for downstream quantization sensitivity.
- Robustness to Calibration Drift: Ablation studies revealed that MABA's bit allocation is highly robust to the specific distribution of the calibration data. Calibrating on text-heavy OCR data versus reasoning-heavy data yielded nearly identical global performance, proving that MABA captures the model's intrinsic structural sensitivity rather than overfitting to a calibration task.
Key Results
The authors validated MABA across three major VLM families at various scales: LLaVA-OneVision (7B/72B), InternVL2 (8B/26B), and Qwen2-VL (7B/72B), evaluating both weight-only (W3A16) and weight-activation (W4A8) quantization.
- Accuracy Boost: Under the W3A16 setting, MABA consistently outperformed the strong uniform-bit baseline (MBQ), improving average scores by 0.7 to 1.0 points on small-scale models, with performance gains up to 2.3% on challenging reasoning tasks like MMMU.
- Large-Scale Resilience: On 72B models, MABA significantly narrowed the accuracy gap to the full-precision (FP16) baseline, proving that structured bit allocation scales effectively to massive models.
- Hardware Efficiency: Benchmarked on an NVIDIA RTX 4090, MABA achieved a 2.7× to 4.2× speedup on large linear projections compared to FP16, introducing only negligible runtime overhead relative to uniform quantization.
Limitations and Future Work
While highly effective, MABA relies on an additive distortion assumption during optimization, meaning it aggregates group-wise errors independently and ignores higher-order interactions between different quantized groups.
Additionally, while the authors successfully mitigated kernel fragmentation by limiting each layer to two bit-widths, deploying mixed-precision models still demands specialized hardware kernel support to maximize throughput. Future work could explore integrating MABA with more advanced vector quantization techniques or hardware-specific latency predictors.
Summary updated