Back to Multimodal Mind Map
中文·English
👁️ MultimodalID: vlm-projector

VLM Projector MLP/Q-Former

VLM 投影器 MLP/Q-Former
🎯Core Definition
The projector maps visual features into the LLM's text embedding space; three mainstream routes: ① LLaVA's linear/two-layer MLP — h=MLP(zvis)h = \text{MLP}(z_{vis}) maps each visual token independently (typically 1024→4096 dims), preserving token count and spatial structure (576→576); ② BLIP-2's Q-Former — a set of learnable queries qR32×d\mathbf{q} \in \mathbb{R}^{32 \times d} extract information from visual features via cross-attention, compressing 576 visual tokens into 32 query tokens; ③ C-Abstractor — downsamples with 2×22 \times 2 strided convolutions, dividing token count by 4.
💡Use Cases
the second stage of every modular VLM; interviews ask “why does LLaVA use an MLP while BLIP-2 uses Q-Former” and how to pick the compression ratio.
Key Problems Solved
visual features (1024-dim CLIP space) and text embeddings (4096-dim LLM space) live in different spaces and cannot be concatenated directly; the MLP route compresses nothing and preserves spatial correspondence, suiting detail-hungry tasks (OCR/grounding), but 576 tokens inflate attention cost in the LLM; Q-Former's cross-attention queries compress 18× (576→32) for faster inference at the cost of spatial detail — which is why later Qwen-VL models went back to “MLP + a bigger vision tower”, showing the projector is the fidelity-vs-compression trade-off point.
🎯5 High-Frequency Exam Points
1
Write the MLP projection formula h=MLP(zvis)h = \text{MLP}(z_{vis}); how do token count and dims change in LLaVA?
2
How does Q-Former compress 576 visual tokens into 32? Role of learnable queries?
3
MLP projection vs Q-Former compression: trade-offs? Which tasks favor which?
4
How is the projector trained in the alignment stage? Is it updated together with the LLM?
5
How does C-Abstractor downsample? How many tokens does it save?
Updated 2026-08-12
🎯
Test Your Knowledge: Practice Questions for "VLM Projector MLP/Q-Former"
Single choice pitfall questions with instant feedback and mistake tracking.
🚀 Start Card Practice
Previous CardMultimodal Eval BenchmarksNext CardHigh-Res & Dynamic Tokens

🔗 More Multimodal Knowledge Cards

ASR (Whisper)Audio RepresentationClassifier-Free GuidanceCLIP Applications