Saved in:
Bibliographic Details
Main Author: Pathania, Kshitij
Format: Preprint
Published: 2024
Subjects:
Online Access:https://arxiv.org/abs/2408.16232
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866917761980039168
author Pathania, Kshitij
author_facet Pathania, Kshitij
contents In the realm of image synthesis, achieving fidelity to a reference image while adhering to conditional prompts remains a significant challenge. This paper proposes a novel approach that integrates a diffusion model with latent space manipulation and gradient-based selective attention mechanisms to address this issue. Leveraging Grad-SAM (Gradient-based Selective Attention Manipulation), we analyze the cross attention maps of the cross attention layers and gradients for the denoised latent vector, deriving importance scores of elements of denoised latent vector related to the subject of interest. Using this information, we create masks at specific timesteps during denoising to preserve subjects while seamlessly integrating the reference image features. This approach ensures the faithful formation of subjects based on conditional prompts, while concurrently refining the background for a more coherent composition. Our experiments on places365 dataset demonstrate promising results, with our proposed model achieving the lowest mean and median Frechet Inception Distance (FID) scores compared to baseline models, indicating superior fidelity preservation. Furthermore, our model exhibits competitive performance in aligning the generated images with provided textual descriptions, as evidenced by high CLIP scores. These results highlight the effectiveness of our approach in both fidelity preservation and textual context preservation, offering a significant advancement in text-to-image synthesis tasks.
format Preprint
id arxiv_https___arxiv_org_abs_2408_16232
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Enhancing Conditional Image Generation with Explainable Latent Space Manipulation
Pathania, Kshitij
Computer Vision and Pattern Recognition
Artificial Intelligence
Machine Learning
26B10, 53A35,
I.2.10; I.4.10
In the realm of image synthesis, achieving fidelity to a reference image while adhering to conditional prompts remains a significant challenge. This paper proposes a novel approach that integrates a diffusion model with latent space manipulation and gradient-based selective attention mechanisms to address this issue. Leveraging Grad-SAM (Gradient-based Selective Attention Manipulation), we analyze the cross attention maps of the cross attention layers and gradients for the denoised latent vector, deriving importance scores of elements of denoised latent vector related to the subject of interest. Using this information, we create masks at specific timesteps during denoising to preserve subjects while seamlessly integrating the reference image features. This approach ensures the faithful formation of subjects based on conditional prompts, while concurrently refining the background for a more coherent composition. Our experiments on places365 dataset demonstrate promising results, with our proposed model achieving the lowest mean and median Frechet Inception Distance (FID) scores compared to baseline models, indicating superior fidelity preservation. Furthermore, our model exhibits competitive performance in aligning the generated images with provided textual descriptions, as evidenced by high CLIP scores. These results highlight the effectiveness of our approach in both fidelity preservation and textual context preservation, offering a significant advancement in text-to-image synthesis tasks.
title Enhancing Conditional Image Generation with Explainable Latent Space Manipulation
topic Computer Vision and Pattern Recognition
Artificial Intelligence
Machine Learning
26B10, 53A35,
I.2.10; I.4.10
url https://arxiv.org/abs/2408.16232