TL;DR
This paper tackles "attribute leakage" in text-guided image editing, where edits intended for one object unintentionally affect others. They introduce a novel framework, ALE, that disentangles text embeddings and precisely guides edits, significantly reducing leakage. To rigorously evaluate this, they also release ALE-Bench, a new benchmark with specialized metrics for leakage.
What Problem Does This Paper Address?
Text-guided image editing, powered by diffusion models, allows users to modify images using natural language prompts. This is a huge step up from traditional manual editing. However, a persistent problem is "attribute leakage." Imagine you want to change a red apple to a green apple, but the edit accidentally turns a nearby banana yellow too. This is Target-External Leakage (TEL). Or, if you're editing multiple objects, changing one might unintentionally alter another. This is Target-Internal Leakage (TIL). The authors pinpoint the root cause of this leakage in how text encoders, particularly the End-of-Sequence (EOS) tokens, semantically entangle information from the entire prompt, leading to diffusion models applying attributes to the wrong places. Existing methods struggle to fully resolve this, especially in complex multi-object editing scenarios.
Methods
The core of the paper is their proposed framework, Attribute-Leakage-Free Editing (ALE), which tackles leakage at its source. ALE builds upon a dual-branch diffusion model architecture, common in text-guided editing, but introduces three key components:
- Object-Restricted Embeddings (ORE): Instead of a single, entangled embedding for the whole prompt, ORE encodes each object's prompt individually. This disentangles the semantic information, preventing one object's attributes from bleeding into another's.
- Region-Guided Blending for Cross-Attention Masking (RGB-CAM): This component uses segmentation masks to spatially constrain where the diffusion model's attention is focused. It ensures that the disentangled embeddings from ORE are applied only to their intended regions, further preventing TIL.
- Background Blending (BB): To ensure that non-edited parts of the image remain untouched (preventing TEL), BB intelligently blends the original source image's latent representation for background regions.
These components work together to achieve precise, leakage-free edits.
Datasets
The authors introduce a new benchmark called ALE-Bench. This benchmark is specifically designed to evaluate attribute leakage in multi-object text-guided image editing. It features:
- 20 diverse images (natural and artificial scenes).
- Semi-automated object masks.
- Succinct prompt pairs covering five edit types: color, object, material, color+object, and object+material.
- A total of 3,000 editing scenarios, generated by creating 10 random prompts for each combination of edit type and number of objects (1-3 objects).
This differs from existing benchmarks that often focus more on overall image quality and background preservation, and less on the nuanced problem of attribute leakage, especially in multi-object scenarios.
Key Insights and Ideas
- EOS Embeddings are the Culprit: The paper strongly argues that the semantic entanglement within End-of-Sequence (EOS) tokens of text encoders is a fundamental cause of attribute leakage. This is a crucial insight that shifts focus from just cross-attention manipulation to the underlying text representation.
- Disentanglement is Key: The success of ALE hinges on its ability to disentangle text embeddings (ORE) and then spatially guide those disentangled embeddings (RGB-CAM). This two-pronged approach is more effective than methods that only address one aspect.
- Synergy of Components: The ablation studies highlight that no single component of ALE is sufficient on its own. ORE and RGB-CAM tackle TIL, while BB addresses TEL. Only when all three are combined does ALE achieve comprehensive leakage-free editing.
- Need for Specialized Evaluation: The creation of ALE-Bench and its novel metrics (TELS and TILS) underscores the inadequacy of existing evaluation methods for truly assessing attribute leakage, especially in complex multi-object edits.
Key Results
ALE demonstrates significant improvements in reducing attribute leakage.
- Quantitative Results: On ALE-Bench, ALE achieves the lowest Target-External Leakage Score (TELS) and Target-Internal Leakage Score (TILS) compared to baselines like P2P, MasaCtrl, FPE, and InfEdit. For instance, in Table 1, ALE achieves a TELS of 16.03 and TILS of 15.28, significantly lower than other methods. It also maintains high Structure Distance and Editing Performance.
- Qualitative Results: Figures and tables throughout the paper show that ALE produces visually convincing edits that precisely adhere to the prompts, without unintended changes to other objects or the background. The qualitative examples in Figure 9 and Figure 14 clearly illustrate ALE's ability to perform complex multi-object edits without leakage, where baselines often fail.
- Efficiency: ALE is also efficient, achieving fast runtimes (around 4.31 seconds per edit on an RTX 6000 Ada Gen) due to its virtual inversion approach via DDCM, outperforming methods relying on more expensive DDIM or null-text inversions.
Limitations and Future Work
- Limited Edit Types: ALE-Bench currently focuses on rigid attribute edits (color, object, material). It does not cover more complex transformations like style transfer or pose changes, where defining and detecting attribute leakage is more ambiguous. The authors suggest future work could expand the benchmark to include these.
- Dataset Size: The current ALE-Bench dataset of 20 images might be limiting for evaluating models trained on larger datasets. Future work could involve expanding the dataset.
- Backbone Model Dependence: ALE relies on pre-trained diffusion and segmentation models (Grounded-SAM). Failures can occur if the task exceeds the capabilities of these backbones, such as handling overly rare prompts or poor segmentation. The authors anticipate that advancements in these backbone models will mitigate these issues over time.
Summary updated