TL;DR
This paper introduces p-MoD, an efficient Mixture-of-Depths (MoD) architecture for Multimodal Large Language Models (MLLMs) that significantly reduces computational costs during training and inference. By adaptively skipping less informative vision tokens in deeper layers, p-MoD achieves comparable or better performance than existing models while using substantially fewer computational resources.
What Problem Does This Paper Address?
Multimodal Large Language Models (MLLMs) have shown impressive capabilities across various vision-language tasks. However, their performance often comes at a steep price: enormous training and inference costs. This is largely due to the overwhelming number of vision tokens processed by the transformer-based Large Language Model (LLM) backbone, especially when dealing with high-resolution images or videos. Existing methods often focus on compressing vision tokens before they reach the LLM, but this paper argues that the LLM itself has the capacity to identify and discard redundant vision tokens within its layers. The challenge is to integrate this "Mixture-of-Depths" (MoD) mechanism into pre-trained MLLMs effectively and efficiently, overcoming issues like training instability and limited multimodal data.
Methods
The core of p-MoD is an adapted Mixture-of-Depths (MoD) mechanism. Instead of processing all vision tokens, each MoD layer learns to assign weights to tokens and selects a subset of the most important ones to process, skipping the rest. To make this work within MLLMs, the authors introduce three key innovations:
- Tanh-gated Weight Normalization (TanhNorm): This module normalizes the predicted token weights using a tanh function. This helps to zero-center the weights and control their variance, crucial for stable training and preventing numerical issues when integrating MoD into pre-trained LLMs.
- Symmetric Token Reweighting (STRing): To better leverage the limited multimodal training data, the reweighting process is applied symmetrically to both selected and skipped tokens. This ensures that the weight predictor receives gradients for all tokens, leading to more accurate importance assessment.
- Progressive Ratio Decay (PRD): The authors observe that vision tokens become increasingly redundant in deeper LLM layers. PRD implements a strategy that gradually reduces the token retention ratio layer by layer, following a shifted cosine schedule. This allows the model to focus computational resources on the most informative tokens in later stages.
Datasets
The paper evaluates p-MoD on 15 benchmarks, including:
- Traditional Visual Question Answering: VQAv2, GQA, OK-VQA, AI2D, ScienceQA-IMG.
- Fine-grained Visual Question Answering: DocVQA, TextVQA, ChartQA, InfographicVQA.
- Hallucination Evaluation: POPE.
- Comprehensive Benchmarks: SEED-Bench (Image), RealWorldQA, MME, MMBench, MMMU.
The authors use the Imms-eval framework for consistent evaluation.
Key Insights and Ideas
- LLMs can self-prune vision tokens: The paper challenges the notion that vision token compression must happen before the LLM. It demonstrates that the LLM itself can learn to identify and discard redundant vision tokens within its layers, leading to significant efficiency gains.
- Deeper layers have more redundant vision tokens: Through exploratory experiments, the authors provide strong evidence that vision tokens become progressively less informative as they pass through deeper layers of the LLM. This insight is the foundation for the Progressive Ratio Decay strategy.
- Stable integration of MoD is crucial: Simply inserting MoD modules into pre-trained LLMs can lead to training instability. TanhNorm and STRing are critical for ensuring that MoD can be effectively trained alongside existing LLM components.
- Efficiency gains without significant performance loss: The combination of these techniques allows p-MoD to achieve substantial reductions in computational costs (TFLOPs, KV cache, GPU hours) while matching or even exceeding the performance of strong baselines.
Key Results
- Efficiency Improvements: p-MoD models achieve significant reductions in inference TFLOPs (up to 44.4% fewer) and KV cache storage (up to 53.7% less) compared to baselines like LLaVA-NeXT. Training efficiency is also boosted, with up to 77.7% fewer GPU hours required.
- Performance: The p-MoD models match or surpass the performance of their baseline counterparts across 15 benchmarks. For instance, p-MoD-LLaVA-NeXT shows negligible performance drops on text-rich benchmarks like DocVQA and InfoVQA, while improving on ChartQA.
- Ablation Studies: TanhNorm, STRing, and PRD are all shown to be indispensable innovations, each contributing significantly to the overall performance and efficiency gains. PRD, in particular, outperforms other ratio decay schedules.
Limitations and Future Work
- Limitations: The paper acknowledges that while p-MoD significantly improves efficiency, there is still a trade-off between efficiency and performance. The degree of this trade-off can be controlled by adjusting parameters like the shift factor $\beta$ in the PRD strategy.
- Future Work: The authors hope that p-MoD can serve as a strong and efficient baseline for future research in developing more efficient MLLMs. The modular nature of p-MoD suggests it could be readily integrated into other MLLM architectures.
Summary updated