图像以图像言说:面向上下文视觉学习的通才画家

Images Speak in Images: A Generalist Painter for In-Context Visual Learning

王鑫龙 Xinlong Wang · BAAI · 2022-12-05 · arXiv:2212.02499 ↗ · 被引 382

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

摘要 · Abstract

上下文学习作为自然语言处理中的新范式,允许模型仅凭少量提示和示例快速适应各种任务。但在计算机视觉中,上下文学习的困难在于任务在输出表示上差异显著,因此如何定义视觉模型能够理解并迁移到域外任务的通用任务提示尚不明确。在这项工作中,我们提出了 Painter,一个通才模型,它通过以“图像”为中心的解决方案来应对这些障碍,即重新定义核心视觉任务的输出为图像,并将任务提示也指定为图像。基于这一想法,我们的训练过程极其简单,即在输入和输出图像对的拼接上进行标准的掩码图像建模。这使得模型能够根据可见图像块执行任务。因此,在推理时,我们可以采用来自同一任务的一对输入和输出图像作为输入条件,以指示要执行的任务。无需繁琐的附加组件,我们的通才 Painter 在从高层视觉理解到低层图像处理的七个代表性视觉任务上,能够与成熟的任务特定模型取得竞争性表现。此外,Painter 在几个具有挑战性的任务上显著优于近期的通才模型。

In-context learning, as a new paradigm in NLP, allows the model to rapidly adapt to various tasks with only a handful of prompts and examples. But in computer vision, the difficulties for in-context learning lie in that tasks vary significantly in the output representations, thus it is unclear how to define the general-purpose task prompts that the vision model can understand and transfer to out-of-domain tasks. In this work, we present Painter, a generalist model which addresses these obstacles with an "image"-centric solution, that is, to redefine the output of core vision tasks as images, and specify task prompts as also images. With this idea, our training process is extremely simple, which performs standard masked image modeling on the stitch of input and output image pairs. This makes the model capable of performing tasks conditioned on visible image patches. Thus, during inference, we can adopt a pair of input and output images from the same task as the input condition, to indicate which task to perform. Without bells and whistles, our generalist Painter can achieve competitive performance compared to well-established task-specific models, on seven representative vision tasks ranging from high-level visual understanding to low-level image processing. In addition, Painter significantly outperforms recent generalist models on several challenging tasks.

核心贡献 · Key contributions

局限 · Limitations

论文章节 · Sections(共 13)

阅读逐段中英对照全文 →