DragLoRA: Online Optimization of LoRA Adapters for Drag-based Image Editing in Diffusion Model

Siwei Xia, Li Sun, Tiantian Sun, Qingli Li · DOI

Introduction

Drag-based image editing allows users to interactively manipulate images by clicking a "handle" point and dragging it to a "target" location. While early GAN-based methods were fast, they lacked the creative range and semantic understanding of modern Diffusion Models. Existing diffusion methods, such as DragDiffusion, typically optimize the "latent" representation of the image. However, latents have limited representational capacity, often struggling to encode complex deformations without losing the original image's identity or introducing blurriness.

DragLoRA shifts this paradigm by moving the optimization from the image data (latents) to the model's weights. By performing online optimization of Low-Rank Adaptation (LoRA) layers, DragLoRA achieves significantly higher precision and better detail preservation than previous state-of-the-art methods.

Methodology

The core innovation of DragLoRA is the online fine-tuning of LoRA adapters within the UNet during the editing process. This allows the model to learn the specific deformation requested by the user in real-time.

The DragLoRA framework, featuring online LoRA optimization and input latent feature adaptation.

The framework is built upon several key technical pillars:

  • Dual-Objective Optimization (DOO): To prevent the model from "forgetting" how to generate realistic images while learning the drag, the authors employ two losses. The Drag Loss ($L_{drag}$) forces handle points toward the target, while the Delta Denoising Score (DDS) Loss acts as a regularizer, ensuring the LoRA-enhanced model stays semantically aligned with the original pre-trained model.
  • Input Latent Feature Adaptation (ILFA): This cyclic "denoise-renoise" process ensures that the latent representation "keeps up" with the structural changes the model is learning. This prevents the mismatch between weights and latents that typically causes visual artifacts.
  • Adaptive Optimization Scheme (ASS): The system dynamically toggles between modes. If point tracking is successful and confident, it performs only light Input Adaptation. If tracking becomes difficult (e.g., due to occlusions), it re-activates full LoRA training.
  • Efficient Point Tracking (EPT): Rather than searching the entire image, DragLoRA uses geometric constraints (distance-closer and angle-closer regions) to find new handle positions much faster.

Key Results and Insights

A central insight of this work is that model weights have a much higher capacity to represent motion than latent features. By optimizing the model itself, the system can produce much crisper results for complex requests like stretching a limb or changing a facial expression.

Qualitative comparison of DragLoRA against state-of-the-art methods across various editing tasks.

Furthermore, the authors observed a "Meta-Learning Effect": after a few steps of optimization, the LoRA layers "learn" the general direction of the drag. This allows the system to continue moving points using only latent adaptation (ILFA) without needing constant gradient updates, drastically saving computation time.

Quantitatively, DragLoRA achieves superior precision on the DragBench dataset with a Mean Distance (MD) of 23.77, significantly outperforming DragDiffusion (32.13). The "Fast" version of DragLoRA completes edits in roughly 22.9 seconds, making it highly competitive in terms of speed while maintaining superior fidelity.

Conclusion

DragLoRA demonstrates that online weight optimization is a powerful alternative to latent-based editing in diffusion models. By combining LoRA tuning with a robust denoising-renoising cycle and adaptive optimization, it provides a more precise and efficient tool for interactive image manipulation. While limitations remain regarding extreme viewpoint hallucinations, the framework sets a new standard for detail preservation and structural integrity in drag-based editing.

Summary updated

BibTeX
@inproceedings{xia2025draglora,
  author = {Siwei Xia and Li Sun and Tiantian Sun and Qingli Li},
  title = {{DragLoRA: Online Optimization of LoRA Adapters for Drag-based Image Editing in Diffusion Model}},
  booktitle = {International Conference on Machine Learning},
  year = {2025},
  url = {https://openreview.net/forum?id=b74kufhhsk},
}
Figure