Saved in:
Bibliographic Details
Main Authors: Agarwal, Aishwarya, Karanam, Srikrishna, Srinivasan, Balaji Vasan
Format: Preprint
Published: 2024
Subjects:
Online Access:https://arxiv.org/abs/2406.18893
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866929402552516608
author Agarwal, Aishwarya
Karanam, Srikrishna
Srinivasan, Balaji Vasan
author_facet Agarwal, Aishwarya
Karanam, Srikrishna
Srinivasan, Balaji Vasan
contents We consider the problem of customizing text-to-image diffusion models with user-supplied reference images. Given new prompts, the existing methods can capture the key concept from the reference images but fail to align the generated image with the prompt. In this work, we seek to address this key issue by proposing new methods that can easily be used in conjunction with existing customization methods that optimize the embeddings/weights at various intermediate stages of the text encoding process. The first contribution of this paper is a dissection of the various stages of the text encoding process leading up to the conditioning vector for text-to-image models. We take a holistic view of existing customization methods and notice that key and value outputs from this process differs substantially from their corresponding baseline (non-customized) models (e.g., baseline stable diffusion). While this difference does not impact the concept being customized, it leads to other parts of the generated image not being aligned with the prompt. Further, we also observe that these keys and values allow independent control various aspects of the final generation, enabling semantic manipulation of the output. Taken together, the features spanning these keys and values, serve as the basis for our next contribution where we fix the aforementioned issues with existing methods. We propose a new post-processing algorithm, AlignIT, that infuses the keys and values for the concept of interest while ensuring the keys and values for all other tokens in the input prompt are unchanged. Our proposed method can be plugged in directly to existing customization methods, leading to a substantial performance improvement in the alignment of the final result with the input prompt while retaining the customization quality.
format Preprint
id arxiv_https___arxiv_org_abs_2406_18893
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle AlignIT: Enhancing Prompt Alignment in Customization of Text-to-Image Models
Agarwal, Aishwarya
Karanam, Srikrishna
Srinivasan, Balaji Vasan
Computer Vision and Pattern Recognition
We consider the problem of customizing text-to-image diffusion models with user-supplied reference images. Given new prompts, the existing methods can capture the key concept from the reference images but fail to align the generated image with the prompt. In this work, we seek to address this key issue by proposing new methods that can easily be used in conjunction with existing customization methods that optimize the embeddings/weights at various intermediate stages of the text encoding process. The first contribution of this paper is a dissection of the various stages of the text encoding process leading up to the conditioning vector for text-to-image models. We take a holistic view of existing customization methods and notice that key and value outputs from this process differs substantially from their corresponding baseline (non-customized) models (e.g., baseline stable diffusion). While this difference does not impact the concept being customized, it leads to other parts of the generated image not being aligned with the prompt. Further, we also observe that these keys and values allow independent control various aspects of the final generation, enabling semantic manipulation of the output. Taken together, the features spanning these keys and values, serve as the basis for our next contribution where we fix the aforementioned issues with existing methods. We propose a new post-processing algorithm, AlignIT, that infuses the keys and values for the concept of interest while ensuring the keys and values for all other tokens in the input prompt are unchanged. Our proposed method can be plugged in directly to existing customization methods, leading to a substantial performance improvement in the alignment of the final result with the input prompt while retaining the customization quality.
title AlignIT: Enhancing Prompt Alignment in Customization of Text-to-Image Models
topic Computer Vision and Pattern Recognition
url https://arxiv.org/abs/2406.18893