LUQ: Layerwise Ultra-Low Bit Quantization for Multimodal Large Language Models

A demonstration of LUQ Qwen 2.5 VL running on a laptop, showing that it runs significantly faster than the 4-bit and 16-bit versions of the model on the same device

Abstract

Large Language Models (LLMs) with multimodal capabilities have revolutionized vision-language tasks, but their deployment often requires huge memory and computational resources. While post-training quantization (PTQ) has successfully compressed language models to as low as 1-bit precision without significant performance loss, its effectiveness for multimodal LLMs (MLLMs) remains relatively unexplored. In this paper, we present the first study on ultra-low bit (<4-bit) quantization for multimodal LLMs. Our analysis reveals that multimodal tokens and intermediate layer activations produced by them exhibit significantly higher statistical variance and entropy compared to text tokens, making them less tolerant to ultra-low bit quantization. However, the activation distributions of multimodal tokens varies significantly over different layers, with some layers having lower entropy activation distributions. We empirically show that such layers in these models can better tolerate ultra-low bit quantization. Building on these insights, we propose a novel strategy for MLLM quantization, LUQ: Layerwise Ultra-Low Bit Quantization, which selectively applies ultra-low bit quantization to layers that are more resilient to it. Additionally, we also show that using a mix of multimodal tokens (image and text) for PTQ boosts VQA performance in the ultra-low bit regime. We evaluate our method on LLaVA-1.5 and Qwen-2.5-VL across 9 popular VQA benchmarks. The resulting LUQ models use 40% and 31% less memory than their 4-bit counterparts, respectively, while exhibiting a performance degradation of less than 10% on the MME benchmark.

TL;DR:

We introduce LUQ, a method for extreme (<4-bit) compression of Multimodal LLMs. By selectively quantizing only the layers that are robust to it (low activation entropy), we significantly reduce memory usage while preserving performance on vision-language tasks.

Method Overview

LUQ Method Overview Diagram
An overview of our LUQ pipeline: (i) Generate multimodal calibration tokens. (ii) Extract layerwise activations from the MLLM. (iii) Calculate the activation entropy for each layer to identify quantization-resilient layers (lower entropy). (iv) Iteratively quantize the lowest-entropy layers to an ultra-low bit-width until a performance or memory budget is met. (v) Combine the layers, already quantized into different precision to the final compressed model.

Performance vs. Memory Trade-off

LUQ allows for a graceful trade-off between performance and model size. By progressively quantizing more layers (starting from the lowest entropy), we can achieve different compression rates. The plots below show that LUQ consistently creates a better performance-vs-compression frontier compared to standard PTQ methods like GPTQ and AWQ, which suffer catastrophic performance collapse at sub-3-bit compression.

Performance vs Memory Tradeoff on MME for LLaVA 1.5

LLaVA 1.5 7B

Performance vs Memory Tradeoff on MME for Qwen 2.5 VL

Qwen 2.5 VL 7B

Comparison to State-of-the-Art Methods

We compare LUQ to state-of-the-art PTQ methods on 9 VQA benchmarks for LLaVA-1.5 7B and Qwen 2.5 VL 7B models. The table below shows that LUQ achieves a much better trade-off between performance and model size. For LLaVA-1.5, LUQ is 40% smaller than 4-bit models with comparable accuracy. For Qwen 2.5 VL, LUQ provides a 31.5% memory reduction while maintaining strong performance.

Method Avg. Bits MME Per. MME Cog. MM Bench Text VQA VQAv2 GQA POPE Chart QA Doc QA Math Vista
LLaVA-1.5 7B Backbone
FP16 (Baseline)16151035063.458.278.562.083.2--23.6
GPTQ4145034758.256.876.361.476.0--20.1
AWQ4145634959.856.776.661.576.7--20.6
GPTQ3134627331.254.173.558.870.5--16.4
GPTQ*2000.0000.00.0--0.0
BiLLM1.085613915.67.437.222.725.5--3.5
LUQ (Ours)2.54136525753.446.774.958.274.5--18.7
Qwen 2.5 VL Backbone
FP16 (Baseline)16169564084.982.683.560.586.187.395.768.2
GPTQ4163861084.280.282.660.184.884.193.444.8
AWQ4164562080.984.682.760.585.684.593.546.1
GPTQ331913134.779.581.553.482.961.089.221.0
GPTQ*20.00.00.00.00.00.00.00.00.00.0
BiLLM1.08638429.726.339.54.370.73.720.315.1
LUQ (Ours)2.75164060063.781.979.752.984.768.690.541.7

* indicates models with incoherent/gibberish output.

Citation

If you find our work useful, please consider citing:

The website template was borrowed from Michaël Gharbi and Ref-NeRF.