Localize, Understand, Collaborate: Semantic-Aware Dragging via Intention Reasoner

Xing Cui, Peipei Li, Zekun Li, Xuannan Liu, Yueying Zou, Zhaofeng He · OpenReview

Abstract

Flexible and accurate drag-based editing is a challenging task that has recently garnered significant attention. Current methods typically model this problem as automatically learning "how to drag" through point dragging and often produce one deterministic estimation. This presents two key limitations: overlooking the inherently ill-posed nature of drag-based editing and ignoring the constraints of image quality, which can lead to unexpected distortion. To alleviate this, we propose LucidDrag, which shifts the focus from "how to drag" to a paradigm of "what-then-how." LucidDrag comprises an intention reasoner and a collaborative guidance sampling mechanism. Qualitative and quantitative comparisons demonstrate the superiority of LucidDrag over previous methods.

Introduction

Drag-based image editing allows users to manipulate images by simply clicking and dragging "handle points" to "target points." While intuitive, this task is inherently ill-posed and ambiguity-prone. For example, if a user drags a horse’s head upward, are they trying to make the horse look up, elongate its neck, or move the entire horse?

Existing methods typically treat this as a deterministic point-tracking problem ("how to drag"), often ignoring the underlying semantic meaning. This leads to two major issues: Semantic Blindness, where the model fails to capture the user's actual intent, and Image Distortion, where aggressive dragging results in "melting" artifacts or unrealistic textures. LucidDrag addresses these by introducing a semantic-aware reasoning step before the execution of the drag.

Methodology

LucidDrag splits the editing process into two distinct stages to ensure both semantic accuracy and visual fidelity.

1. The Intention Reasoner ("What to Drag")

Instead of jumping straight to pixel manipulation, the system first attempts to understand the user's goal through two steps:

  • Localization: A Large Language-Vision Model (LVLM), specifically Osprey, identifies the object at the handle point (e.g., "the nose of a woman").
  • Reasoning: A Large Language Model (GPT-3.5) takes the object description and the drag vector to brainstorm potential semantic intentions. It generates pairs of source prompts (e.g., "a woman looking forward") and target prompts (e.g., "a woman looking down").

2. Collaborative Guidance Sampling ("How to Drag")

Once the intent is clear, the model uses three collaborative forces to guide the Diffusion process:

  • Semantic Guidance: Uses the difference between the source and target text prompts to provide a high-level "direction" for the edit in the latent space.
  • Quality Guidance: A dedicated discriminator (a fine-tuned U-Net) distinguishes between high-fidelity images and those with dragging artifacts. This provides a "quality gradient" that keeps the generation within the realm of realistic images.
  • Editing Guidance: This mechanism ensures the features at the handle point actually move toward the target point, maintaining the precision of the user's input.

Experimental Results

LucidDrag demonstrates a clear lead over previous methods like DragDiffusion, FreeDrag, and DiffEditor across several metrics.

Quantitative Evaluation

On the DragBench dataset, LucidDrag achieved a Mean Distance of 20.46, significantly outperforming the previous best of 26.01 (DiffEditor). Furthermore, it achieved the highest GScore (7.37), a metric designed to align with human perception of image quality.

Qualitative Advantages

  • Diversity: Unlike deterministic models, LucidDrag can generate multiple valid interpretations of a single drag command (e.g., different ways a cat might "look down").
  • Object Moving: In tasks involving moving entire objects, LucidDrag successfully prevents "ghosting" (where the object remains in its original position while a copy moves) by using its semantic understanding to "fill in" the background.

Conclusion and Future Work

LucidDrag introduces a "what-then-how" paradigm that treats drag-based editing as a communication problem rather than just a geometry problem. By involving an LLM to "hallucinate" reasonable goals for ambiguous clicks and utilizing a quality discriminator, it produces more accurate and high-fidelity results.

Future work will focus on improving the model's handling of extremely complex geometries and optimizing inference speed, as the multi-step guidance process is currently more computationally intensive than simpler GAN-based approaches. Additionally, the authors suggest that future versions could use an LLM agent to dynamically adjust the weights between semantic, quality, and editing guidance based on the specific task.

Summary updated

BibTeX
@inproceedings{cui2024localize,
  author = {Xing Cui and Peipei Li and Zekun Li and Xuannan Liu and Yueying Zou and Zhaofeng He},
  title = {{Localize, Understand, Collaborate: Semantic-Aware Dragging via Intention Reasoner}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=kcQKIzQPZj},
}
Figure