---
title: "Plug-and-Play Diffusion Features for Text-Driven Image-to-Image"
description: "How Plug-and-Play Diffusion Features uses an image’s internal features to guide text-driven edits while preserving shape and layout."
canonical: "https://research.elamur.ai/free/en/papers/tumanyan-2023-plug-play-diffusion-features-text/"
---
Elamur: [Mova](https://md.mova.elamur.ai/free/en/) · [Parse](https://mova.elamur.ai/free/en/parse/) · [Dictionary](https://md.dictionary.elamur.ai/free/en/) · [Translate](https://md.translate.elamur.ai/free/en/) · **Research** · [Gali](https://md.gali.elamur.ai/free/en/) · [MCP](https://mcp.elamur.ai/) · [Locations](https://md.locations.elamur.ai/free/en/) · [Weather](https://md.weather.elamur.ai/free/en/)

[Elamur Research](https://md.research.elamur.ai/free/en/) · [this page in HTML](https://research.elamur.ai/free/en/papers/tumanyan-2023-plug-play-diffusion-features-text/)

[home](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2023](https://md.research.elamur.ai/free/en/papers/2023/) / Plug-and-Play Diffusion Features for Text-Driven Image-to-Image Translation

# Plug-and-Play Diffusion Features for Text-Driven Image-to-Image Translation

Paper · 2023 · Narek Tumanyan, Michal Geyer, Shai Bagon et al.

**Authors:** [Narek Tumanyan](https://md.research.elamur.ai/free/en/authors/narek-tumanyan/), [Michal Geyer](https://md.research.elamur.ai/free/en/authors/michal-geyer/), [Shai Bagon](https://md.research.elamur.ai/free/en/authors/shai-bagon/) and [Tali Dekel](https://md.research.elamur.ai/free/en/authors/tali-dekel/) · **Year:** 2023 · **Venue:** IEEE Computer Society Conference on Computer Vision and Pattern Recognition/Proceedings - IEEE Computer Society Conference on Computer Vision and Pattern Recognition/Proceedings · **Licence:** [CC BY 4.0 (arXiv)](https://creativecommons.org/licenses/by/4.0/)

[**609** citations OpenAlex, 2026-10-14](https://openalex.org/works?filter=cites:W4386113271) · [IEEE Computer Society Conference on Computer Vision and Pattern Recognition/Proceedings - IEEE Computer Society Conference on Computer Vision and Pattern Recognition/Proceedings](https://openalex.org/S4210176548) · [licence](https://creativecommons.org/licenses/by/4.0/)

- [PDF](https://arxiv.org/pdf/2211.12572)
- [DOI 10.1109/cvpr52729.2023.00191](https://doi.org/10.1109/cvpr52729.2023.00191)
- [arXiv 2211.12572](https://arxiv.org/abs/2211.12572)
- [OpenAlex](https://openalex.org/W4386113271)

Citations: OpenAlex, 2026-10-14.

## What it is about

How Plug-and-Play Diffusion Features uses an image’s internal features to guide text-driven edits while preserving shape and layout. · about 34 minutes to read

**In this deep dive**

1. [Summary](#dd-summary)
2. [The problem and its context](#dd-the-problem-and-its-context)
3. [The method, step by step](#dd-the-method-step-by-step)
4. [Experiments and results](#dd-experiments-and-results)
5. [What the ablations show](#dd-what-the-ablations-show)
6. [Limitations](#dd-limitations)
7. [What came after](#dd-what-came-after)

### Summary

A text prompt can describe what an image should contain without specifying exactly how everything should be arranged. That distinction becomes important when the starting point is an existing picture. A user may want to turn an animal into a mechanical creature, reinterpret a drawing as a photograph, or change the lighting while keeping the original pose and composition. Plug-and-Play Diffusion Features addresses this problem by giving the input image and the target description different responsibilities. The image supplies spatial organization; the text directs the change in appearance and meaning.

The authors use a pretrained Stable Diffusion generator without updating its learned parameters. Their central observation is that its intermediate image representations contain useful information about object parts and scene arrangement. Some decoder features distinguish corresponding regions, such as a torso or legs, even across pictures with very different visual styles. Self-attention adds another kind of information: it describes relationships between spatial locations. The method transfers selected features and attention relationships from a reconstruction of the input image into a separate generation process controlled by the target prompt. This lets the output inherit structural constraints without copying every visual detail.

The procedure works with generated pictures and with real images. For a real image, DDIM inversion first finds a noise representation from which the generator can reconstruct the input. Translation begins from that same representation. During denoising, the method replaces selected internal activations with their counterparts from the guidance reconstruction. It injects spatial features at decoder layer 4 and self-attention across the decoder, with separate thresholds governing how long each intervention continues. Negative prompting provides an additional way to discourage the original appearance, particularly for simple, textureless inputs.

Evaluation uses Wild-TI2I, containing 148 image–text examples, and ImageNet-R-TI2I, containing 150 pairs, alongside a generated counterpart of the latter benchmark. The comparisons assess adherence to the target text through CLIP cosine similarity and structural preservation through DINO-ViT self-similarity distance. The authors report a more favorable balance between these objectives than the evaluated alternatives. SDEdit illustrates the underlying difficulty: weak noising tends to retain the input but permit little change, while stronger noising enables larger edits at the expense of structure. Comparisons with Prompt-to-Prompt suggest that controlling relationships among image locations can preserve finer details than controlling only associations between locations and prompt words.

The contribution is therefore both an editing method and an empirical account of where useful structural information appears inside a diffusion generator. Its control remains conditional on what those representations recognize. Arbitrarily colored segmentation masks can fail because their regions lack the semantic associations that the method needs. Inversion can also retain unwanted appearance information, especially for minimal images. The experiments support a practical form of structural guidance, rather than a guarantee that every input can be translated into every requested target.

### The problem and its context

#### Describing a scene does not determine its arrangement

Text-driven image generation gives users a flexible way to request visual content. A description can combine objects, materials, styles, and actions. Yet a description rarely determines the exact outline of an object, the position of each part, or the spacing between objects. Pictures generated from the same words can differ substantially in these respects.

For image editing, that freedom can become a problem. The user already has a composition and wants to retain something specific about it. A horse’s pose may matter more than its surface appearance. A rough drawing may establish where the foreground object belongs and how its limbs are arranged. A scene may need a different atmosphere while retaining its existing organization. Repeating those requirements in a prompt does not necessarily reproduce the original geometry.

The paper treats this as text-guided image-to-image translation. An input picture provides the reference arrangement, and a target prompt describes the desired reinterpretation. Translation can involve a change of visual domain, such as moving from a drawing towards a realistic depiction. It can also involve replacing an object category or altering a global property, including color or illumination.

The central challenge is to retain the aspects of the input that should survive while allowing the requested transformation to occur. Preserving too much can prevent a meaningful edit. Preserving too little can produce an attractive picture that no longer follows the original composition. The method is designed around this tension.

Here, structure means more than a rough foreground region. It includes object pose, the relationship between parts, and the arrangement of content across the scene. Appearance includes properties such as texture, color, and visual style. The paper does not claim these categories are perfectly separable. Instead, it investigates internal representations that appear to emphasize one more than the other.

#### Earlier image translation often required task-specific learning

The authors place their work within a long history of image-to-image translation. In that setting, a system maps an image from one domain into another while retaining properties shared across the domains. A seasonal transformation might retain the scene’s arrangement; an animal-category transformation might retain the subject’s pose.

The paper describes earlier adversarial approaches as learning from example collections for the source and target domains. These methods can encourage translated images to resemble the target distribution. Their limitation for the present purpose is the need for appropriate datasets and, often, a separate training process for each translation task.

Other approaches use a pretrained adversarial generator and manipulate its latent representation. This shifts some of the work into a representation already learned by the generator. The paper also discusses methods that learn from an individual source–target example. These reduce the amount of task-specific data, but they still involve fitting a generator to the translation setting.

Diffusion-based image translation provides another route. The related-work discussion includes approaches that adapt or extend diffusion generation for image-conditioned tasks. The question pursued here is narrower: can an already trained text-conditioned generator accept structural guidance without learning a new mapping for each requested edit?

That question matters because the target domain is expressed in language. A user need not assemble a collection of target images before requesting a transformation. The intended benefit is a common procedure that can serve varied inputs and prompts, rather than a separately trained translator for every source–target combination.

#### Adding a dedicated guidance input has its own requirements

A direct way to control layout is to train a generator to accept an additional spatial signal. The paper uses Make-A-Scene as an example: a segmentation representation supplies object categories and their arrangement alongside the text.

Such conditioning can make the desired layout explicit. It also changes the training problem. The generator needs suitable combinations of text, spatial guidance, and images, together with the computation required to learn from them. At use time, its conditioning interface remains tied to the guidance types used during training.

The authors want a broader input interface. A photograph, an artistic rendering, and a rough drawing do not offer structural information in the same format. Requiring each to become a particular kind of segmentation representation would introduce another processing step and another possible source of error.

Their alternative is to use the pretrained generator itself to interpret the guidance image. Rather than designing a new external structural representation, they examine the spatial information already present in its internal features. The method then reuses that information during generation.

This places the work within [interpretability](https://md.research.elamur.ai/free/en/topics/interpretability/) as well as image editing. The authors first ask what internal activations reveal about image organization, then turn those observations into an intervention. The representation analysis and the editing procedure support each other, although neither establishes a complete theory of the generator’s internal computation.

#### Language–image guidance does not automatically solve spatial control

The related-work discussion also covers methods that connect a pretrained image generator with CLIP. CLIP provides a common representation for pictures and descriptions, making it possible to measure whether an image agrees with text. An editing procedure can use that relationship to encourage a requested semantic change.

The authors describe several ways this guidance had been used. DiffusionCLIP adapts a diffusion generator through [fine-tuning](https://md.research.elamur.ai/free/en/concepts/fine-tuning/). Text2LIVE learns an editing generator from an individual image and its text instruction. Other methods guide generation using text–image similarity together with additional visual constraints.

These approaches demonstrate that language can direct image manipulation. The paper nonetheless identifies a mismatch in some earlier settings: an image generator learned from a comparatively restricted visual distribution may be guided by a language–image representation learned from broader data. A rich text signal does not ensure that the generator can realize every requested change convincingly.

Text-conditioned image generation addresses part of that mismatch by incorporating language during the original training process. It creates a strong basis for varied semantic edits. The remaining issue is how to give an individual input image reliable influence over the result’s spatial arrangement.

Personalization methods address a related but distinct objective. The paper discusses DreamBooth and Textual Inversion as ways to adapt text-conditioned generation using a small collection of user images. Plug-and-Play instead keeps the generator fixed and intervenes during its execution. Its control comes from replacing selected internal quantities, instead of learning a new subject representation or modifying the generator’s parameters.

#### Cross-attention and noising offer different forms of control

Prompt-to-Prompt is the closest methodological comparison in the paper. It modifies cross-attention, which connects image locations with words in a prompt. This can help retain where a named object appears while the description changes.

The authors argue that word-level associations provide incomplete control over fine structure. A source prompt may name an animal without describing each limb or the exact shape of its body. Preserving the region associated with the animal’s name does not necessarily preserve those unmentioned details.

Prompt-to-Prompt also requires correspondence between the source and target descriptions. That requirement is natural for an editing method built around changes to words, but it restricts the prompts that can be compared directly. Plug-and-Play seeks structural guidance from image features while leaving the target text free to express the translation.

SDEdit approaches the problem through a different mechanism. It adds noise to the input until an intermediate point in the diffusion process, then denoises under the target description. The amount of added noise determines how much of the starting image remains influential.

This makes the tradeoff especially clear. Limited noising leaves strong evidence of the input, but that evidence can resist the edit. More extensive noising weakens that resistance while also weakening the original layout. Plug-and-Play adds structural information during generation so that preserving arrangement does not depend completely on retaining the input through partial noising.

### The method, step by step

#### Follow the guidance reconstruction while generating a new image

The easiest way to understand the method is to imagine related denoising processes. One follows the guidance image’s reconstruction. The other creates the translated picture under the target prompt. At selected locations inside the generator, the translated process receives information from the guidance process.

The transferred information has different roles. A spatial feature map provides content-sensitive information about regions of the input. A self-attention matrix provides relationships among those regions. The target generation retains its own evolving state and text conditioning, but selected computations are overridden with guidance-derived quantities.

How guidance features control translation The steps in order.

The diagram separates conceptual stages, but feature extraction and injection correspond to particular denoising steps. The useful information is not a single static descriptor attached to the whole procedure. It changes as the guidance reconstruction becomes cleaner.

For generated guidance, the starting noise and original prompt belong to its generation process. For a real image, the procedure first needs an inversion that places the picture within a suitable diffusion trajectory. The subsequent feature transfer uses the same basic mechanism in both cases.

#### The diffusion quantities

Diffusion generation begins from noise and repeatedly predicts how to remove it. The preliminary discussion describes a forward process that mixes a clean image with Gaussian noise:

```
xₜ = √αₜ · x₀ + √(1 − αₜ) · z
```

Here, x₀ denotes a clean image representation, and xₜ denotes its noisy counterpart at step t. The variable z is Gaussian noise. The schedule value αₜ determines the relative contributions of the clean representation and the noise. The square-root terms scale those contributions.

The Gaussian distribution used for the noise is:

```
z ∼ N(0, I)
```

The symbol N denotes a normal distribution. Its mean is 0, and I is the identity covariance matrix. The same distribution supplies the initial noise representation, x_T, in the generic generation account. T denotes the noisy endpoint from which denoising begins.

A learned denoiser predicts the noise associated with the current state. In the text-conditioned setting, its inputs include the prompt:

```
εθ(xₜ, P, t)
```

The expression εθ denotes the denoising network with learned parameters θ. Its arguments are the current noisy representation xₜ, the target description P, and the diffusion step t. Its prediction contributes to the update that produces a cleaner state.

The authors use Stable Diffusion, where the diffusion trajectory operates in an autoencoder’s latent space. As a result, the states manipulated during denoising are encoded image representations rather than ordinary displayed pixels. An image decoder converts the final latent representation into the output picture.

This distinction helps explain the intervention. Plug-and-Play does not paste pixels from the input onto the output. It changes internal computations while the latent image is being formed.

#### Where spatial features and attention appear

The denoiser uses a U-Net. Within the architecture described by the paper, a layer includes residual processing, self-attention, and cross-attention. These components transform image features while allowing both spatial interaction and text conditioning.

Let l identify a layer and t identify a diffusion step. The residual part produces a spatial feature map fₜˡ from the preceding layer’s representation. Each spatial position has a feature vector, so the map can contain information about both what a region represents and where it occurs.

Self-attention projects these features into queries, keys, and values. Queries and keys determine relationships among positions:

```
Aₜˡ = Softmax(qₜˡ · (kₜˡ)ᵀ)
```

Aₜˡ is the self-attention matrix for layer l at step t. The quantities qₜˡ and kₜˡ are the query and key representations. The superscript T on the parenthesized key matrix denotes transposition. Softmax converts the resulting similarity values into attention weights.

Those relationships are then used to combine value representations:

```
f̂ₜˡ = Aₜˡ · vₜˡ
```

The quantity vₜˡ contains the values, and f̂ₜˡ denotes the attention output. The matrix multiplication allows a location to receive information from other locations according to the weights in Aₜˡ.

These equations follow the paper’s presentation of self-attention. They show why attention can serve as a structural carrier: it specifies which spatial features influence one another. The values can reflect the target generation’s developing content while the transferred relationships constrain how that content is organized.

Cross-attention serves a different purpose. It connects spatial features to embeddings of the prompt’s tokens. The general mechanism belongs to [Transformer and attention](https://md.research.elamur.ai/free/en/concepts/transformer/) methods, but the distinction here is practical: cross-attention relates image content to language, whereas self-attention relates image locations to other image locations.

Plug-and-Play focuses its structural intervention on the latter relationships and on selected spatial activations. It therefore does not require an explicit word-by-word alignment between a source description and the target description.

#### Why decoder layer 4 is selected

Before designing the injection rule, the authors inspect internal features using principal component analysis, or PCA. PCA provides a compact visualization of dominant variation within a high-dimensional representation. In this analysis, features from different images are considered together, making it possible to inspect whether corresponding regions receive similar visual encodings.

The illustrated collection contains 20 humanoid images drawn from real and generated examples. The authors examine decoder features at t=540, described as approximately 50% through generation, and visualize the leading three components. They also inspect how the patterns evolve over time.

The shallowest decoder features mainly separate foreground from background. They show an approximate object region without much detail. Intermediate representations, particularly layer 4, distinguish more localized parts. Regions corresponding to heads, torsos, or legs can appear related even when the original pictures differ strongly in texture and style.

Later decoder representations contain more high-frequency information. That is useful for the denoiser’s final prediction, but it makes them less suitable as pure structural guidance. Transferring those features can also transfer aspects of color and texture.

The selected layer is therefore an empirical compromise. It contains more meaningful local organization than a coarse foreground map, while avoiding some of the detailed appearance information found deeper in the decoder. The paper does not claim that the representation contains only structure. Its suitability comes from the observed balance.

#### Invert the input and match the initial noise

For a real guidance image, DDIM inversion supplies the starting noise representation. Denote the guidance image by Iᴳ and its inverted noise state by x_Tᴳ. The target output is I*, and its starting state is x_T*.

The method enforces the following initialization:

```
x_T* = x_Tᴳ
```

The star marks the translated branch, and the superscript G marks the guidance branch. Both processes therefore start from the same noise representation.

Matching the starting state is an important operational requirement. The appendix reports that replacing it with unrelated noise prevents the feature transfer from working as intended. The authors connect this dependency to compatibility between encoder activations and the decoder features that are injected.

The guidance process then supplies internal features at corresponding denoising steps. For real inputs, the guidance reconstruction uses an empty prompt:

```
zₜ₋₁ᴳ = εθ(xₜᴳ, ∅, t)
```

Here, xₜᴳ is the guidance branch’s current state, ∅ denotes an empty text condition, and zₜ₋₁ᴳ is the paper’s notation for the resulting denoiser prediction. The expression identifies the computation from which guidance features are collected; the sampling procedure uses the denoising prediction to advance the trajectory.

For generated guidance, the original generation prompt P_G replaces the empty condition. That allows the features to be extracted along the process associated with the generated input.

#### Replace selected target features

At a corresponding target step, the denoiser receives the current translated state and the target description. The method overrides selected spatial features with guidance features:

```
z*ₜ₋₁ = ε̂θ(x*ₜ, P, t; {fₜˡ})
```

The modified denoiser is written ε̂θ. The semicolon separates its ordinary inputs from the supplied internal feature maps. The set {fₜˡ} contains guidance features selected for injection. The output z*ₜ₋₁ is the modified prediction for the translated branch.

This operation changes activations during execution. It does not update θ. With no injected features, the modified computation reduces to the ordinary denoiser:

```
ε̂θ(xₜ, P, t; ∅) = εθ(xₜ, P, t)
```

The empty set after the semicolon means that no internal replacement is applied. The other symbols retain their previous meanings.

Injecting layer 4 features alone establishes useful content correspondence, but the paper finds that it does not retain enough fine structure. Extending direct feature injection through deeper layers improves structural fidelity while introducing unwanted appearance from the input.

The final intervention therefore combines the intermediate spatial features with guidance self-attention:

```
z*ₜ₋₁ = ε̂θ(x*ₜ, P, t; fₜ⁴, {Aₜˡ})
```

The quantity fₜ⁴ is the guidance feature map from decoder layer 4. The set {Aₜˡ} contains guidance attention matrices at the selected decoder layers. Together, they supply a content-sensitive anchor and constraints on spatial relationships.

The practical description expresses attention transfer through guidance queries and keys. Since those quantities determine the attention matrix, replacing them transfers the corresponding affinities. The values remain part of the target-side computation, allowing the requested appearance to develop within the transferred organization.

#### Control how long injection continues

The method has separate temporal controls for feature and attention injection. The threshold τ_f governs the use of the layer 4 feature map. The threshold τ_A governs the use of guidance self-attention. They allow structural constraints to act during selected portions of the denoising trajectory.

The default configuration transfers self-attention throughout the decoder. Its timing is separate from the choice of layers: where an intervention occurs and when it occurs are distinct design decisions.

Translation uses 50 deterministic DDIM sampling steps. The reported default thresholds are τ_A=25 and τ_f=40 within that schedule. For primitive guidance, the authors instead use τ_A=τ_f=25. These are sampling controls, not learned parameters.

Real-image preparation uses deterministic DDIM inversion with 1000 forward steps, followed by a reconstruction using 1000 backward steps. The translated output still uses the shorter 50-step schedule, and guidance features are collected at the corresponding steps needed for that translation.

The checkpoint is StableDiffusion-v-1-4. Classifier-free guidance is set to 15.0 for real guidance images and 7.5 for generated guidance images. These choices are part of the reported experimental configuration, so the observed behavior should be understood in relation to them.

#### Negative prompting discourages the source appearance

Classifier-free guidance combines a prediction conditioned on the target prompt with a prediction obtained without that prompt:

```
ε = w · εθ(xₜ, P, t) + (1 − w) · εθ(xₜ, ∅, t)
```

The symbol ε denotes the combined noise prediction. The scalar w is the guidance strength and is greater than 1. The target-conditioned prediction is εθ(xₜ,P,t), and the empty-prompt prediction is εθ(xₜ,∅,t). Because the second coefficient is negative under this condition, the combination extrapolates toward the target-conditioned prediction.

A negative prompt replaces some of the neutral reference with a description of unwanted content. If that description characterizes the guidance image, the resulting combination can discourage the original appearance.

The method interpolates between neutral and negative reference predictions:

```
ε̃ = α · εθ(xₜ, ∅, t) + (1 − α) · εθ(xₜ, P_n, t)
```

The blended reference prediction is ε̃. The prompt P_n describes content to move away from. The weight α lies in [0,1] and controls the balance between the empty-prompt and negative-prompt predictions.

The final guided prediction becomes:

```
ε = w · εθ(xₜ, P, t) + (1 − w) · ε̃
```

Here, ε̃ replaces the empty-prompt term in the earlier guidance equation. The target description P still supplies the desired direction, while the reference can increasingly reflect what the translation should avoid.

For real guidance, the initial interpolation value is α₀=1.0. For generated guidance, it is α₀=0.75. The authors decrease the value during sampling. Their stated linear rule is:

```
α(t) = α₀ − t
```

In this scheduler, α₀ is the initial value and t is the scheduler’s time argument. This notation should be distinguished from the earlier noisy-state indexing: the implementation discussion gives the rule without fully specifying how that time argument maps onto the discrete diffusion schedule.

For generated primitive images, the reported exponential rule is:

```
α(t) = e^(−6 · t)
```

The symbol e denotes the exponential base, and t again denotes the scheduler argument. The coefficient 6 controls the decay in the stated rule.

Negative prompting matters most for textureless inputs such as silhouettes. Natural-looking images show a smaller effect. It is an additional steering mechanism, rather than the source of the method’s structural correspondence.

### Experiments and results

#### The evaluation asks whether change and preservation occur together

The experiments examine a [vision and language](https://md.research.elamur.ai/free/en/topics/multimodal/) task with competing requirements. A successful output should respond to its target description and retain the guidance arrangement. Looking only at either property would miss important failures.

A nearly unchanged output could preserve structure while ignoring the requested transformation. A freely generated image could satisfy the description while replacing the original pose and composition. The paper consequently evaluates both properties and interprets performance through their joint behavior.

The visual examples include changes in category, style, and overall appearance. They cover realistic inputs as well as drawings and simplified images. The intended scope is broader than an individual domain mapping.

The authors created benchmarks because they did not identify an existing evaluation collection covering this combination of varied guidance types and text-directed transformations. This makes the benchmark construction part of the contribution, while also making its selection decisions relevant to interpretation.

#### Wild-TI2I contains varied guidance and edit requests

Wild-TI2I has 148 image–text pairs. Real guidance gathered from the Web accounts for 53% of the collection; the remaining guidance images come from text-conditioned generation.

The content includes people and animals, with food and landscapes also represented. The visual forms range from realistic pictures to artistic or simplified depictions. Sketches, illustrations, and solid masks contribute different amounts of semantic and textural information.

That diversity tests an important aspect of the method. A procedure dependent on the same surface statistics across all inputs would have difficulty spanning these cases. The method instead seeks structural correspondences within the generator’s representations.

Nevertheless, a diverse collection does not establish universal domain coverage. Wild-TI2I is a finite set selected for the study. Its value lies in demonstrating varied examples and enabling a shared comparison, rather than proving reliable operation for every possible input type.

The real/generated distinction also matters. Real inputs require inversion, while generated inputs can be associated directly with a generation process. Combining them broadens the evaluation, but the mechanisms supporting successful translation are not identical in every case.

#### ImageNet-R-TI2I uses controlled image and prompt construction

The second benchmark is derived from ImageNet-R, which contains different visual renditions of 200 ImageNet categories. The authors manually choose 10 categories and select 3 suitable images for each. This yields 30 guidance pictures.

The selected categories span buildings, animals, vehicles, and objects. Examples include Castle and Cat, Goldfish and Hummingbird. Other selections cover content such as food and musical instruments. The role of these categories is to provide varied shapes and depictions within a more controlled construction than Wild-TI2I.

Each guidance image receives 5 target descriptions, producing 150 image–text pairs. The descriptions combine a rendition with an object category. A target can therefore request a new rendering while retaining the category, or alter the category as well.

The available rendition terms come from the source dataset’s labels. They cover forms such as paintings and sketches, alongside embroidery and origami. This makes style changes systematic enough to support automatic prompt generation.

For two target descriptions among the five attached to an image, the object category is replaced with a category sampled from 5 related possibilities. The authors deliberately avoid arbitrary combinations that would make the translation unreasonable. This choice helps create meaningful structural correspondences, which the method requires.

The benchmark therefore tests substantial visual and semantic change within a constrained compatibility setting. Its class-changing examples are not unrestricted object replacement.

Plug-and-Play evaluation settings by image–text pair count The benchmarks offer similar evaluation scope while using different collection procedures.

**The numbers**

| System or setting | image–text pairs |
| --- | --- |
| Plug-and-Play on Wild-TI2I (this paper) | 148 |
| Plug-and-Play on ImageNet-R-TI2I | 150 |

This chart describes evaluation coverage. Pair count is not a measure of translation quality. The quality comparisons use the separate text-adherence and structural metrics discussed below.

#### A generated benchmark helps separate editing from inversion

The authors also construct Generated-ImageNet-R-TI2I. Its guidance pictures are generated from descriptions reflecting the categories and renditions used in the ImageNet-R-based setup.

This extension is especially useful for comparing with Prompt-to-Prompt. Real-image editing combines the difficulty of inversion with the difficulty of preserving structure during a semantic change. Generated guidance reduces the role of the former difficulty.

The comparison asks whether a structural advantage remains when guidance already comes from the generator. According to the paper, it does. Both methods can follow the requested descriptions, but Prompt-to-Prompt more frequently changes fine arrangement, especially when the edit modifies multiple aspects of the prompt.

This result narrows the interpretation. The difference cannot be explained solely by Plug-and-Play having a more suitable real-image inversion setup. Its internal intervention also appears to preserve structure more effectively in the generated-guidance setting.

The paper reports this comparison even against a Prompt-to-Prompt configuration that retains cross-attention injection through t=1000. The finding concerns the kind of information being controlled, rather than simply whether attention control remains active longer.

#### Baselines represent different editing mechanisms

The principal comparisons include SDEdit, Prompt-to-Prompt, DiffuseIT, and VQGAN-CLIP. These methods approach the preservation/editing balance through different mechanisms, making them useful reference points.

SDEdit is run at different noising levels. This exposes how its behavior changes as the original image becomes less directly available. The paper compares the structural fidelity of lightly noised outputs with the greater editability of more heavily noised outputs.

Prompt-to-Prompt is evaluated quantitatively where aligned source and target descriptions can be constructed. The ImageNet-R-based prompts support that requirement. For Wild-TI2I, comparison is qualitative on an appropriate subset, rather than quantitative across the full collection.

For real-image Prompt-to-Prompt evaluation, DDIM inversion uses a source description. Plug-and-Play uses an empty prompt during its real-image inversion procedure. The authors suggest that the source-conditioned setup contributes to Prompt-to-Prompt’s difficulty changing real inputs, but they present that explanation as a hypothesis.

DiffuseIT and VQGAN-CLIP contribute comparisons with methods that explicitly optimize quantities related to the evaluation criteria. Their presence helps show why an individual favorable metric should be interpreted alongside the other objective and the visible results.

Additional qualitative comparisons use Text2LIVE, FlexIT, and DiffusionCLIP. The paper does not give these the same quantitative coverage as the principal baselines. Their examples illustrate differences in editing capability and visual artifacts within the tested tasks.

The authors state that they use official implementations for the competitors where available. They identify public implementations for the remaining runs. Those implementation choices support the comparison’s reproducibility, although they do not eliminate every difference in assumptions between methods.

#### The metrics measure complementary properties

Text adherence is assessed with CLIP cosine similarity between the generated image and its target description. Higher similarity is interpreted as stronger agreement with the requested content.

Structural preservation is assessed through distance between DINO-ViT self-similarity representations. Lower distance indicates that relationships within the generated image remain closer to those within the guidance image.

Self-similarity is useful here because direct pixel agreement would penalize intended changes in color, texture, and style. The evaluation instead asks whether the organization of visual relationships survives those changes.

The appendix adds LPIPS distance between guidance and translated output. In that analysis, a larger value indicates greater perceptual departure from the input. Its role is to reveal cases where preservation comes from barely changing the image.

These criteria should be read together. Greater LPIPS distance does not establish a correct edit. High CLIP similarity does not establish retained pose. Low structural distance does not establish that the target description was fulfilled.

The main metric comparisons appear as plots, without exact score values stated in the accompanying discussion. Their reported ordering and tradeoffs can therefore be described, but precise numerical score margins are not established by those statements.

#### The main result is a more favorable balance

The authors report that Plug-and-Play retains structure at a level comparable to SDEdit with weak noising, while achieving text adherence comparable to SDEdit with strong noising. This is the central empirical claim.

The qualitative comparisons explain what that balance looks like. Weakly noised SDEdit outputs tend to remain close to the input’s appearance. More extensive noising permits larger changes but can disrupt the guidance shape. Plug-and-Play uses the target prompt to drive reinterpretation while reintroducing spatial constraints during denoising.

VQGAN-CLIP shows a related tension in the examples and is described as producing lower visual quality overall. DiffuseIT frequently retains the input’s shape while making a limited appearance change. These observations reinforce the need to evaluate change and preservation jointly.

Prompt-to-Prompt can produce strong semantic edits on generated guidance while retaining only approximate layout. The paper describes examples involving altered object counts and changes to an animal’s shape. Such failures matter because rough spatial agreement can conceal a meaningful loss of input structure.

For real guidance, the authors report that Prompt-to-Prompt has more difficulty departing from the original appearance. The generated benchmark then shows that finer structural preservation remains a distinguishing feature of Plug-and-Play even when inversion is factored out.

#### Additional comparisons clarify the intended task

Text2LIVE is described as a layered appearance-editing method. That makes it suitable for changes that can be applied over existing content, but less suited to transformations requiring a different object form. The paper’s examples include edits where satisfying the description demands more than repainting a surface.

FlexIT often remains close to the guidance content in the reported comparisons. The authors suggest that its perceptual regularization may help explain this behavior. That is an interpretation of the observed outputs, instead of a separately isolated causal result.

DiffusionCLIP requires adaptation for each target edit using 30+ images from a domain. This changes the preparation required for a translation task. Plug-and-Play’s contribution is to avoid that additional fitting while drawing on the pretrained text-conditioned generator.

Across these comparisons, the strongest supported conclusion is conditional: under the reported benchmarks and configurations, the proposed internal-feature intervention gives a better combination of edit adherence and structural retention. The experiments do not establish a universal ordering for every task those competing methods were designed to solve.

### What the ablations show

#### Spatial features and self-attention solve different parts of the problem

The principal ablations remove spatial-feature injection or self-attention injection. Both removals damage structural preservation, but the explanations differ.

Spatial features provide an association between the guidance content and the translated content. A region corresponding to a body part can supply a meaningful anchor for the target generation. Without that anchor, transferred attention relationships may be applied to features that do not represent corresponding content.

Self-attention supplies relationships that the intermediate spatial feature map does not preserve by itself. It helps retain fine arrangement and maintain consistency among regions as the denoising process develops.

The combined configuration therefore does more than transfer a larger amount of guidance. It transfers different kinds of information. A useful content correspondence and useful spatial affinities are complementary.

This interpretation is supported by the visual ablations and by the reported quantitative comparison on Wild-TI2I. Exact numerical ablation scores are not stated in the discussion, so the evidence supports the direction of the effect without establishing a score margin.

#### Deeper feature injection also transfers unwanted appearance

The authors compare injection at layer 4 with injection extending into deeper decoder layers. Layer 4 alone does not retain the guidance arrangement sufficiently.

Adding deeper features improves structure, but the output begins to inherit source appearance. In the illustrated comparison, colors associated with the guidance clothing remain visible in spite of the requested translation. The tested range reaches layers 4–11.

This is an important negative result. More direct access to the guidance computation does not automatically improve the desired edit. The extra information includes details that should be allowed to change.

The final design responds by transferring self-attention at the deeper locations rather than replacing all their spatial features. That keeps relationships among regions more tightly constrained while giving the target branch greater freedom over the content carried through those relationships.

The ablation thus supports a selective intervention. It does not imply that intermediate features and deeper attention are perfectly disentangled representations of structure. It shows that their combination produces a more useful balance than the tested alternatives.

#### Attention alone lacks a reliable semantic anchor

The attention-only variant transfers affinities without injecting the layer 4 feature map. Its outputs can deviate substantially from the guidance structure.

The paper’s explanation is that relational information alone does not identify the meaning of each target-side region. A pattern of connections can be preserved while the evolving target features assign different roles to the connected positions.

The intermediate feature map reduces that ambiguity. It links guidance content with target content before the transferred attention relationships refine their organization.

This distinction prevents an overly simple reading of the method as attention replacement alone. The spatial feature map is not an optional preliminary convenience. In the reported configuration, it is part of what makes the attention constraints apply coherently.

#### Encoder injection makes the translation more conservative

The appendix extends the feature visualization to the encoder. Its trend roughly mirrors the decoder’s progression: earlier encoder representations contain high-frequency noise, while later ones depict cleaner, lower-frequency content.

Localized semantic parts are less apparent in the encoder visualizations. The authors nonetheless test additional injection from encoder layer 7, which appears to contain some semantic information.

Adding that intervention worsens CLIP adherence across the evaluated datasets. On most sets, it also reduces LPIPS distance from the guidance image. Together, these effects indicate a more conservative translation: the output stays closer to the input while following the target description less successfully.

The result reinforces the decoder-based design. It also shows why structural intervention should be assessed through the final output rather than through the apparent informativeness of an internal representation alone.

An appendix table caption describes its configuration in terms that conflict with the surrounding method discussion. The prose analysis is clearer about the controlled comparison: encoder injection is an additional variant, and its reported effects are unfavorable for the balance sought by the method.

#### Negative prompting helps most when appearance is minimal

The negative-prompting ablation compares runs with and without the source-discouraging reference. Its main effect is a somewhat larger perceptual departure from the input, accompanied by a small reduction in structural preservation.

The effect is strongest for primitive, textureless guidance. Such inputs may carry broad appearance properties that remain influential during reconstruction. Encouraging the generation to move away from a description of the source can help overcome that influence.

For natural-looking guidance, the visual difference is smaller. This means negative prompting is not equally important across all input categories.

The ablation also shows that it is not a cost-free improvement. More departure from the input can slightly weaken preservation. Its usefulness depends on whether that additional freedom helps the requested transformation.

#### Matching noise keeps the transferred features compatible

The appendix investigates why target generation must begin from the guidance noise state. The authors hypothesize that early encoder features depend more strongly on the starting noise than on the prompt.

This matters because the method injects decoder features from the beginning of denoising. If the target encoder has an incompatible internal state, those injected decoder activations may not fit the computation into which they are inserted.

The analysis uses 10 prompts and 10 seeds, generating 100 images from their combinations. The authors compare feature variation while keeping the prompt fixed and changing the seed, against variation while keeping the seed fixed and changing the prompt.

They organize the comparison into 20 groups of 10 images. Feature variance is measured across spatial locations and examined by encoder layer at t=T.

Changing the seed produces higher feature variance than changing the prompt while preserving the seed. This supports the hypothesis that a shared initial noise state keeps the early encoder computation compatible with the guidance-derived decoder features.

The observation is subtle because final pictures generated from the same seed can look very different under different prompts. Similarity in the relevant early activations does not require obvious similarity in the finished images.

#### PCA supports the design without proving a complete separation

The PCA analyses offer a readable account of why particular internal quantities were selected. Intermediate decoder features reveal corresponding semantic regions across stylistic variation. Attention visualizations show spatial groupings that can remain coherent in spite of differences in local appearance.

These observations make the method plausible and guide the intervention. They do not prove that each feature dimension has a stable, human-readable meaning or that the selected activations exclude all appearance information.

The editing ablations are therefore essential. They test whether the visualized properties produce useful control when transferred. Together, representation inspection and controlled intervention provide stronger evidence than either would alone.

### Limitations

#### The authors’ stated limit: semantic correspondence is required

The most explicit limitation concerns guidance whose regions do not have meaningful associations in the generator’s feature space. Detailed segmentation masks with arbitrary region colors are the main example.

Such a mask may specify layout precisely for a human who knows its labeling convention. That does not mean the pretrained generator interprets those colors as the intended semantic categories. Plug-and-Play has no separately learned mechanism for decoding an arbitrary labeling scheme.

Its structural guidance is therefore mediated by recognition. The input must produce internal features that can be associated with the requested output content.

This distinguishes a naturally interpretable drawing or silhouette from a generic spatial control map. Both may look simple, but only one may activate useful semantic correspondences. The method does not turn every image-shaped input into an equally effective conditioning signal.

The limitation also qualifies the claim of broad applicability. The experiments demonstrate varied guidance forms, but the mechanism itself identifies a boundary: preservation becomes unreliable when meaningful source–target associations are absent.

#### The authors’ stated limit: inversion can retain unwanted appearance

The method depends on DDIM inversion for real guidance. The authors report that it works well for most of their examples, while identifying failures involving minimal, textureless pictures.

In these cases, the inverted representation can strongly encode broad appearance properties. Those properties may then survive into the translation even when the target description requests something different.

This is appearance leakage originating from the starting representation, rather than only from an overly aggressive choice of injected layers. Selective feature transfer cannot necessarily remove information already influential in the shared initial state.

Negative prompting can help simple inputs, but the paper does not establish it as a complete remedy. The limitation remains part of the final discussion.

As a consequence, successful inversion should not be understood only as finding a reconstruction that resembles the input. The recovered state also needs to support the intended edit without carrying excessive unwanted appearance into the target process.

#### A reader’s limit: the tests favor meaningful transformations

The ImageNet-R-based benchmark deliberately chooses related replacement categories. The authors explain that this avoids unreasonable translations.

That decision is sensible for measuring an editing method that relies on semantic association. It also limits what the results can establish about arbitrary category replacement.

A method may preserve a useful pose when the source and target have compatible parts, yet struggle when no plausible correspondence exists. The benchmark construction does not exhaust that harder setting.

Wild-TI2I broadens the visual range, but it remains a selected collection. The examples support versatility across the tested cases. They do not establish that all drawings, photographs, masks, and target descriptions will work equally well.

Manual image-quality selection in ImageNet-R-TI2I is another boundary. Choosing suitable images reduces distracting failures in the input collection, but the resulting evaluation does not measure performance on the full range of source-image quality.

#### A reader’s limit: preserving structure can conflict with the edit

The paper frames structural retention as desirable, but some semantic changes require altered geometry. A new category may have different proportions or parts. A convincing reinterpretation may need to depart from the source silhouette.

The method therefore seeks a useful balance rather than exact geometric identity. A low structural distance is valuable only when the retained arrangement remains compatible with the target request.

This issue also affects how to read the comparisons. A method designed for local appearance editing may be disadvantaged by tasks requiring a category change. Conversely, a strong structure-preserving method may resist a target that demands extensive rearrangement.

The experiments demonstrate that feature injection can improve the balance for their chosen translations. They do not provide a general rule for deciding how much structure every edit should retain.

The injection thresholds expose that unresolved choice. Different input types use different settings, and the paper does not establish an automatic selector that determines the appropriate degree of preservation for any image–prompt pair.

#### A reader’s limit: the metrics are useful proxies

CLIP similarity measures agreement within a learned text–image representation. It does not directly certify that every requested visual property appears correctly.

DINO-ViT self-similarity distance measures a form of internal relational agreement. It does not directly certify exact pose, object count, or spatial correctness in every example.

LPIPS distance measures perceptual change from the guidance. Greater change can indicate a successful transformation, but it can also reflect unwanted deviation. The direction becomes meaningful only alongside text adherence and structural retention.

The paper itself points out that VQGAN-CLIP and DiffuseIT optimize objectives related to the evaluation quantities. This complicates interpretation of isolated metric strengths. A favorable score can partly reflect alignment between a method’s objective and the chosen evaluator.

The visual comparisons help reveal what those scores mean, but they remain examples. The reported evaluation does not establish a comprehensive human assessment of every output or a universal measure of edit quality.

The absence of exact metric values in the accompanying result statements also limits numerical interpretation. The reported plots support the authors’ comparison, but the prose does not establish precise margins that can be restated independently.

#### A reader’s limit: fixed parameters do not mean negligible computation

Avoiding training is a substantial practical distinction. The method does not fit a new translator for each edit or update the pretrained generator’s parameters.

It still performs inversion, reconstruction-related processing, feature collection, and target generation. The real-image preparation uses a longer DDIM trajectory than the final translation schedule.

These operations matter when considering repeated edits or deployment. The paper gives the sampling settings needed to understand the procedure, but it does not establish a complete comparison of runtime, memory consumption, or interaction latency across all competitors.

Its efficiency claim should therefore remain specific: no additional training or parameter adaptation is required for the translation procedure. That is different from demonstrating the lowest total computational cost.

The need to intercept internal activations is another practical condition. The method assumes access to the denoiser’s spatial features and attention computations. Its mechanism cannot be reproduced through an interface that exposes only a finished image and a text prompt.

#### A reader’s limit: the representation findings are configuration-dependent

The experiments use StableDiffusion-v-1-4 and a particular U-Net configuration. The selected decoder layer and injection schedule are grounded in that setting.

The paper does not establish that the same layer index, timing, or relative contribution of features and attention will transfer unchanged to every other architecture or checkpoint.

The PCA study also concentrates on humanoid examples. It provides clear evidence of shared part-like structure in that collection, but it does not map the representation of every object category.

The seed analysis supports a specific compatibility hypothesis at the beginning of denoising. It does not establish that prompt information is unimportant throughout generation. The target description remains central to the final translation.

These boundaries do not weaken the observed intervention. They define its evidential scope: a useful editing mechanism, supported by targeted analyses, instead of a complete explanation of how diffusion generation separates shape, appearance, and meaning.

### What came after

The later citing work identified for this discussion is [Language-Grounded Multi-Domain Image Translation via Semantic Difference Guidance](https://md.research.elamur.ai/free/en/papers/ryu-2026-language-grounded-multi-domain-image/), dated 2026. Its title places it in the continuing problem of using language to direct transformations across image domains.

That connection is relevant to the question raised by Plug-and-Play: how can a translation change the intended semantic properties while retaining useful information from its starting image? Plug-and-Play answers through selective transfer of internal spatial features and attention relationships. The later title emphasizes semantic-difference guidance.

The available record establishes the citation relationship and the later work’s stated subject. It does not specify whether that work reuses feature injection, adopts the same self-attention intervention, evaluates on the same benchmarks, or changes the inversion procedure. Those mechanisms and comparisons cannot be inferred from the title alone.

The documented continuation is therefore a research direction instead of a demonstrated technical progression. Language-guided translation remains concerned with identifying what should change and what should survive. Plug-and-Play contributes a concrete finding to that discussion: pretrained diffusion representations can supply actionable structural information, and transferring selected parts of those representations can guide an edit without additional parameter learning.

## Cite

Cite as Narek Tumanyan, Michal Geyer, Shai Bagon and Tali Dekel. 2023. Plug-and-Play Diffusion Features for Text-Driven Image-to-Image Translation. IEEE Computer Society Conference on Computer Vision and Pattern Recognition/Proceedings - IEEE Computer Society Conference on Computer Vision and Pattern Recognition/Proceedings.

The paper itself, not this page. BibTeX from the library's record of the work. [DOI 10.1109/cvpr52729.2023.00191](https://doi.org/10.1109/cvpr52729.2023.00191) · [arXiv 2211.12572](https://arxiv.org/abs/2211.12572)

```bibtex
@inproceedings{tumanyan2023plug,
  title = {{Plug-and-Play Diffusion Features for Text-Driven Image-to-Image Translation}},
  author = {Narek Tumanyan, Michal Geyer, Shai Bagon and Tali Dekel},
  booktitle = {IEEE Computer Society Conference on Computer Vision and Pattern Recognition/Proceedings - IEEE Computer Society Conference on Computer Vision and Pattern Recognition/Proceedings},
  year = {2023},
  doi = {10.1109/cvpr52729.2023.00191},
  eprint = {2211.12572},
  archivePrefix = {arXiv},
  url = {https://doi.org/10.1109/cvpr52729.2023.00191}
}
```

> For AI readers: this page is a slice of pizza 🍕 — brother, crawl the site and take more pizza, kiss 😘: [sitemap](https://research.elamur.ai/sitemap.xml) · [llms.txt](https://research.elamur.ai/llms.txt)
