arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2305.17262cs.CVcs.AI
收藏

Im-Promptu:基于图像提示的上下文组合

Im-Promptu: In-Context Composition from Image Prompts

Princeton University(普林斯顿大学);University of California Berkeley(加州大学伯克利分校)

Bhishma Dedhia, Michael Chang, Jake C. Snell, Thomas L. Griffiths, Niraj K. Jha

AI总结:

本研究提出名为Im-Promptu的元学习框架,探讨类比推理在视觉刺激上下文组合中的作用,通过测试不同组合程度的智能体,揭示外推能力与组合程度间的权衡,并展示其在图像生成中的应用。

摘要:

大型语言模型是少样本学习者,能够从少量演示中解决各种任务。这种对任务的隐式理解表明,对词元(word tokens)的注意力机制可能在类比推理中发挥作用。在本研究中,我们探讨类比推理是否能够基于视觉刺激的可组合元素实现上下文组合。首先,我们引入一套包含三个基准的测试套件,以测试视觉上下文学习器的泛化特性。我们形式化了基于类比的上下文学习器的概念,并利用它设计了一个名为Im-Promptu的元学习框架。尽管语言所需的词元粒度已确立,但视觉刺激中实现上下文泛化的适当组合粒度通常未明确。为此,我们使用Im-Promptu训练了具有不同组合程度的多个智能体,包括向量表示、图像块表示和对象槽。实验揭示了外推能力与组合程度之间的权衡,非组合表示能将学习到的组合规则扩展到未见领域,但在组合任务上表现不佳。基于图像块的表示要求图像块包含完整对象以实现稳健外推。同时,以对象为中心的分词器结合交叉注意力模块生成了一致且高保真的解决方案,这些归纳偏置对组合泛化尤为关键。最后,我们展示了Im-Promptu作为图像生成直观编程界面的用例。

英文摘要:

Large language models are few-shot learners that can solve diverse tasks from a handful of demonstrations. This implicit understanding of tasks suggests that the attention mechanisms over word tokens may play a role in analogical reasoning. In this work, we investigate whether analogical reasoning can enable in-context composition over composable elements of visual stimuli. First, we introduce a suite of three benchmarks to test the generalization properties of a visual in-context learner. We formalize the notion of an analogy-based in-context learner and use it to design a meta-learning framework called Im-Promptu. Whereas the requisite token granularity for language is well established, the appropriate compositional granularity for enabling in-context generalization in visual stimuli is usually unspecified. To this end, we use Im-Promptu to train multiple agents with different levels of compositionality, including vector representations, patch representations, and object slots. Our experiments reveal tradeoffs between extrapolation abilities and the degree of compositionality, with non-compositional representations extending learned composition rules to unseen domains but performing poorly on combinatorial tasks. Patch-based representations require patches to contain entire objects for robust extrapolation. At the same time, object-centric tokenizers coupled with a cross-attention module generate consistent and high-fidelity solutions, with these inductive biases being particularly crucial for compositional generalization. Lastly, we demonstrate a use case of Im-Promptu as an intuitive programming interface for image generation.

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

↑