← Back to Multimodal Mind Map
⚡Flashcard Drill➔
👁️ 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 q∈R32×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.
🎯Core Interview Exam Points
Fundamentals · Production Scenarios · Deep Dive
Core Def
Explain the core definition, underlying mechanism/math, and key principles of VLM Projector MLP/Q-Former.
Use Cases
In production engineering, what are the primary use cases for VLM Projector MLP/Q-Former and what core pain points does it solve?
🔥 High-Frequency Deep-Dive Questions
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
🎯
Verify Mastery: Practice Exam Questions for "VLM Projector MLP/Q-Former"
Take pitfall multiple-choice questions with derivation options; mistakes are automatically logged.
🚀 Start Card Practice ➔
⚡
Test muscle memory on this topic via 3-Layer Flashcards
Active Recall: Mentally formulate Prompt ➔ Math Derivation ➔ Benchmark Implementation in 3 minutes.
🎯 Drill This Card Now➔
← Previous CardMultimodal Eval BenchmarksNext Card →High-Res & Dynamic Tokens

🔗 More Multimodal Knowledge Cards

引用出处: TalentMe 450+ 工业级 AI 架构考点知识库 (Tech Vault) · 遵循 CC-BY-4.0 知识共享协议
URL: https://talentme.airsota.com/resources/tech/roadmap/mindmap/Multimodal/card/vlm-projector