Introduction
The Spatial-Aware Efficient Projector (SAEP) is a novel component for Multimodal Large Language Models (MLLMs) designed to address the efficiency and spatial reasoning limitations of standard MLP-based projectors. By reducing the number of visual tokens by 75% while simultaneously improving spatial reasoning and visual grounding capabilities, SAEP bridges the modality gap more effectively than traditional methods.
The Challenge of Standard Projectors
In models like LLaVA, a projector connects the vision encoder to the Large Language Model (LLM). Most current implementations rely on a simple Multi-Layer Perceptron (MLP), which faces two major flaws:
- Efficiency Bottleneck: MLP projectors create a one-to-one mapping of visual patches to tokens. As image resolution increases, the token count explodes, leading to high computational costs for the LLM.
- Spatial Blindness: Vision encoders typically flatten 2D images into 1D sequences. Simple MLPs process these patches independently, failing to capture the 2D spatial relationships (e.g., "left of" or "inside") essential for complex visual understanding.
Methodology: The SAEP Architecture
SAEP moves away from linear transformations toward a spatial-aware architecture with several key innovations:
- 2D Reorganization: Visual features are reshaped back into their original 2D grid (e.g., a $24 \times 24$ map) to preserve spatial context.
- Multi-Layer Feature Aggregation: Instead of using only the final encoder output, SAEP extracts features from multiple layers (e.g., layers 10, 14, 18, 21, and 23 of a CLIP-ViT). This captures both low-level details and high-level semantics.
- Modified Separable Depthwise Convolution: A two-step convolution process aggregates information across layers (pointwise) and neighboring spatial regions (depthwise).
- Token Reduction: An average pooling layer compresses the visual sequence (e.g., from 576 to 144 tokens), significantly reducing the LLM's workload.
Layer Selection Strategy
The authors utilized cosine similarity analysis to determine which layers to aggregate. They found that the 10th layer (lowest intra-layer similarity) and the 21st layer (an "information pivot") were particularly valuable, leading to a principled strategy for choosing multi-layer features.
Experimental Setup
The model was trained using the LLaVA-1.5 recipe, including pre-training on LCS-558K image-text pairs and instruction tuning on 665K mixed samples. Evaluation was conducted across a wide range of benchmarks, including MME (Position), MMBench, SEED-Bench, Visual Spatial Reasoning (VSR), and visual grounding tasks like RefCOCO.
Key Results and Insights
SAEP demonstrates that the quality of tokens is more important than the quantity. Despite using 4x fewer tokens, SAEP consistently outperforms MLP-based baselines.
- Superior Spatial Reasoning: On a normalized average of 7 spatial tasks, SAEP scored 51.4, outperforming the standard MLP (46.7).
- Grounding Gains: In visual grounding, SAEP achieved an average score of 61.4, a 9.7-point jump over the MLP baseline.
- Efficiency Boost: Training time was reduced by ~35%, and inference efficiency improved by 17.5%.
- General Robustness: SAEP maintained or improved performance on general benchmarks like VQAv2 and GQA.
Conclusion and Future Work
SAEP provides a more efficient and spatially aware bridge for MLLMs. By incorporating spatial inductive bias through convolutions and multi-layer aggregation, it achieves state-of-the-art performance with significantly lower computational overhead. Future research may explore dynamic token reduction based on image complexity and scaling the architecture to much larger LLMs.
Summary updated