TL;DR
This paper introduces LLaVA-SP, a novel method to improve multimodal large language models (MLLMs) by incorporating six "visual spatial tokens" that capture richer spatial relationships within images. This approach enhances visual understanding without significantly increasing computational costs, outperforming the state-of-the-art LLaVA-1.5 on various benchmarks.
What Problem Does This Paper Address?
Current multimodal large language models (MLLMs) often rely on vision encoders like CLIP-ViT, which excel at capturing global image features but struggle with the local relationships between adjacent image patches. This limitation can lead to weaker visual representations and hinder the MLLMs' ability to perform detailed visual understanding tasks. While some methods try to address this by increasing image resolution or using more powerful vision encoders, these often lead to a significant increase in computational cost. LLaVA-SP aims to bridge this gap by enhancing visual representation through a novel projector that extracts spatial information without a substantial increase in computational overhead.
Methods
LLaVA-SP builds upon the LLaVA-1.5 architecture, consisting of a vision encoder, a projector, and a large language model (LLM). The core innovation lies in the Projector, which has two key components:
- Spatial Feature Extractor (SFE): This module adds six visual spatial tokens to the original visual tokens. It achieves this through two strategies:
- Cropping: Progressively crops ViT patch features from the center outwards, creating multi-scale features arranged from "central region to global." This emphasizes detailed regional features.
-
Pooling: Uses adaptive pooling to generate multi-scale features arranged from "abstract to specific," capturing global semantics. Both strategies then use convolutional kernels to extract visual spatial features.
-
Detail Feature Integrator (DFI): This component uses a cross-attention mechanism to fuse fine-grained visual information from a larger feature map (Zs-big) into the extracted visual spatial tokens (Zs-small). This further enriches the visual representation without increasing the number of visual tokens.
The paper also proposes two model variants: LLaVA-SP-Cropping (focusing on detail features) and LLaVA-SP-Pooling (focusing on global semantics).
Datasets
The paper uses standard datasets for training and evaluation:
- Training: 558K pre-training data (sourced from LAION, Conceptual Captions, and SBU Captions) and 665K instruction-following data (LLaVA Synthetic Data).
- Evaluation: A wide range of multimodal benchmarks are used, including:
- General Visual Question Answering: VQAv2, GQA, VizWiz, ScienceQA-Image (SQA), TextVQA, and VQAT.
- Comprehensive Benchmarks: MM-Vet, MMBench, LLaVA-Bench-In-the-Wild (LLaVAW), MME-Perception (MMEP), and SEED-Bench-Image (SEED).
- Hallucination Benchmarks: POPE and MMVP.
- Visual Grounding: RefCOCO.
Key Insights and Ideas
- The Power of Six Tokens: The paper demonstrates that adding just six carefully designed visual spatial tokens can significantly boost an MLLM's visual understanding capabilities. This highlights that effective spatial representation doesn't necessarily require a massive increase in token count.
- Cropping vs. Pooling for Different Tasks: The two SFE strategies (cropping and pooling) show distinct strengths. Cropping excels at fine-grained detail tasks (like visual grounding), while pooling is better for tasks requiring a more general understanding of the image.
- Convolutional Kernels for Spatial Features: The use of convolutional kernels within the SFE is shown to be more effective than transformer blocks for extracting spatial information, likely due to their inherent ability to capture local patterns.
- DFI's Nuanced Impact: The Detail Feature Integrator (DFI) is beneficial for the cropping approach but can negatively affect the pooling approach. This suggests that the way spatial features are generated significantly influences how well fine-grained details can be integrated.
Key Results
- LLaVA-SP, fine-tuned with LoRA, outperforms the state-of-the-art LLaVA-1.5 on 10 out of 11 multimodal benchmarks.
- The best performing LLaVA-SP models achieved improvements such as +0.8% on VQAv2, +5.9% on VizWiz, and +2.5% on TextVQA compared to LLaVA-1.5*.
- LLaVA-SP models achieve nearly identical inference latency to LLaVA-1.5, demonstrating efficiency.
- LLaVA-SP-Cropping shows particular strength in visual grounding tasks, achieving the highest scores.
- The models effectively mitigate hallucination issues.
Limitations and Future Work
- DFI's Impact on Pooling: The paper notes that the DFI can negatively affect LLaVA-SP-Pooling, suggesting that the pooling operation might abstract features too much, making it harder for the attention mechanism to focus on relevant details. This could be an area for future exploration to better integrate fine-grained features with pooled representations.
- Generalization: While the paper shows LLaVA-SP can be adapted to other vision encoders (SigLIP) and MLLM frameworks (InternVL-2.0), further research could explore its compatibility with even more diverse and advanced architectures.
- Computational Cost: Although LLaVA-SP aims to be efficient, the paper acknowledges that increasing visual token counts can lead to higher training and inference costs. Future work might explore even more token-efficient methods.
Summary updated