Nested Attention: Semantic-aware Attention Values for Concept Personalization

Fuente: arXiv
Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Patashnik, Or, Gal, Rinon, Ostashev, Daniil, Tulyakov, Sergey, Aberman, Kfir, Cohen-Or, Daniel
Format: Preprint
Veröffentlicht: 2025
Schlagworte:
Online-Zugang:
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866915088129064960
author Patashnik, Or
Gal, Rinon
Ostashev, Daniil
Tulyakov, Sergey
Aberman, Kfir
Cohen-Or, Daniel
author_facet Patashnik, Or
Gal, Rinon
Ostashev, Daniil
Tulyakov, Sergey
Aberman, Kfir
Cohen-Or, Daniel
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2501_01407
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Nested Attention: Semantic-aware Attention Values for Concept Personalization
Patashnik, Or
Gal, Rinon
Ostashev, Daniil
Tulyakov, Sergey
Aberman, Kfir
Cohen-Or, Daniel
Computer Vision and Pattern Recognition
Graphics
Machine Learning
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.
title Nested Attention: Semantic-aware Attention Values for Concept Personalization
topic Computer Vision and Pattern Recognition
Graphics
Machine Learning
url https://arxiv.org/abs/2501.01407