Papers / Vision
Flamingo (2022)
Flamingo: a Visual Language Model for Few-Shot Learning
Bridged a frozen vision encoder and a frozen LLM with gated cross-attention so one model learns new visual tasks from a few examples in the prompt.
Why it matters
CLIP aligned images with short captions, but could not generate text or hold a multi-image conversation. Flamingo brought GPT-3's in-context few-shot prompting to vision and video, proving that pretrained vision and language backbones could be stitched together into a single generalist visual language model.
- Year
- 2022
- Authors
- Jean-Baptiste Alayrac, Jeff Donahue, Pauline Luc, Antoine Miech, Iain Barr, Yana Hasson, Karel Lenc, Arthur Mensch, Katie Millican, Malcolm Reynolds, Roman Ring, Eliza Rutherford, et al.
- Venue
- NeurIPS 2022
- Data
- VQA v2, MS COCO, Flickr30k, TextVQA, ImageNet (ILSVRC)
The idea
Take a contrastively pretrained vision encoder and a large language model (Chinchilla) and keep both frozen. A Perceiver Resampler compresses variable numbers of image or video features into a fixed set of visual tokens, and freshly initialized gated cross-attention layers—starting at zero so the language model stays intact at step one—are interleaved between the frozen LLM blocks and trained on web pages with mixed images and text.
The result
Flamingo-80B reached 56.3% zero-shot and 67.6% 32-shot on VQA v2, 113.8 CIDEr on COCO captions and 37.9% 32-shot on TextVQA without OCR—and when fine-tuned set a new state of the art of 82.0% on VQA v2.
The data
VQA v2
20171.1 million questions about COCO photos, each answered by ten people. (5 years earlier)




MS COCO
2014330k everyday scenes with 1.5M labeled objects in 80 categories. (8 years earlier)




Flickr30k
201431,000 Flickr photos of people and everyday scenes, each with five written captions. (8 years earlier)




TextVQA
201945,000 questions about signs, labels, clocks and book covers in everyday photos, each answered by ten people. (3 years earlier)




ImageNet (ILSVRC)
20091.28 million photos across 1,000 classes, the dataset behind the deep learning boom. (13 years earlier)




Builds on
Led to
- BLIP-2 (2023): Connected off-the-shelf frozen ViTs and frozen LLMs through a compact 188M-parameter Querying Transformer trained in two stages.
