InstructUDrag: Joint Text Instructions and Object Dragging for Interactive Image Editing
Haoran Yu, Yi Shi
TL;DR
InstructUDrag addresses the complementary limitations of text-based image editing and object dragging by introducing a two-branch diffusion-based framework that jointly performs object relocation and text-guided edits. A moving-reconstruction branch preserves structure during dragging, while a text-driven editing branch applies semantic changes; both branches share gradient guidance to ensure coherent outputs, aided by non-target position mask learning and DDPM inversion with noise priors to maintain object integrity. The approach is training-free and extendable to object pasting, demonstrating superior object relocation fidelity, reduced trace remnants, and flexible semantic control compared with prior methods. Together, these elements enable high-fidelity, interactive image edits that simultaneously adjust position and appearance with precise user prompts, suitable for practical editing tasks in interactive pipelines.
Abstract
Text-to-image diffusion models have shown great potential for image editing, with techniques such as text-based and object-dragging methods emerging as key approaches. However, each of these methods has inherent limitations: text-based methods struggle with precise object positioning, while object dragging methods are confined to static relocation. To address these issues, we propose InstructUDrag, a diffusion-based framework that combines text instructions with object dragging, enabling simultaneous object dragging and text-based image editing. Our framework treats object dragging as an image reconstruction process, divided into two synergistic branches. The moving-reconstruction branch utilizes energy-based gradient guidance to move objects accurately, refining cross-attention maps to enhance relocation precision. The text-driven editing branch shares gradient signals with the reconstruction branch, ensuring consistent transformations and allowing fine-grained control over object attributes. We also employ DDPM inversion and inject prior information into noise maps to preserve the structure of moved objects. Extensive experiments demonstrate that InstructUDrag facilitates flexible, high-fidelity image editing, offering both precision in object relocation and semantic control over image content.
