Abstract
Text-guided image editing requires a delicate balance between modifying specific attributes and preserving the original image's integrity. Traditional models often rely on static architectures that struggle with spatial precision and task-specific adaptation. We present DE-net, a Dynamic Editing Network that utilizes adaptive blocks to tailor image manipulations based on textual prompts and source content. By dynamically blending affine transformations and employing text-adaptive convolutions, DE-net achieves superior performance in fine-grained editing and background preservation.
Introduction
The primary challenge in text-guided image editing is the "one-size-fits-all" nature of existing architectures. Most models apply the same fixed modules regardless of whether the edit is a global color change or a local structural addition. This often results in "over-editing," where irrelevant background details are altered, or "under-editing," where the requested changes are insufficiently applied. DE-net addresses these issues by introducing dynamic components that adapt their internal logic to the specific requirements of the input text and image.
Methods
DE-net's architecture is built around three innovative components designed for surgical precision:
- Dynamic Editing Block (DEBlock): This block decomposes the editing process into Channel-wise Affine transformations (ideal for global style) and Spatial Affine transformations (better for local texture).
- Composition Predictor (Comp-Pred): This module acts as the "brain," analyzing the text and image to determine the optimal blending weights for the DEBlock transformations.
- Dynamic Text-Adaptive Convolution Block (DCBlock): Unlike standard convolutions, the DCBlock uses kernels that are dynamically reshaped by text guidance. This allows the model to "query" the image for specific features mentioned in the text, isolating them for modification while leaving other areas untouched.
- Semantic Decoder: This pathway provides both global and local semantic context to the DCBlock, enhancing the model's understanding of scene structure.
Key Results
The model was evaluated on the CUB Birds and COCO datasets. Quantitatively, DE-net achieved an Inception Score (IS) of 25.81 on COCO, outperforming ManiGAN (22.60). It also demonstrated a significantly lower L2-error (0.015), indicating higher fidelity to the original image.
Qualitatively, DE-net shows remarkable precision across various tasks, including color changing, content editing, and fine-grained attribute modification. For instance, when tasked with changing a bird's color, it preserves the intricate details of the surrounding environment, such as twigs and leaves, which are often blurred or miscolored by competing models.
Key Insights and Discussion
- Dynamic Composition: A core insight of this work is that image editing should not be treated as a single, static operation. Different prompts require different mathematical transformations.
- Text as an Active Filter: By treating text as a mechanism to generate convolutional weights rather than just supplementary data, DE-net ensures that the transformation is spatially grounded and context-aware.
- Preservation as a Priority: The explicit focus on background preservation ensures that "leaving the background alone" is a primary objective, not an accidental byproduct.
While the multi-head mechanism in the DCBlock provides significant gains, the authors noted diminishing returns beyond eight heads. Future research may explore integrating these dynamic querying mechanisms into Diffusion-based architectures to further enhance high-fidelity image generation and grounding.
Summary updated