arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2501.01407cs.CVcs.GRcs.LG
收藏

嵌套注意力:面向概念个性化的语义感知注意力值

Nested Attention: Semantic-aware Attention Values for Concept Personalization

Snap Research(Snap研究部);Tel Aviv University(特拉维夫大学)

Or Patashnik, Rinon Gal, Daniil Ostashev, Sergey Tulyakov, Kfir Aberman, Daniel Cohen-Or

AI总结:

本文提出嵌套注意力机制,通过查询相关的主体值注入交叉注意力层,在保持身份一致性的同时提升文本提示对齐,并支持多领域主体组合。

摘要:

将文本到图像模型个性化,以在不同场景和风格中生成特定主体的图像,是一个快速发展的领域。当前方法往往难以在身份保持与输入文本提示对齐之间维持平衡。一些方法依赖单个文本标记来表示主体,这限制了表达能力;另一些方法虽然采用更丰富的表示,但会破坏模型的先验,从而削弱提示对齐。在这项工作中,我们提出了 Nested Attention(嵌套注意力),这是一种新颖的机制,将丰富且具有表达力的图像表示注入模型现有的交叉注意力层中。我们的核心思想是生成查询相关的主体值,这些值来自嵌套注意力层,该层学习为生成图像中的每个区域选择相关的主体特征。我们将这些嵌套层集成到一种基于编码器的个性化方法中,并表明它们能够在遵循输入文本提示的同时实现高身份保持。我们的方法具有通用性,可以在各种领域上进行训练。此外,其先验保持能力使我们能够在单张图像中组合来自不同领域的多个个性化主体。

英文摘要:

Personalizing text-to-image models to generate images of specific subjects across diverse scenes and styles is a rapidly advancing field. Current approaches often face challenges in maintaining a balance between identity preservation and alignment with the input text prompt. Some methods rely on a single textual token to represent a subject, which limits expressiveness, while others employ richer representations but disrupt the model's prior, diminishing prompt alignment. In this work, we introduce Nested Attention, a novel mechanism that injects a rich and expressive image representation into the model's existing cross-attention layers. Our key idea is to generate query-dependent subject values, derived from nested attention layers that learn to select relevant subject features for each region in the generated image. We integrate these nested layers into an encoder-based personalization method, and show that they enable high identity preservation while adhering to input text prompts. Our approach is general and can be trained on various domains. Additionally, its prior preservation allows us to combine multiple personalized subjects from different domains in a single image.

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

↑