[Paper Review] Plug-and-Play Diffusion Features for Text-Driven Image-to-Image Translation
This paper introduces a plug-and-play framework for text-driven image-to-image translation that leverages pre-trained text-to-image diffusion models without fine-tuning. By injecting spatial features and self-attention maps from a guidance image into the diffusion process, the method achieves high-fidelity structure preservation while accurately aligning with complex text prompts, outperforming existing methods like P2P in layout consistency and visual quality.
Large-scale text-to-image generative models have been a revolutionary breakthrough in the evolution of generative AI, allowing us to synthesize diverse images that convey highly complex visual concepts. However, a pivotal challenge in leveraging such models for real-world content creation tasks is providing users with control over the generated content. In this paper, we present a new framework that takes text-to-image synthesis to the realm of image-to-image translation -- given a guidance image and a target text prompt, our method harnesses the power of a pre-trained text-to-image diffusion model to generate a new image that complies with the target text, while preserving the semantic layout of the source image. Specifically, we observe and empirically demonstrate that fine-grained control over the generated structure can be achieved by manipulating spatial features and their self-attention inside the model. This results in a simple and effective approach, where features extracted from the guidance image are directly injected into the generation process of the target image, requiring no training or fine-tuning and applicable for both real or generated guidance images. We demonstrate high-quality results on versatile text-guided image translation tasks, including translating sketches, rough drawings and animations into realistic images, changing of the class and appearance of objects in a given image, and modifications of global qualities such as lighting and color.
Motivation & Objective
- To enable high-fidelity text-guided image-to-image translation without requiring model retraining or fine-tuning.
- To address the lack of structural control in text-to-image diffusion models when generating images from non-textual guidance inputs.
- To explore how internal spatial features and self-attention in diffusion models encode structural information for use in image translation.
- To develop a unified framework applicable to diverse guidance inputs, including real-world images, sketches, and animations.
- To achieve a better balance between preserving the layout of the guidance image and faithfully adhering to the target text prompt.
Proposed method
- Extract spatial features and self-attention maps from a guidance image using DDIM inversion.
- Inject these features directly into the latent diffusion process of a pre-trained text-to-image model during generation.
- Preserve spatial structure by maintaining feature semantics and attention patterns from the guidance image.
- Use only the internal representations of the pre-trained model—no additional training or parameter updates are required.
- Operate in the latent space of the diffusion model, modifying features at multiple denoising steps to guide generation.
- Leverage the model's internal attention mechanisms to maintain fine-grained structural associations during translation.

Experimental results
Research questions
- RQ1How are structural and semantic layout information encoded within the intermediate spatial features of pre-trained text-to-image diffusion models?
- RQ2Can spatial features and self-attention maps from a guidance image be used to control the structure of a generated image without fine-tuning?
- RQ3How does feature injection compare to cross-attention manipulation (e.g., P2P) in preserving layout fidelity during image translation?
- RQ4What is the impact of injecting both spatial features and self-attention on structure preservation and visual quality?
- RQ5In what scenarios does the method fail, and what are the limitations of relying on semantic correspondence in the feature space?
Key findings
- The method achieves significantly better structure preservation than P2P, especially in multi-edit scenarios, as shown by lower self-similarity distances in quantitative evaluation.
- Injecting both spatial features and self-attention is essential for high-fidelity layout transfer; removing either component leads to substantial degradation in structure fidelity.
- The framework outperforms baselines such as Text2LIVE, DiffusionCLIP, and FlexIT in both qualitative and quantitative metrics, particularly in handling structural changes like object category and style shifts.
- The method maintains high visual quality and semantic consistency even when translating complex edits, such as transforming a sketch into a photorealistic image or changing object identity and appearance.
- DDIM inversion enables effective guidance image encoding, though it occasionally captures low-frequency appearance artifacts in textureless images.
- The method fails when there is no semantic correspondence between the guidance image and the target text, such as with arbitrary color segmentation masks.

Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.