← Back to Multimodal Mind Map
⚡Flashcard Drill➔
👁️ MultimodalID: vision-encoder

Vision Encoder

视觉编码器
🎯Core Definition
The vision encoder of a VLM usually reuses CLIP's ViT (CLIP-ViT-L/14 is the LLaVA-1.5 default) or SigLIP (the LLaVA-1.6 upgrade): the image is split into p×pp \times p patches, position-encoded, and passed through a Transformer, with token count T=(H/p)×(W/p)T = (H/p) \times (W/p) — e.g. a 336×336 input with 14×14 patches yields 24×24=57624 \times 24 = 576 visual tokens. SigLIP replaces the softmax contrastive loss with a sigmoid loss, removing the dependence on in-batch negatives and temperature, so training uses less memory and smaller batches.
💡Use Cases
the first stage of virtually every modular VLM (LLaVA/Qwen-VL/InternVL); interviews probe “why freeze the vision tower” and the patch-size vs resolution trade-off; high-resolution needs pair it with AnyRes or dynamic-token schemes.
⚡Key Problems Solved
reusing a pretrained CLIP vision tower gives zero-shot alignment for free, and freezing it in early training stages (training only the projector) prevents visual gradients from corrupting text embeddings while saving roughly half the vision tower's memory and compute; the downside is that fixed patches lose fine details — at 336×336 with ViT-14 you only get 576 tokens, so small text/objects are under-encoded, which is why LLaVA-1.6 uses AnyRes grid patching (576 tokens per grid) and Qwen2-VL uses dynamic resolution: trading more tokens for high-res detail.
🎯Core Interview Exam Points
Fundamentals · Production Scenarios · Deep Dive
Core Def
Explain the core definition, underlying mechanism/math, and key principles of Vision Encoder.
Use Cases
In production engineering, what are the primary use cases for Vision Encoder and what core pain points does it solve?
🔥 High-Frequency Deep-Dive Questions
1
How many visual tokens does 336×336 + ViT-14 produce? Give the formula.
2
Why freeze the vision encoder in early VLM stages? When is it unfrozen?
3
CLIP ViT vs SigLIP: what does the sigmoid loss fix?
4
Is a larger vision ViT always better? How to weigh training cost vs gain?
5
With a frozen vision tower, why can high-resolution ability still emerge (AnyRes patching)?
Updated 2026-08-12
🎯
Verify Mastery: Practice Exam Questions for "Vision Encoder"
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 CardVLM ArchitectureNext Card →Interleaved Training Data

🔗 More Multimodal Knowledge Cards

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