HyperAIHyperAI

Command Palette

Search for a command to run...

5 months ago

Flamingo: a Visual Language Model for Few-Shot Learning

Flamingo: a Visual Language Model for Few-Shot Learning

Abstract

Building models that can be rapidly adapted to novel tasks using only ahandful of annotated examples is an open challenge for multimodal machinelearning research. We introduce Flamingo, a family of Visual Language Models(VLM) with this ability. We propose key architectural innovations to: (i)bridge powerful pretrained vision-only and language-only models, (ii) handlesequences of arbitrarily interleaved visual and textual data, and (iii)seamlessly ingest images or videos as inputs. Thanks to their flexibility,Flamingo models can be trained on large-scale multimodal web corpora containingarbitrarily interleaved text and images, which is key to endow them within-context few-shot learning capabilities. We perform a thorough evaluation ofour models, exploring and measuring their ability to rapidly adapt to a varietyof image and video tasks. These include open-ended tasks such as visualquestion-answering, where the model is prompted with a question which it has toanswer; captioning tasks, which evaluate the ability to describe a scene or anevent; and close-ended tasks such as multiple-choice visual question-answering.For tasks lying anywhere on this spectrum, a single Flamingo model can achievea new state of the art with few-shot learning, simply by prompting the modelwith task-specific examples. On numerous benchmarks, Flamingo outperformsmodels fine-tuned on thousands of times more task-specific data.

Code Repositories

doc-doc/NExT-OE
pytorch
Mentioned in GitHub
happen2me/cross-gnn
pytorch
Mentioned in GitHub
mlfoundations/open_flamingo
pytorch
Mentioned in GitHub

Benchmarks

BenchmarkMethodologyMetrics
action-recognition-on-rareact-
mWAP: 60.8
generative-visual-question-answering-on-pmcOpen-Flamingo
BLEU-1: 4.1
meme-classification-on-hateful-memesFlamingo (few-shot:32)
ROC-AUC: 0.700
meme-classification-on-hateful-memesFlamingo (fine-tuned)
ROC-AUC: 0.866
temporal-casual-qa-on-next-qaFlamingo(0-shot)
WUPS: 26.7
temporal-casual-qa-on-next-qaFlamingo(32-shot)
WUPS: 33.5
video-question-answering-on-situatedFlamingo-9B (4-shot)
Average Accuracy: 42.8
video-question-answering-on-situatedFlamingo-80B (0-shot)
Average Accuracy: 39.7
video-question-answering-on-situatedFlamingo-9B (0-shot)
Average Accuracy: 41.8
video-question-answering-on-situatedFlamingo-80B (4-shot)
Average Accuracy: 42.4
visual-question-answering-on-msrvtt-qa-1Flamingo (32-shot)
Accuracy: 0.310
visual-question-answering-on-msrvtt-qa-1Flamingo (0-shot)
Accuracy: 0.174
visual-question-answering-on-msrvtt-qa-1Flamingo
Accuracy: 0.474
visual-question-answering-on-ok-vqaFlamingo3B
Accuracy: 41.2
visual-question-answering-on-ok-vqaFlamingo9B
Accuracy: 44.7
visual-question-answering-on-ok-vqaFlamingo80B
Accuracy: 50.6
visual-question-answering-on-vqa-v2-test-devFlamingo 80B
Accuracy: 56.3
visual-question-answering-on-vqa-v2-test-devFlamingo 3B
Accuracy: 49.2
visual-question-answering-on-vqa-v2-test-devFlamingo 9B
Accuracy: 51.8
visual-question-answering-vqa-on-pmc-vqaOpen-Flamingo
Accuracy: 26.4
zero-shot-cross-modal-retrieval-on-coco-2014Flamingo
Image-to-text R@1: 65.9
Image-to-text R@10: 92.9
Image-to-text R@5: 87.3
Text-to-image R@1: 48.0
Text-to-image R@10: 82.1
Text-to-image R@5: 73.3
zero-shot-cross-modal-retrieval-on-flickr30kFlamingo
Image-to-text R@1: 89.3
Image-to-text R@10: 99.7
Image-to-text R@5: 98.8
Text-to-image R@1: 79.5
Text-to-image R@10: 97.9
Text-to-image R@5: 95.3
zero-shot-video-question-answer-on-starFlamingo-9B
Accuracy: 41.8

Build AI with AI

From idea to launch — accelerate your AI development with free AI co-coding, out-of-the-box environment and best price of GPUs.

AI Co-coding
Ready-to-use GPUs
Best Pricing
Get Started

Hyper Newsletters

Subscribe to our latest updates
We will deliver the latest updates of the week to your inbox at nine o'clock every Monday morning
Powered by MailChimp