Abstract
Interactive drag-based image editing has traditionally relied on UNet-based diffusion models, which often produce unnatural distortions due to limited generative priors. This paper introduces DragFlow, a framework that leverages the superior generative capabilities of Diffusion Transformers (DiTs) like FLUX. By transitioning from point-based tracking to region-based affine supervision, DragFlow overcomes the semantic sparsity of DiT feature maps. Additionally, it incorporates adapter-enhanced inversion to maintain subject identity in CFG-distilled models. Experimental results on the new ReD Bench demonstrate that DragFlow achieves state-of-the-art performance in preserving background fidelity and subject integrity during complex image manipulations.
Introduction
Interactive "drag-based" editing allows users to manipulate image content by dragging specific parts to new locations. Historically, these methods have relied on UNet-based models like Stable Diffusion. However, Stable Diffusion's generative prior is sometimes too weak to project heavily optimized, dragged latents back into realistic images, resulting in smeared or distorted artifacts.
The generative AI field has recently shifted to Diffusion Transformers (DiTs) like FLUX, which boast vastly superior image quality and structural understanding. However, simply applying existing drag-editing frameworks to DiTs fails. UNets have highly compressed "bottleneck" layers that capture broad semantic context in a single feature point, making point-based tracking feasible. In contrast, DiTs maintain fine-grained, spatially precise features throughout. A single point in a DiT feature map lacks the semantic context needed to guide an edit. Furthermore, modern DiTs are often CFG-distilled, making them difficult to invert without losing the subject's original identity.
Methodology
To unlock DiTs for drag editing, DragFlow abandons point-based tracking in favor of a region-based approach. The framework consists of several key components:
Region-Level Affine Supervision
Instead of trying to track a single pixel as it moves, DragFlow takes a user-defined region (a mask) and applies progressive affine transformations (shifting, stretching, rotating) to it over the optimization steps. By comparing features across entire regions rather than single points, the model utilizes rich semantic context to update the image without explicit, error-prone point tracking.
Hard Background Constraints
Previous methods used soft "consistency losses" to preserve the background, which often failed. DragFlow uses a gradient mask to strictly block updates to unedited areas, ensuring the background remains untouched.
Adapter-Enhanced Inversion
To fix DiT inversion drift—where the subject loses its identity during reconstruction—DragFlow repurposes off-the-shelf personalization adapters (like IP-Adapter). By injecting the subject's representation into the model prior during inversion, it anchors the subject's identity without requiring fine-tuning.
MLLM Assistant
To enhance user experience, a Multimodal Large Language Model (MLLM) analyzes user scribbles to automatically infer intent (relocation, deformation, or rotation) and generate necessary text prompts to guide the diffusion process.
Experiments and Results
The authors evaluated DragFlow using two primary benchmarks: ReD Bench (Region-based Dragging Benchmark), a novel benchmark introduced in this paper containing 120 images with precise region-level annotations, and DragBench-DR, an existing benchmark adapted for region-based evaluation.
Performance Analysis
DragFlow achieved state-of-the-art performance across both benchmarks. On ReD Bench, it scored the lowest Mean Distance (MD1 of 19.46 vs. the next best 20.38), proving superior accuracy in moving objects to target destinations. It also achieved the best scores for clearing the original source region (IF_s2s), effectively moving objects rather than cloning them. Visually, DragFlow eliminates the severe structural distortions seen in older methods, handling complex transformations while maintaining photorealism and background integrity.
Conclusion
DragFlow successfully adapts powerful DiT priors for interactive image editing by shifting to a region-based supervision paradigm. While the adapter-enhanced inversion significantly mitigates identity loss, distilled models like FLUX still present challenges for preserving ultra-fine background details. Future work will focus on advanced adapter architectures and inversion techniques specifically tailored for distilled DiTs to further enhance detail preservation.
Summary updated