Abstract
Multimodal large language models (MLLMs) have demonstrated impressive performance in various vision-language (VL) tasks, but their expensive computations still limit real-world application. To address this issue, recent efforts aim to compress visual features to save computational costs. However, direct visual compression methods, such as efficient projectors, inevitably destroy visual semantics, especially in difficult samples. To overcome this, we propose a novel Dynamic Pyramid Network (DPN) for efficient MLLMs. DPN formulates MLLM as a hierarchical structure where visual features are gradually compressed with increasing depth, ensuring fine-grained information is perceived in shallow layers. We further introduce Dynamic Pooling Experts (DPE) that dynamically choose the optimal compression rate according to input features. Experimental results show that DPN can save up to 56% average FLOPs on LLaVA while achieving +0.74% performance gains, demonstrating superior efficiency and generalization.
Introduction
Multimodal Large Language Models (MLLMs), such as LLaVA, have set new standards in vision-language understanding. However, their deployment is hindered by the high computational cost of processing large numbers of visual tokens through deep transformer architectures.
Existing efficiency solutions often rely on static projectors to downsample images before they enter the LLM. This approach suffers from two primary drawbacks: information loss and inflexibility. Aggressive early compression can strip away fine-grained details necessary for complex tasks like OCR or small object detection. Furthermore, static methods apply the same computational budget to every image, regardless of its complexity, leading to inefficiencies in simple scenes and failures in difficult ones.
Methodology: The Dynamic Pyramid Network
To resolve these issues, we propose the Dynamic Pyramid Network (DPN). Unlike traditional models that compress tokens once at the input stage, DPN adopts a hierarchical approach. It embeds compression modules directly into the LLM at specific intervals, creating a "pyramid" where shallow layers maintain high-resolution features for initial perception, while deeper layers process a condensed set of tokens for high-level reasoning.
Dynamic Pooling Experts (DPE)
The core of DPN is the Dynamic Pooling Expert (DPE). This module acts as an adaptive "brain" for compression. For every input, a router determines the optimal pooling rate (e.g., 1×1, 1×2, or 2×2) based on the visual features and the specific textual prompt. This allows the model to be task-aware: a simple question about a scene's mood might trigger high compression, whereas a request to read a license plate would maintain full resolution.
Routing and Training
To optimize this selection process, we introduce a Routing Loss. This hinge loss encourages the model to achieve a target compression rate (e.g., 1.5x) without sacrificing accuracy. This mechanism effectively trains the model to allocate its computational budget where it is most needed.
Experimental Evaluation
We evaluated DPN across ten diverse benchmarks, including general vision-language tasks (VQAv2, GQA), fine-grained OCR (TextVQA), and comprehensive MLLM benchmarks (MMBench, MMMU, SEED). The models were trained using the LLaVA-v1.5-665K instruction-tuning dataset to ensure a fair comparison with existing baselines.
Results and Discussion
Our experiments demonstrate that DPN significantly outperforms existing efficient MLLM methods in both speed and accuracy.
- Efficiency and Speed: DPN reduces average FLOPs by 56% on LLaVA-1.5 7B and provides a 1.4x speedup on high-resolution models like LLaVA-HR-X.
- Performance Gains: Surprisingly, DPN does not just maintain performance; it improves it. On the GQA benchmark, DPN-LLaVA (7B) achieved a 1.2% accuracy boost over the baseline. This suggests that adaptive compression may act as a regularizer, helping the model focus on relevant information by filtering out redundant visual noise in deeper layers.
Qualitative analysis further confirms that DPN is superior at identifying small objects and reading scene text compared to methods like FastV or TokenPacker, which often "compress away" vital details.
Conclusion
The Dynamic Pyramid Network represents a significant step toward practical, efficient MLLMs. By replacing static pre-processing with a hierarchical, sample-adaptive architecture, DPN achieves substantial computational savings while simultaneously improving model performance. Future work will explore combining DPN with other efficiency techniques like quantization to further enable multimodal intelligence on edge devices.
Summary updated