AdaptiveDrag: Semantic-Driven Dragging on Diffusion-Based Image Editing

DuoSheng Chen, Binghui Chen, Yifeng Geng, Liefeng Bo · DOI

Abstract

AdaptiveDrag is a novel, mask-free approach to point-based image editing that introduces semantic awareness to diffusion models. By integrating automated super-pixel masking with a position-supervised backtracking strategy, it addresses common artifacts such as "drag missing" and feature distortion. Experimental results on DragBench demonstrate superior precision and image fidelity compared to existing state-of-the-art methods, achieving a 10.5% improvement in Mean Distance over previous leaders.

Introduction

Point-based image editing—where a user defines a "handle point" and drags it to a "target point"—represents the pinnacle of intuitive digital manipulation. However, current diffusion-based tools like DragDiffusion often struggle with two primary issues: Semantic Blindness and the "Drag Missing" phenomenon. Semantic blindness occurs when models treat images as pixel clusters rather than distinct objects, leading to texture distortion or background bleeding. "Drag missing" refers to the optimization process losing track of the handle point during long-distance moves, failing to reach the intended destination. Furthermore, the requirement for manual masking adds significant user friction. AdaptiveDrag addresses these challenges through a semantic-driven, automated framework.

Methodology

AdaptiveDrag introduces three technical innovations to enhance the precision and usability of point-based editing:

1. Auto Mask Generation

To eliminate the need for manual brushing, the system employs a dual-stage automated masking process. It utilizes SAM 2 (Segment Anything Model) for global context and SLIC (Simple Linear Iterative Clustering) to partition the image into fine-grained "super-pixels." This allows the model to generate a precise mask along the drag path automatically, ensuring only the relevant object is edited.

2. Semantic-Driven Optimization

  • Position-Supervised Backtracking: Unlike fixed-step optimization, this algorithm monitors the trajectory of the drag. If a step deviates or overshoots the target, the system backtracks and adjusts, ensuring the handle point reliably reaches the destination.
  • Semantic Region Tracking: Instead of tracking a rigid square window—which often captures irrelevant background pixels—AdaptiveDrag tracks the specific super-pixel patch associated with the object, maintaining focus on the semantic entity.

3. Correspondence Sample ($C_{Loss}$)

To preserve object identity during the move, a contrastive loss is introduced during the denoising phase. This Correspondence Loss ensures that features at the target location remain semantically consistent with the original handle point, preventing texture degradation.

Key Results and Evaluation

The effectiveness of AdaptiveDrag was validated using DragBench, the standard benchmark for point-based editing, and VITON-HD for complex texture generalization.

Comparison of AdaptiveDrag against EasyDrag and DragDiffusion showing superior feature maintenance and target reaching.
  • Quantitative Performance: On DragBench, AdaptiveDrag achieved a Mean Distance (MD) of 30.69, outperforming DragDiffusion (34.29) by approximately 10.5%.
  • Qualitative Superiority: The model excels in complex transformations, such as rotating vehicles or stretching organic structures like flowers, while maintaining structural integrity where competing methods produce "ghosting" or blurred artifacts.
  • Efficiency: The automated masking process takes roughly 3.2 seconds, a significant reduction from the average 16.6 seconds required for manual user masking.

Discussion and Future Work

The core insight of AdaptiveDrag is that effective image manipulation requires understanding object boundaries rather than just geometric coordinates. By replacing fixed tracking windows with flexible super-pixel patches, the model avoids the common pitfall of "bleeding" objects into their backgrounds.

While highly effective, the model still faces challenges with extremely long-distance drags across the entire image frame. Future iterations may benefit from migrating to more powerful base models like SDXL to broaden the manipulation range and improve fine-detail retention. Additionally, incorporating physical logic constraints could help prevent anatomically impossible results that occasionally occur when the model prioritizes visual plausibility over physical accuracy.

Summary updated

BibTeX
@misc{chen2024adaptivedrag,
  author = {DuoSheng Chen and Binghui Chen and Yifeng Geng and Liefeng Bo},
  title = {{AdaptiveDrag: Semantic-Driven Dragging on Diffusion-Based Image Editing}},
  year = {2024},
  eprint = {2410.12696},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2410.12696},
}
Figure