Bootstrapping Language-Image Pre-training with Frozen Image Encoders and Large Language Models
Junnan Li, Dongxu Li, Silvio Savarese, Steven Hoi
Read the Paper on arXivBLIP-2 (Li, Li, Savarese & Hoi — Salesforce Research, ICML 2023) asks what looks like an accounting question and turns it into an architecture. End-to-end vision-language pre-training had become ruinously expensive, and the field's response was mostly to spend more. BLIP-2's response is to spend almost nothing: take an off-the-shelf image encoder, take an off-the-shelf LLM, freeze both, and train a small module in between.
The difficulty is that a frozen image encoder and a frozen LLM have never met. The LLM has never seen a pixel; the vision encoder has never been asked to produce something a language model can read. Earlier work tried to close this gap with an image-to-text generation loss alone, which BLIP-2 argues is insufficient — catastrophic forgetting is avoided by freezing, but alignment then has nowhere to come from.
The answer is the Querying Transformer (Q-Former): 32 learned query vectors that interrogate the frozen visual features and emit a fixed-size, language-shaped summary. It is trained in two stages — first to make those queries extract text-relevant visual information, then to make their output legible to a frozen LLM as a soft prompt.
The payoff is stark. BLIP-2 trains 188M parameters and scores 65.0 on zero-shot VQAv2; Flamingo80B trains 10.2B and scores 56.3. Same task, 54x fewer trainable parameters, 8.7 points better.
Click any topic to jump in
Freeze a vision encoder and an LLM and you save enormous compute — but neither has ever seen the other's representation space.
188M trainable parameters and 32 learned queries form an information bottleneck between a frozen ViT and a frozen LLM.
Three objectives (ITC, ITG, ITM) share one model and differ only in the self-attention mask between queries and text.
A single fully-connected layer projects the 32 query outputs into the LLM's embedding space as soft visual prompts.
129M images, CapFilt synthetic captions, and interchangeable frozen backbones — CLIP ViT-L/14, EVA-CLIP ViT-g/14, OPT, FlanT5.
Outcomes and caveats
65.0 on zero-shot VQAv2 with 188M trainable parameters — beating Flamingo80B's 56.3 while training 54x fewer.
No in-context learning, inherited LLM failure modes, and a frozen-model design that cannot repair either.
Upgrade to PixelBank Premium to unlock this content.