Abstract
To serve the intricate and varied demands of image editing, precise and flexible manipulation in image content is indispensable. Recently, Drag-based editing methods have gained impressive performance. However, these methods predominantly center on point dragging, resulting in two noteworthy drawbacks: "miss tracking," where difficulties arise in accurately tracking the predetermined handle points, and "ambiguous tracking," where tracked points are potentially positioned in wrong regions that closely resemble the handle points. To address these issues, we propose FreeDrag, a feature dragging methodology designed to free the burden on point tracking. FreeDrag incorporates two key designs: template feature via adaptive updating and line search with backtracking. These technologies contribute to a more stable semantic dragging with higher efficiency. Experimental results substantiate that our approach significantly outperforms pre-existing methodologies, offering reliable point-based editing even in various complex scenarios.
Introduction: The Challenge of Point-Based Editing
Interactive point-based image editing allows users to reshape objects by dragging a "handle point" to a "target point." While models like DragGAN have popularized this, they typically rely on an iterative process of motion supervision and point tracking. This paradigm is fragile.
Two primary failure modes exist:
- Miss Tracking: Significant content changes (e.g., opening eyes) alter the handle point's appearance so much that the tracker loses it, causing distortions.
- Ambiguous Tracking: In regions with repetitive textures (e.g., horse legs), the tracker may jump to a nearby similar-looking but incorrect point.
Methodology: From Point Tracking to Feature Dragging
FreeDrag shifts the focus from tracking specific coordinates to dragging semantic features. It introduces two main innovations:
Adaptive Template Features
Instead of using the feature from the immediate previous step—which can accumulate error—FreeDrag maintains a "template" feature of the handle point. This template is updated via an exponential moving average (EMA) with an adaptive rate. If a dragging step is low quality (high error), the update is minimal to preserve the original identity. High-quality steps allow for more significant updates to accommodate natural geometric changes.
Line Search with Backtracking
To avoid getting lost in ambiguous regions, FreeDrag restricts the search for the next position to a straight line between the handle and target. A backtracking mechanism is included: if a motion step produces a feature drastically different from the template, the system can freeze the point or revert to a previous state, preventing "hallucinations."
Evaluation and Results
The authors evaluated FreeDrag on FreeDragBench (600 StyleGAN2 images) and DragBench (diffusion-based). They also introduced the Content Consistency under Symmetrical Dragging (CCSD) metric, which measures the LPIPS distance after dragging a point to a target and back to its origin.
Key findings include:
- Superior Quality: FreeDrag achieved a significantly lower FID on faces (29.50) compared to DragGAN (38.07).
- Reliability: In CCSD tests, FreeDrag outperformed DragGAN across all categories, often by a factor of two.
- Efficiency: FreeDrag is approximately 3x faster than DragGAN, averaging 2.74 seconds per face edit versus 8.26 seconds.
- Diffusion Compatibility: When integrated with diffusion models, FreeDrag surpassed DragDiffusion in both accuracy and fidelity.
Conclusion
FreeDrag demonstrates that explicit point tracking is often a liability in latent space editing. By treating the problem as a constrained feature-matching task with adaptive memory, the framework achieves greater stability and efficiency. While currently limited to 2D manipulations, future work incorporating 3D priors could further enhance its capability for complex spatial transformations.
Summary updated