PIXELBANKv8.2.1
Menu
Back to Concepts
Vision-Language2023

BLIP-2

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 arXiv

Paper Overview

BLIP-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.

Chapter Roadmap

Click any topic to jump in

1
The Modality Gap

Freeze a vision encoder and an LLM and you save enormous compute — but neither has ever seen the other's representation space.

bridged by
2
Q-Former

188M trainable parameters and 32 learned queries form an information bottleneck between a frozen ViT and a frozen LLM.

first trained via
3
Stage 1 — Representation Learning

Three objectives (ITC, ITG, ITM) share one model and differ only in the self-attention mask between queries and text.

then trained via
4
Stage 2 — Generative Learning

A single fully-connected layer projects the 32 query outputs into the LLM's embedding space as soft visual prompts.

scaled with
5
Pre-training Recipe

129M images, CapFilt synthetic captions, and interchangeable frozen backbones — CLIP ViT-L/14, EVA-CLIP ViT-g/14, OPT, FlanT5.

produces

Outcomes and caveats

6
Results

65.0 on zero-shot VQAv2 with 188M trainable parameters — beating Flamingo80B's 56.3 while training 54x fewer.

7
Limitations

No in-context learning, inherited LLM failure modes, and a frozen-model design that cannot repair either.

Premium Content

Upgrade to PixelBank Premium to unlock this content.