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

为扩散模型解锁上下文学习

In-Context Learning Unlocked for Diffusion Models

The University of Texas at Austin(德克萨斯大学奥斯汀分校);Microsoft Azure AI(微软Azure人工智能部门)

Zhendong Wang, Yifan Jiang, Yadong Lu, Yelong Shen, Pengcheng He, Weizhu Chen, Zhangyang Wang, Mingyuan Zhou

AI总结:

本文提出 Prompt Diffusion 框架,通过引入视觉-语言提示并在六项任务上联合训练扩散模型,首次实现了基于扩散模型的视觉-语言上下文学习,并具备对未见任务的泛化及文本引导图像编辑能力。

摘要:

我们提出了 Prompt Diffusion,一个在基于扩散的生成模型中实现上下文学习的框架。给定一对特定任务的示例图像,例如深度图到/自图像和涂鸦到/自图像,以及文本引导,我们的模型会自动理解潜在任务,并在遵循文本引导的情况下对新查询图像执行相同任务。为此,我们提出了一种能够对广泛视觉-语言任务进行建模的视觉-语言提示,以及一个将其作为输入的扩散模型。该扩散模型使用这些提示在六个不同任务上进行了联合训练。由此产生的 Prompt Diffusion 模型是首个具备上下文学习能力的基于扩散的视觉-语言基础模型。它在已训练任务上展示了高质量的上下文生成,并能利用各自提示有效泛化到新的、未见过的视觉任务。我们的模型还展示了令人信服的文本引导图像编辑结果。我们的框架旨在促进计算机视觉上下文学习的研究。我们在 https://github.com/Zhendong-Wang/Prompt-Diffusion 分享了代码和预训练模型。

英文摘要:

We present Prompt Diffusion, a framework for enabling in-context learning in diffusion-based generative models. Given a pair of task-specific example images, such as depth from/to image and scribble from/to image, and a text guidance, our model automatically understands the underlying task and performs the same task on a new query image following the text guidance. To achieve this, we propose a vision-language prompt that can model a wide range of vision-language tasks and a diffusion model that takes it as input. The diffusion model is trained jointly over six different tasks using these prompts. The resulting Prompt Diffusion model is the first diffusion-based vision-language foundation model capable of in-context learning. It demonstrates high-quality in-context generation on the trained tasks and generalizes effectively to new, unseen vision tasks with their respective prompts. Our model also shows compelling text-guided image editing results. Our framework aims to facilitate research into in-context learning for computer vision. We share our code and pre-trained models at https://github.com/Zhendong-Wang/Prompt-Diffusion.

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

↑