Flamingo:一种用于少样本学习的视觉语言模型

Flamingo: a Visual Language Model for Few-Shot Learning

让-巴蒂斯特·阿拉亚克 Jean-Baptiste Alayrac · Google DeepMind · 2022-04-29 · arXiv:2204.14198 ↗ · 被引 6113

打开互动全文版(逐段中英对照 + 图/公式 + 论文问答)→

摘要 · Abstract

构建能够仅使用少量标注示例快速适应新任务的模型是多模态机器学习研究的一个开放挑战。我们引入了 Flamingo,一系列具有这种能力的视觉语言模型(VLM)。我们提出了关键架构创新,以:(i)桥接强大的预训练纯视觉和纯语言模型,(ii)处理任意交错视觉和文本数据的序列,以及(iii)无缝地将图像或视频作为输入。得益于其灵活性,Flamingo 模型可以在包含任意交错文本和图像的大规模多模态网络语料库上进行训练,这是赋予它们上下文少样本学习能力的关键。我们对模型进行了全面评估,探索并衡量了它们快速适应各种图像和视频任务的能力。这些任务包括开放式任务,如视觉问答,其中模型被提示一个问题并需要回答;字幕任务,评估描述场景或事件的能力;以及封闭式任务,如多项选择视觉问答。对于这一范围内的任何任务,单个 Flamingo 模型可以通过简单地用任务特定示例提示模型,在少样本学习中达到新的最优水平。在众多基准测试中,Flamingo 优于在数千倍更多任务特定数据上微调的模型。

Building models that can be rapidly adapted to novel tasks using only a handful of annotated examples is an open challenge for multimodal machine learning 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) handle sequences 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 containing arbitrarily interleaved text and images, which is key to endow them with in-context few-shot learning capabilities. We perform a thorough evaluation of our models, exploring and measuring their ability to rapidly adapt to a variety of image and video tasks. These include open-ended tasks such as visual question-answering, where the model is prompted with a question which 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. For tasks lying anywhere on this spectrum, a single Flamingo model can achieve a new state of the art with few-shot learning, simply by prompting the model with task-specific examples. On numerous benchmarks, Flamingo outperforms models fine-tuned on thousands of times more task-specific data.

核心贡献 · Key contributions

局限 · Limitations

论文章节 · Sections(共 14)

阅读逐段中英对照全文 →