Abstract
Large Multimodal Models (LMMs) have set new benchmarks in visual reasoning and image captioning, yet their deployment on edge devices remains constrained by massive parameter counts and memory-intensive Key-Value (KV) caches. This paper presents a novel framework that achieves significant model compression without substantial performance degradation. By utilizing an adaptive search algorithm for layer-wise pruning and mixed-precision KV cache quantization, the proposed method achieves 50% sparsity while outperforming existing state-of-the-art techniques like Wanda and SparseGPT on benchmarks such as LLaVA.
Introduction
LMMs, which integrate visual encoders with large language models, face two primary bottlenecks during inference: the storage and compute requirements of billions of weights, and the GPU memory consumption of the KV cache, which scales with sequence length. Traditional compression methods often apply uniform pruning or quantization across all layers. However, this "one-size-fits-all" approach is inefficient, as different layers contribute unequally to the model's overall intelligence. This research addresses these challenges by introducing an adaptive, post-training compression framework.
Methodology
The framework moves away from uniform compression by implementing three core innovations:
- Adaptive Layer-wise Search: The researchers employ a Tree-structured Parzen Estimator (TPE)—a Bayesian optimization technique—to determine the optimal sparsity for each individual layer. This allows the model to maintain higher density in critical layers while pruning less important ones more aggressively to meet an overall 50% sparsity target.
- Advanced Pruning Metric: Moving beyond simple weight magnitude, the framework uses a new metric that balances weight importance (via L2 normalization across rows and columns) against activation intensity ($X$). This identifies weights that are functionally "quiet" and safe to remove.
- KV Cache Quantization: The system applies asymmetric quantization to the KV cache, reducing precision from 16-bit to 8-bit or 6-bit. The search algorithm identifies which layers are resilient to 6-bit noise and which require 8-bit precision to maintain accuracy.
Experimental Setup
The framework was evaluated using LLaVA-1.5 (7B and 13B) and LLaMA 1/2 models across several benchmarks:
- Vision-Language: VQAv2, ScienceQA (SQA), TextVQA, and POPE (for hallucination measurement).
- Language-Only: Wikitext2 (for perplexity measurement).
Notably, this method requires no fine-tuning. A pre-trained LLaVA model can be compressed in approximately 1-2 minutes on a single A100 GPU.
Key Insights and Results
Layer Sensitivity and Sparsity Patterns
The adaptive search consistently identified a "U-shaped" sparsity pattern: the initial and final layers are highly sensitive and require lower sparsity (higher density), while middle layers are more resilient to pruning. Similarly, earlier layers in the KV cache require higher bit-widths (8-bit) compared to later layers.
Performance Benchmarks
The proposed method consistently outperformed popular baselines. On the VQAv2 benchmark, the compressed LLaVA-1.5 (13B) achieved a score of 79.10, remarkably close to the original dense model's 80.00. Furthermore, the pruned models showed improved resistance to hallucinations on the POPE benchmark, suggesting that pruning may serve as a form of regularization.
Conclusion and Future Work
This framework demonstrates that adaptive, post-training compression can significantly reduce the resource footprint of LMMs while preserving reasoning capabilities. While the researchers identified a performance "hard floor" at 4-bit quantization, future work will explore structured pruning for better hardware acceleration and the application of mixed-precision weights to further push the boundaries of model efficiency.
Summary updated