Introduction
Multimodal Large Language Models (MLLMs) have demonstrated remarkable capabilities in integrating visual and textual information. However, their deployment is often hindered by significant computational requirements. While building MLLMs from smaller base models is an option, it lacks flexibility and requires expensive training from scratch. This study explores post-hoc compression, specifically structural pruning of the language backbone, as a more efficient alternative to reduce model size while maintaining performance.
Methods: Pruning and Recovery Strategies
The researchers investigated two primary structural pruning paradigms for the LLM backbone:
- Layerwise Pruning: Entire transformer blocks are removed based on "Block Influence" scores, which measure a layer's impact on the hidden state.
- Widthwise Pruning: Unimportant attention heads and MLP neurons are identified and removed using Taylor expansion-based importance estimation.
To recover performance lost during pruning, several strategies were evaluated:
- Supervised Finetuning (SFT): Comparing the effectiveness of tuning only the multimodal projector versus tuning both the projector and the LLM via LoRA.
- Knowledge Distillation (KD): The pruned "student" model is trained to mimic the original "teacher" model. This included logit-based KD and Hidden State Matching, which uses L2 loss to align internal representations.
Key Insights
The empirical results yielded several critical observations for model compression:
- Projector-First Recovery: For low compression ratios (<20%), the primary issue is the disruption of vision-text alignment. In these cases, finetuning only the multimodal projector is often sufficient.
- Structural Preferences: Widthwise pruning is superior when no recovery training is possible. However, with recovery training, layerwise pruning performs slightly better at low ratios (<30%), while widthwise pruning regains the advantage at higher ratios (>40%).
- Distillation Efficacy: Aligning internal hidden states (L2 loss) proved more effective than mimicking final output probabilities, as it better captures the teacher model's internal logic.
- Data Efficiency: Remarkably, using just 5% of the original training data can recover over 95% of performance for moderate compression levels.
Performance and Efficiency Results
The study evaluated LLaVA-v1.5-7B and Bunny-v1.0-3B across benchmarks including MMMU, GQA, SQA-I, MME, and POPE.
Key findings include:
- Retention: Both models maintained over 95% of their original performance at compression ratios up to 40% using SFT and Hidden State Distillation.
- Resource Savings: A 30% compression ratio led to a 25-28% reduction in memory and FLOPs. At 60% compression, resource requirements were halved, though performance degradation became more pronounced.
Conclusion
This research provides a practical roadmap for MLLM compression. By selecting the appropriate pruning method and recovery strategy based on available resources, developers can significantly reduce the footprint of these models with minimal performance loss. Future work will explore the synergy between structural pruning and quantization, as well as scaling these techniques to even larger model architectures.
Summary updated