GDrag:Towards General-Purpose Interactive Editing with Anti-ambiguity Point Diffusion

Xiaojian Lin, Hanhui Li, Yuhao Cheng, Yiqiang Yan, Xiaodan LiangICLR 2025

TL;DR

GDrag is a training-free framework that brings precision to interactive "drag-to-edit" image manipulation by explicitly modeling the intent of an edit (e.g., rotating vs. moving). By converting sparse user clicks into dense point trajectories and using a self-adaptive supervision method, it significantly reduces the distortions and "drifting" common in previous state-of-the-art dragging methods.

The Challenge of Point-Based Editing

Interactive point-based editing—where you click a point on an image and drag it to a new location—is highly desirable for user-friendly image manipulation. However, current diffusion-based methods suffer from two major "ambiguity" issues:

  1. Intention Ambiguity: If a user drags a point on a car's wheel, are they trying to move the whole car, rotate the wheel, or stretch the tire? Most models treat every drag as a generic 2D translation, leading to unrealistic results for complex moves like 3D rotations.
  2. Content Ambiguity: Models often struggle to distinguish the target object from its background. This leads to "content drifting," where the object loses its shape or the background gets distorted during the edit.
Visual comparison of GDrag against DragDiffusion

GDrag aims to solve these by making the editing process task-aware and context-rich.

How GDrag Works

GDrag introduces a three-pronged approach to clean up the "messiness" of point-based dragging:

Overview of the GDrag framework
  • Atomic Task Taxonomy: Instead of treating all drags the same, GDrag categorizes edits into three types: Relocation (moving), Rotation (in-plane and out-of-plane), and Non-rigid Transformation (scaling or content creation/removal). Users specify the task via a simple UI.
  • Anti-ambiguity Dense Trajectory (ADT): Sparse points (just a few clicks) don't provide enough context. ADT uses a segmentation model to identify the target object and then populates it with a dense set of "neighbor" points. It then calculates a mathematically sound trajectory for this entire "cloud" of points based on the chosen task. For rotations, it even uses a virtual ellipsoid to simulate 3D movement.
  • Self-adaptive Motion Supervision (SMS): Previous methods optimized image features at a single, fixed "denoising step" of the diffusion process. GDrag argues that different steps contain different information (structure vs. texture). SMS randomly samples across all time steps and optimizes point-wise scaling maps and latent feature biases. This allows the model to fine-tune the edit at multiple levels of granularity simultaneously.

Key Insights

  • Explicit is Better than Implicit: 2D drag vectors are mathematically insufficient to describe 3D transformations. By simply telling the model "this is a rotation," GDrag can apply geometric priors (like ellipsoidal projection) that a generic model could never guess.
  • The Power of Density: Moving a single pixel is hard because the model doesn't know where that pixel "ends" and the background "begins." Moving a dense semantic mask ensures the object moves as a cohesive unit.
  • Randomized Denoising Steps: Rather than hunting for the "perfect" denoising step to perform the edit, randomly sampling steps during the optimization process makes the model more robust and prevents it from getting stuck in local minima.

Performance and Results

The authors evaluated GDrag primarily on DragBench, a challenging benchmark specifically designed for point-based editing, comparing it against baselines like DragDiffusion, DragonDiffusion, FreeDrag, and DragNoise.

GDrag sets a new state-of-the-art across both quantitative and qualitative metrics:

  • Precision: It achieved the lowest Mean Distance (MD) of 26.49, meaning the dragged objects actually ended up where the user intended (compared to 33.91 for DragDiffusion).
  • Quality: It achieved the lowest LPIPS score (0.0915), indicating the highest visual fidelity and fewest artifacts.
  • Human Preference: In a user study with 20 volunteers, GDrag was preferred 60.33% of the time, dwarfing the next best competitor (DragNoise at 12.67%).

Limitations and Future Work

While GDrag is a significant step forward, it relies on Stable Diffusion 1.5. The quality of the "inpainting" (filling in the holes left behind by a moved object) is limited by this base model's generative capacity. Additionally, because it is an optimization-based method, it takes about 192 seconds to process an image on an NVIDIA RTX 4090, which is far from real-time. Future directions include integrating more advanced base models (like SDXL or Flux) and improving the efficiency of the optimization loop.

Summary updated

BibTeX
@inproceedings{lin2025gdrag,
  author = {Xiaojian Lin and Hanhui Li and Yuhao Cheng and Yiqiang Yan and Xiaodan Liang},
  title = {{GDrag:Towards General-Purpose Interactive Editing with Anti-ambiguity Point Diffusion}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=8G3FyfHIko},
}
Figure