In the rapidly evolving world of Multimodal Large Language Models (MLLMs), the "arms race" has largely focused on two fronts: scaling up the language model (LLM) and curating massive, high-quality instruction-tuning datasets. However, the vision side of the equation has remained surprisingly static. Most state-of-the-art models, like LLaVA, simply take the final high-level features from a frozen vision encoder and feed them into the LLM.
A new paper, "Dense Connector for MLLMs," presented at NeurIPS 2024, argues that this approach leaves a significant amount of "visual intelligence" on the table. By rethinking how we connect vision and language, the authors introduce a simple yet powerful architectural tweak that yields impressive gains across 19 benchmarks.
TL;DR
The Dense Connector is a plug-and-play module that enhances MLLMs by integrating features from multiple layers of a vision encoder rather than just the final one. This "free lunch" approach significantly boosts performance across image and video tasks with minimal computational overhead, even allowing for a 3x inference speedup via visual token downsampling without sacrificing accuracy.
What Problem Does This Paper Address?
The standard MLLM architecture consists of a frozen vision encoder (like CLIP), a pre-trained LLM, and a "connector" (usually a simple MLP) that bridges the two. Typically, only the features from the very last layer of the vision encoder are used.
The authors point out a fundamental oversight: different layers of a Vision Transformer (ViT) capture different levels of information. As shown in the attention maps in Figure 1(a), shallow layers might focus on local textures, while deeper layers capture global semantics. By only using the final layer, models miss out on the rich, multi-scale visual cues present in intermediate layers.
Methods
The core contribution is the Dense Connector (DC). Instead of a single path from the vision encoder to the LLM, the DC aggregates features from various depths. The authors explored three ways to do this, illustrated in Figure 2:
- Sparse Token Integration (STI): Selects tokens from a few specific layers, downsamples them, and appends them to the final layer's tokens. This increases the total number of tokens the LLM must process.
- Sparse Channel Integration (SCI): Selects tokens from specific layers and concatenates them along the channel dimension. This keeps the token count the same, avoiding extra LLM computation.
- Dense Channel Integration (DCI): The most robust version. It groups all layers of the vision encoder, sums the features within each group to reduce dimensionality, and then concatenates these group-level features.
Additionally, the authors proposed an Efficient Dense Connector. By using 2D bilinear interpolation to downsample the visual tokens after the DC, they can reduce the visual sequence length by 75% (e.g., from 576 tokens to 144) while maintaining performance comparable to the full-token baseline.
Datasets
The models were trained and evaluated on a massive battery of benchmarks:
- Training: Primarily the LLaVA-1.5 dataset (558K pre-training, 665K instruction tuning) and the larger Mini-Gemini dataset (1.2M/1.5M).
- Image Evaluation: 11 benchmarks including GQA, VQAv2, ScienceQA, TextVQA, MathVista, and MMMU.
- Video Evaluation: 8 zero-shot benchmarks such as MSVD-QA, MSRVTT-QA, and ActivityNet-QA, using the FreeVA training-free extension.
Key Insights and Ideas
- The "Free Lunch": Since the vision encoder is frozen, extracting intermediate features requires no extra forward passes. The only cost is a slightly larger initial linear layer in the connector.
- Channel vs. Token Concatenation: Concatenating features along the channel dimension (SCI/DCI) is generally superior to adding more tokens (STI). It allows the model to see more "depth" of information for each spatial location without increasing the sequence length, which is the primary bottleneck for LLM inference.
- Redundancy Compensation: The authors found that the extra information provided by multi-layer features compensates for the information lost when downsampling tokens. This is what enables their "Efficient" model to be so fast yet accurate.
Key Results
The Dense Connector consistently outperformed baselines across the board:
- State-of-the-Art Scaling: When paired with a Llama-3-70B backbone, the model achieved a massive 82.4% on ScienceQA and 79.4% on MMBench.
- Efficiency: The Efficient Dense Connector (144 tokens) matched LLaVA-1.5 (576 tokens) while providing a 3x inference speedup.
- Zero-Shot Video: Despite being trained only on images, the DC-enhanced models set new state-of-the-art records for zero-shot video QA, achieving 77.4% on MSVD-QA.
- Plug-and-Play: The method proved effective across different vision encoders (CLIP, SigLIP) and various MLLM architectures (LLaVA-v1.5, LLaVA-NeXT, Mini-Gemini).
Limitations and Future Work
The authors noted that their current instantiations do not introduce additional learnable parameters beyond the standard projection layer. While this keeps the model simple, they suggest that exploring more complex, parameterized ways to fuse these multi-layer features might yield even better modality alignment.
Furthermore, while the zero-shot video performance is strong, the model occasionally misidentifies video inputs as images (e.g., saying "The image shows..." instead of "The video shows..."), suggesting that a small amount of video-specific tuning could further refine the temporal understanding.
Summary updated