The standard VLM (Vision-Language Model) recipe is three parts — vision encoder + projector + LLM: the vision encoder (CLIP ViT) patchifies the image into visual features
zvis, the projector (MLP/Q-Former) maps them into the LLM's text embedding space, and the LLM generates text autoregressively, trained by cross-entropy on assistant tokens:
L=−∑tlogp(yt∣y<t,v). Fusion placement defines the family: LLaVA/Qwen-VL fuse at the LLM input (projected visual tokens prepended to the input sequence); BLIP-2 compresses via Q-Former cross-attention before injection; Flamingo inserts cross-attention layers inside the LLM (interleaved fusion).