Drag Your Noise: Interactive Point-based Editing via Diffusion Semantic Propagation

Haofeng Liu, Chenshu Xu, Yifei Yang, Lihua Zeng, Shengfeng He · DOI

Abstract

Point-based interactive editing serves as an essential tool to complement the controllability of existing generative models. A concurrent work, DragDiffusion, updates the diffusion latent map in response to user inputs, causing global latent map alterations. This results in imprecise preservation of the original content and unsuccessful editing due to gradient vanishing. In contrast, we present DragNoise, offering robust and accelerated editing without retracing the latent map. The core rationale of DragNoise lies in utilizing the predicted noise output of each U-Net as a semantic editor. This approach is grounded in two critical observations: firstly, the bottleneck features of U-Net inherently possess semantically rich features ideal for interactive editing; secondly, high-level semantics, established early in the denoising process, show minimal variation in subsequent stages. Leveraging these insights, DragNoise edits diffusion semantics in a single denoising step and efficiently propagates these changes, ensuring stability and efficiency in diffusion editing. Comparative experiments reveal that DragNoise achieves superior control and semantic retention, reducing the optimization time by over 50% compared to DragDiffusion.

Introduction

Interactive point-based editing, where users manipulate images by dragging specific points to target locations, is a highly intuitive method for image modification. While early successes like DragGAN demonstrated the potential of this approach within Generative Adversarial Networks, they often struggled with real-world image fidelity and global stability. Diffusion models have emerged as a powerful alternative, but existing methods like DragDiffusion face significant challenges. Specifically, optimizing the noisy latent map through the entire denoising chain often leads to gradient vanishing, resulting in "under-dragging" where objects fail to reach their intended targets. Furthermore, maintaining the identity of the original image while performing edits remains computationally expensive and prone to artifacts.

Methodology: Diffusion Semantic Propagation

DragNoise addresses these limitations through a novel framework called Diffusion Semantic Propagation. This approach shifts the focus from the latent map to the internal representations of the diffusion model.

Diffusion Semantic Optimization

Instead of optimizing the latent map directly, DragNoise targets the bottleneck features of the U-Net. Research indicates that these features are semantically rich and are established early in the denoising process (typically around timestep $t=35$ out of 50). By optimizing these features at a single early timestep to align with user-defined drag points, the model can capture the desired semantic change more effectively.

Interactive point-based editing interface showing anchor and target points on a portrait and a painting.

Diffusion Semantic Propagation

A key innovation of DragNoise is the propagation of these optimized bottleneck features. Rather than re-optimizing at every subsequent denoising step, the system copies the optimized features into later stages. This ensures that the semantic modification is preserved throughout the generation process without the need for redundant, time-consuming optimization. To maintain high fidelity to the original image, the framework utilizes a LoRA (Low-Rank Adaptation) module fine-tuned on the specific input image.

Experiments and Results

The performance of DragNoise was evaluated using the DragBench benchmark, which covers a wide range of categories including animals, plants, art, and vehicles.

Performance and Efficiency

DragNoise demonstrates a significant performance boost, reducing optimization time by over 50%. On a Tesla V100 GPU, editing a 512x512 image takes approximately 10 seconds, compared to 22 seconds for DragDiffusion. This efficiency gain makes real-time interactive editing more feasible.

Accuracy and Fidelity

Quantitative metrics show that DragNoise achieves lower Mean Distance (MD) scores, indicating more accurate point placement. It also maintains higher Image Fidelity (IF), better preserving the identity and "soul" of the original image compared to GAN-based or previous diffusion-based methods.

DragNoise demonstrates robust editing capabilities across diverse domains, including animal features and food textures.

Discussion and Limitations

While DragNoise offers substantial improvements in speed and accuracy, it still relies on per-image LoRA fine-tuning to ensure the highest fidelity, which introduces a pre-processing delay. Additionally, like other 2D-based editors, it faces challenges with complex 3D transformations and may produce artifacts when presented with conflicting user inputs. Future research aims to develop universal adapters to eliminate the need for image-specific fine-tuning.

Conclusion

DragNoise represents a significant step forward in interactive image editing. By leveraging the semantic stability of U-Net bottleneck features and introducing an efficient propagation mechanism, it provides a robust, fast, and accurate solution for point-based manipulation in diffusion models.

Summary updated

BibTeX
@inproceedings{liu2024drag,
  author = {Haofeng Liu and Chenshu Xu and Yifei Yang and Lihua Zeng and Shengfeng He},
  title = {{Drag Your Noise: Interactive Point-based Editing via Diffusion Semantic Propagation}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2024},
  doi = {10.1109/cvpr52733.2024.00644},
}
Figure