Zenaique

Compare projection adapter, cross-attention, and early fusion as ways to combine vision and language

Short answer·Hard·4.0 · 0·~3 min·Asked atCrestaMckinseyTesla
Attempt it

A VLM has to merge vision encoder features with a text LLM. Compare projection adapter (LLaVA style), cross-attention (Flamingo style), and unified early fusion (Fuyu / native GPT-4o), and explain the tradeoff each one makes around sequence length, training cost, and capability.

Free · 2 AI evals / day
TL;DR

Fusion trades off on one triangle: projection-adapter is cheap but spends context per image, cross-attention decouples image count at higher training cost, and early fusion mixes tightest but needs full joint training.

Memory aid
Sign in to see the mnemonic that makes this stick.
Easy to grasp

Imagine teaching a fluent storyteller to also use pictures. The quick way: turn each picture into a paragraph of words and slip it into the story — easy, but long pictures make the story balloon. The flexible way: leave the story untouched and let the storyteller peek at a gallery on the wall whenever needed — you can hang any number of pictures without lengthening the story, but you have to train that peeking habit carefully. The deepest way: raise the storyteller from birth to think in pictures and words as one thing — the most natural blend, but you cannot reuse a storyteller who already learned words only. Choosing a fusion strategy means picking which of those costs you can afford.

Concept explanation~2 min read

Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.

Fusion strategy is where a vision-language model's whole cost structure is decided, which is why staff-level interviews park on it. The wrong instinct is to ask which design is best. There is no best — there is a triangle of costs, and each strategy is a deliberate choice about which cost you can afford for a given product.

The three costs are context budget (how much sequence length visual content consumes), training budget (how much compute and data the connector demands), and mixing depth (how tightly the two modalities interact, which sets the capability ceiling). This deep dive treats the comparison as a constrained optimization over those three axes. It quantifies the projection-adapter's context cost with real token math, shows how cross-attention and early fusion buy context independence and mixing depth at a training-cost premium, and adds the resampler lever that lets you tune the projection path's token budget. The goal is to leave you able to recommend a strategy from a workload description, not recite three definitions.

The cost triangle that defines the choice

Start by naming the three axes, because every strategy is a point in this space and the comparison collapses without it.

Context budget. Visual content can consume sequence length. If it does, then image count and resolution eat into the window the model has for text and reasoning. This is a runtime cost, paid on every request.

Training budget. Connecting an encoder to an LLM can be as cheap as training a two-layer MLP or as expensive as jointly pretraining the entire model from scratch. This is a one-time cost, but it gates how quickly you can iterate and whether you can reuse pretrained components.

Mixing depth. How early and how often the modalities interact sets the capability ceiling. Features spliced in late mix less than patches that share every layer with text. Deeper mixing tends to mean stronger cross-modal reasoning.

The reason there is no universal winner is that these axes trade against each other. Cheap training tends to come with a context penalty. Context independence tends to cost training effort. The tightest mixing tends to cost the most training and the most modularity. A senior answer states the triangle first, then places each strategy on it, because the placement is what the design decision actually turns on.

Framing it as a triangle also guards against a common interview trap: declaring one strategy simply "best." The moment you name the three axes, it becomes obvious that a workload chooses the winner. A single-image consumer chatbot and a from-scratch frontier model are optimizing for different corners, and a recommendation that ignores which corner the product lives in is not a senior answer, however confidently it is delivered.

Projection-adapter and the arithmetic of context cost
Cross-attention and early fusion: paying training for context or mixing
The resampler lever and choosing by workload
Sign in to unlock the full deep dive.

Situations where this technique stops working.

Sign in to see when this approach fails.

2–4 min · Everything important, quickly.

Sign in to see the quick scan of the deep dive.
AxisProjection-adapter (LLaVA)Cross-attention (Flamingo)Early fusion (Fuyu / GPT-4o)
Visual feature placementInside the token sequenceOutside, via inserted attention layersOne stream, no separate encoder
Sequence-length costScales with image count and resolutionDecoupled from image countModerate, tightest mixing
Training costLow — MLP on frozen towersMedium — added params, harder to trainHigh — joint training from scratch
Best fitSingle-image chat, cheap iterationMany-image and interleaved inputsFrontier native multimodal models

Real products, models, and research that use this idea.

  • LLaVA's projection-adapter trains a two-layer MLP on a frozen ViT and LLM, the cheapest path to a capable open VLM
  • Flamingo's gated cross-attention let one model ingest interleaved image-text few-shot prompts without inflating sequence length
Sign in to see more production examples.

What an interviewer would ask next. Try answering before peeking at the approach.

QWhere does a resampler like a Q-Former sit in this taxonomy, and what does it change?
A

It is a compression stage between the encoder and the connector, not a fourth fusion family. It maps the encoder's many patch features to a small fixed set of query tokens, capping tokens per image. Inside the projection path it blunts the context penalty; it can also feed cross-attention. Frame it as a lever on the token budget, orthogonal to where features enter.

1 more follow-up an interviewer would ask next. Sign in to reveal them.

Red flags & common mistakes

The phrases that signal junior thinking. Click to expand.

Most common mistake

Recommending a projection-adapter for a many-image product because it is cheap to train, ignoring that each image multiplies the context length until requests overflow the window.

Sign in to see all red flags and common mistakes.

60 second bullets to scan on the way to the call.

  • Name the three axes the fusion strategies trade off against

  • Explain why projection-adapter context scales with image count and resolution

Sign in to unlock the revision sheet.

Primary sources. Browse if you want the original framing.

Similar questions

Same topic, related formats. Practice these next.

4 curated
Next question
Which factor most directly…
MCQ·Medium