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

利用视觉上下文调制提示改进扩散模型中的上下文学习

Improving In-Context Learning in Diffusion Models with Visual Context-Modulated Prompts

The University of Texas at Austin(德克萨斯大学奥斯汀分校);ByteDance Inc.(字节跳动公司)

Tianqi Chen, Yongfei Liu, Zhendong Wang, Jianbo Yuan, Quanzeng You, Hongxia Yang, Mingyuan Zhou

AI总结:

本文提出 iPromptDiff,通过端到端视觉编码器将视觉上下文调制文本提示嵌入,并结合 ControlNet,提升扩散模型在新视觉任务上的上下文学习能力与鲁棒性。

摘要:

鉴于大语言模型中上下文学习的显著成功,将其扩展到视觉领域,尤其是与 Stable Diffusion 等视觉基础模型结合,已引起广泛关注。现有的视觉上下文学习方法常面临预训练成本高、框架受限、视觉理解不足以及对新任务适应性有限等障碍。为应对这些挑战,本文提出了改进的 Prompt Diffusion(iPromptDiff)。iPromptDiff 集成一个端到端训练的视觉编码器,将视觉上下文转换为嵌入向量,随后利用该向量调制文本提示的 token 嵌入。我们证明,基于扩散的视觉基础模型在配备这种视觉上下文调制的文本引导和标准 ControlNet 结构后,在多种训练任务上表现出通用性和鲁棒性,并在新颖视觉任务的上下文学习中表现优异,例如法线到图像或图像到线稿的转换。这些能力的有效性高度依赖于深度视觉理解,而该理解通过我们提出的上下文学习架构处理相关视觉演示来实现。

英文摘要:

In light of the remarkable success of in-context learning in large language models, its potential extension to the vision domain, particularly with visual foundation models like Stable Diffusion, has sparked considerable interest. Existing approaches in visual in-context learning frequently face hurdles such as expensive pretraining, limiting frameworks, inadequate visual comprehension, and limited adaptability to new tasks. In response to these challenges, we introduce improved Prompt Diffusion (iPromptDiff) in this study. iPromptDiff integrates an end-to-end trained vision encoder that converts visual context into an embedding vector. This vector is subsequently used to modulate the token embeddings of text prompts. We show that a diffusion-based vision foundation model, when equipped with this visual context-modulated text guidance and a standard ControlNet structure, exhibits versatility and robustness across a variety of training tasks and excels in in-context learning for novel vision tasks, such as normal-to-image or image-to-line transformations. The effectiveness of these capabilities relies heavily on a deep visual understanding, which is achieved through relevant visual demonstrations processed by our proposed in-context learning architecture.

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

↑