FlexiEdit: Frequency-Aware Latent Refinement for Enhanced Non-rigid Editing

Gwanhyeong Koo, Sunjae Yoon, Ji Woo Hong, Chang D. Yoo

Introduction

Text-guided image editing has seen significant progress with diffusion models, primarily through DDIM Inversion. However, a persistent challenge remains: "non-rigid" editing. While changing colors or textures (rigid edits) is relatively straightforward, altering an object's pose or layout—such as making a standing dog sit—often fails. This failure stems from a "structural lock" where high-frequency components of the DDIM latent act as anchors, forcing the model to adhere to the original image's silhouette and leading to artifacts or failed edits.

Qualitative comparison of FlexiEdit against baseline methods across various rigid and non-rigid editing tasks.

FlexiEdit addresses this by introducing a frequency-aware latent refinement strategy. By selectively dampening high-frequency structural information, the framework allows for dramatic layout changes while preserving the core identity and attributes of the subject.

Methodology

FlexiEdit employs a two-stage pipeline designed to break the structural lock and then restore fine-grained details.

1. Frequency-Aware Latent Refinement

The core innovation lies in manipulating the latent space in the frequency domain. Using a Fourier Transform on the DDIM latent within a target editing region, the system reduces high-frequency components (controlled by a scaling factor $\alpha$) and introduces scaled Gaussian noise. This "softens" the structural constraints, providing the diffusion model with the necessary flexibility to re-arrange the layout according to the new text prompt.

Overview of the FlexiEdit framework, including (a) non-rigid editing results, (b) the latent refinement process diagram, and (c) quantitative CLIP similarity comparisons.

2. Three-Branch Re-inversion Strategy

To maintain high fidelity to the original object's unique attributes (e.g., specific fur patterns), FlexiEdit utilizes a three-branch architecture:

  • Source Branch: Reconstructs the original image for feature reference.
  • Target Branch: Generates an intermediate layout image ($I_{mid}$) using the refined latent.
  • Retarget Branch: Performs a re-inversion of $I_{mid}$ and denoises it while injecting key and value features from the Source branch, effectively "pasting" the original identity onto the new pose.

Results and Discussion

FlexiEdit was evaluated using PIE-Bench (specifically a subset of 30 images focused on non-rigid edits) and the ELITE dataset.

Quantitative Performance

As shown in Figure 4(c), FlexiEdit achieves superior CLIP Similarity scores for non-rigid editing compared to state-of-the-art methods like MasaCtrl and Prompt-to-Prompt (P2P). Specifically, it reached a score of 25.28 for the full image and 24.88 for the edited region, indicating better alignment with the target text prompt without sacrificing image quality.

Qualitative Success

Qualitative results demonstrate FlexiEdit's ability to handle complex pose changes—such as a cat raising its paws or a teddy bear jumping—where baseline methods often produce "ghosting" or fail to move the subject significantly. Even in rigid editing scenarios, the added flexibility allows for more natural-looking results by slightly adjusting proportions to fit the new concept (e.g., a horse becoming a zebra).

Conclusion

FlexiEdit successfully overcomes the structural limitations of standard DDIM inversion by operating in the frequency domain. By separating layout generation from identity preservation through its three-branch strategy, it enables a new level of flexibility in text-guided image editing. Future work will focus on automating hyperparameter selection and further improving background preservation.

Summary updated

BibTeX
@inproceedings{koo2024flexiedit,
  author = {Gwanhyeong Koo and Sunjae Yoon and Ji Woo Hong and Chang D. Yoo},
  title = {{FlexiEdit: Frequency-Aware Latent Refinement for Enhanced Non-rigid Editing}},
  booktitle = {European Conference on Computer Vision},
  year = {2024},
  doi = {10.1007/978-3-031-73036-8\_21},
}
Figure