arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2310.00390cs.CV
收藏

InstructCV:指令微调的文生图扩散模型作为视觉通才

InstructCV: Instruction-Tuned Text-to-Image Diffusion Models as Vision Generalists

Peking University(北京大学);UC Berkeley(加州大学伯克利分校);UCSF(加州大学旧金山分校);Broad Institute of MIT & Harvard(麻省理工学院与哈佛大学布罗德研究所)

Yulu Gan, Sungwoo Park, Alexander Schubert, Anthony Philippakis, Ahmed M. Alaa

AI总结:

本文提出InstructCV,将多个视觉任务统一为文生图问题,通过指令微调扩散模型,实现多任务视觉学习,并展现出良好的泛化能力。

摘要:

生成式扩散模型的最新进展已经能够通过文本控制合成逼真且多样化的图像,并具有令人印象深刻的质量。尽管取得了这些显著进展,文生图生成模型在计算机视觉中用于标准视觉识别任务的应用仍然有限。目前这些任务的主流做法是为手头的任务设计定制的模型架构和损失函数。在本文中,我们为计算机视觉任务开发了一个统一的语言接口,该接口抽象了任务特定的设计选择,并通过遵循自然语言指令来实现任务执行。我们的方法涉及将多个计算机视觉任务转化为文生图生成问题。在这里,文本表示描述任务的指令,而生成的图像是视觉编码的任务输出。为了训练我们的模型,我们汇集了涵盖一系列任务的常用计算机视觉数据集,包括分割、目标检测、深度估计和分类。然后,我们使用大型语言模型来改写传达要在每个图像上执行的特定任务的提示模板,通过这个过程,我们创建了一个多模态、多任务的训练数据集,包含输入和输出图像以及带注释的指令。遵循InstructPix2Pix架构,我们使用构建的数据集对文生图扩散模型进行指令微调,将其功能从生成模型转变为指令引导的多任务视觉学习者。实验表明,我们的模型(称为InstructCV)与其他通才和任务特定的视觉模型相比表现具有竞争力。此外,它展现出对未见数据、类别和用户指令的引人注目的泛化能力。

英文摘要:

Recent advances in generative diffusion models have enabled text-controlled synthesis of realistic and diverse images with impressive quality. Despite these remarkable advances, the application of text-to-image generative models in computer vision for standard visual recognition tasks remains limited. The current de facto approach for these tasks is to design model architectures and loss functions that are tailored to the task at hand. In this paper, we develop a unified language interface for computer vision tasks that abstracts away task-specific design choices and enables task execution by following natural language instructions. Our approach involves casting multiple computer vision tasks as text-to-image generation problems. Here, the text represents an instruction describing the task, and the resulting image is a visually-encoded task output. To train our model, we pool commonly-used computer vision datasets covering a range of tasks, including segmentation, object detection, depth estimation, and classification. We then use a large language model to paraphrase prompt templates that convey the specific tasks to be conducted on each image, and through this process, we create a multi-modal and multi-task training dataset comprising input and output images along with annotated instructions. Following the InstructPix2Pix architecture, we apply instruction-tuning to a text-to-image diffusion model using our constructed dataset, steering its functionality from a generative model to an instruction-guided multi-task vision learner. Experiments demonstrate that our model, dubbed InstructCV, performs competitively compared to other generalist and task-specific vision models. Moreover, it exhibits compelling generalization capabilities to unseen data, categories, and user instructions.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑