What it is used for
Flamingo is used for image and video understanding tasks of widely varying shape. Its paper names that spectrum plainly: open-ended tasks such as visual question-answering, where the model is given a question it has to answer; captioning tasks, which evaluate the ability to describe a scene or an event; and close-ended tasks such as multiple-choice visual question-answering. One and the same model serves all three, because the task is set by the examples in the prompt, not by retraining.
Compare this with the older way, as the official DeepMind blog describes it. A typical vision model had to be trained on tens of thousands of examples labelled specifically for each new task, and a new model had to be trained every time the task changed, making the process inefficient, expensive, and resource-intensive. On the 16 tasks its makers studied, the official blog states that Flamingo beat all previous few-shot learning approaches with as few as four examples per task, and in several cases the same model outperformed methods fine-tuned separately for each task on task-specific data that the paper's abstract puts at thousands of times more.
How to use it
The way Flamingo works can be read as three parts joined together. The first part is a ready-made vision reader that is frozen, meaning it is not trained any further; the paper uses an image reader named NFNet-F6, previously trained by comparing images with text. The second part is the Perceiver Resampler, a new component that compresses each image or video into a small, fixed number of visual tokens, however large the original input is. The third part is the large Chinchilla language model, also frozen, with new layers called gated cross-attention layers inserted between its layers, so that the text being written can attend to the visual tokens of the image that precedes it.
Only those connecting components are trained, not the two large frozen models. The training uses large-scale web data with no task-specific labels: a collection of web pages named M3W holding 43 million pages with text and images interleaved in their original places, plus image and text pairs named LTIP holding 312 million images, and video and text pairs named VTP holding 27 million videos. Once training is done, using it is as simple as using a language model: arrange a few example pairs of inputs and expected answers inside the prompt, then present a new image or video with its question, and the model answers following the pattern of those examples.
Real examples
None of the following examples was invented for this article. All three are recorded in the primary paper written by its own researchers and in the official DeepMind blog, and their figures are the results those sources reported in their time.
The first example is the breadth of its few-shot results. Its largest model, called simply Flamingo and sized at 80 billion parameters, set a new state of the art for this way of learning on the 9 tasks that had published comparison results, and with 32 examples in the prompt it outperformed the fine-tuned state of the art on 6 of the 16 tasks studied, with no fine-tuning at all. On the VQAv2 visual question-answering benchmark it reached 67.6, and on the OKVQA knowledge question-answering benchmark it reached 57.8, both with 32 examples.
The second example is question-answering about video. Because video input travels through the same path as images, one and the same model answered questions about video content on the MSVDQA benchmark with a score of 52.3 at 32 examples. This ability shows that the interleaved design works beyond still images: a sequence of video frames is treated as visual input preceding the text, just like an image.
The third example shows its ceiling when task-specific fine-tuning is done after all. Its makers fine-tuned Flamingo on the nine tasks where the few-shot approach had not reached the best standing, and the fine-tuned model set a new state of the art on five of them. Its VQAv2 score rose to 82.0 and its captioning CIDEr score on the COCO benchmark reached 138.1, outperforming methods that used tricks such as model ensembling or direct optimisation of the scoring metric.
Practitioner level
For practitioners, the Flamingo family comes in three sizes built on three Chinchilla language models: Flamingo-3B on a 1.4 billion parameter model, Flamingo-9B on a 7 billion parameter model, and Flamingo on a 70 billion parameter model, for a total of 80 billion parameters. In its largest model, the paper records that almost 90 percent of its parameters stay frozen during training, because only the Perceiver Resampler and the new gated cross-attention layers are trained. The Computer Vision Online technical explainer spells out two design figures that the paper's body does not state as plainly: the Perceiver Resampler summarises each image or video into 64 visual tokens, and the gate on its cross-attention layers uses a tanh function whose value starts at zero, so at the beginning of training the model behaves exactly like its original language model and the influence of images enters gradually.
The official names of its parts are kept as they are here: Perceiver Resampler for the visual input compressor, and the GATED XATTN-DENSE block for the gated cross-attention layer inserted between the frozen language model blocks. Each text token attends only to the visual tokens of the image that appeared just before it in the interleaved sequence, not to all images at once, and that rule keeps the computation under control when a prompt holds many images.
Expert level
At the expert level, the core of Flamingo is the conditioning of text on vision inside a frozen language model. The language model's weights are never changed; its language knowledge stays intact, and vision enters only through cross-attention at the insertion points. The Perceiver Resampler is the bottleneck that makes this design possible: visual input whose pixel or frame count varies always comes out as a fixed number of visual tokens, so the language model faces the same load for one small image or one long video.
The paper's ablation study shows which training material matters most. On Flamingo-3B with four examples, removing M3W, the web pages with interleaved images and text, from training lowered the ablation's overall score from 70.7 to 53.4, the largest drop among all the materials removed, larger than removing the image and text pairs or the video and text pairs. That finding supports the paper's central claim: the ability to learn from a handful of examples is born from training on interleaved data, not from model size alone.
Flamingo's later standing is recorded by the Computer Vision Online technical explainer. Its recipe proved influential and was reproduced openly by the OpenFlamingo project and the IDEFICS model; according to that explainer, IDEFICS-80B with 32 examples in its prompt matched or beat Flamingo-80B on 4 of 8 benchmarks, while still trailing on VQAv2 with 65.9 against 67.6. This article places that history at the standing of the secondary source reporting it, not of the primary paper.
Limits and risks
The first limit is stated by its own makers. The official DeepMind blog records that its team tested the model's generated captions for images related to gender and skin colour, and ran those captions through a text toxicity evaluator, with positive initial results; but the same blog stresses that more research into the ethical risks of multimodal systems is crucial and urges anyone to evaluate these issues carefully before thinking of deploying such a system in the real world. This article follows that cautious frame.
The second limit is availability. The original Flamingo model was not made openly available by DeepMind, so what the public can use and inspect is its open reproductions by other parties, as the Computer Vision Online technical explainer records. Anyone wanting to try the recipe today works through those reproductions, not through the original model whose figures the paper reports.
The third limit concerns the standing of its numbers. All results in this article are results reported by the paper's authors and the official DeepMind blog in 2022, on the benchmark suites and measurement methods of that time; those figures show what their experiments achieved, not a promise that the same gap appears on other data or other tasks. Its size is also a real limit: the largest model holds 80 billion parameters, and even though almost 90 percent of its weights are frozen, all of them still have to run to produce an answer, so using it is far heavier than using a small task-specific model.