Why is the connector the pivotal design choice in a vision-language model?
Same topic, related formats. Practice these next.
Same topic, related formats. Practice these next.
What does the projection/connector layer do in a vision-language model, and why do engineers call it the key design choice rather than just plumbing?
The connector maps vision features into the LLM's token space. It is pivotal because its design sets capability, per-image token cost, and how much retraining you need — all at once.
Imagine a chef (the language model) who only reads recipes written in their own handwriting. A photographer hands over pictures, but the chef can't read pictures. The connector is the assistant who rewrites what's in each photo into the chef's handwriting so the chef can cook with it. The twist: how that assistant works decides a lot. Copy every tiny detail and the chef drowns in pages to read. Summarize too hard and the chef misses things. So the assistant's style — verbose or terse — quietly sets how much work the chef does and how good the dish is.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example.
Everything important, quickly.
About 6 minutes: define what the connector maps and why, then walk the three budgets it sets, and contrast MLP, resampler, and cross-attention with their token-cost consequences.
| Connector | Vision tokens per image | Tradeoff |
|---|---|---|
| MLP projection (LLaVA-style) | One per patch — grows with resolution | Cheap to train, detail-preserving, but burns context length |
| Resampler / Q-Former | Fixed small set (e.g. 32-256) | Caps cost at any resolution, risks losing fine detail, harder to train |
| Cross-attention (Flamingo-style) | Zero added to the sequence | Decouples image count from context length, more invasive to the LLM |
Real products, models, and research that use this idea.
What an interviewer would ask next. Try answering before peeking at the approach.
Red flags and common mistakes that signal junior thinking. Click to expand.
Calling the connector "just a projection" or plumbing. Its design directly sets how many vision tokens an image costs, which drives context length, latency, and price.
The night-before-the-interview bullets. Scan these on the way to the call.
Primary sources. Skim if you want the original framing.