ContextDrag: Precise Drag-Based Image Editing via Context-Preserving Token Injection and Position-Aligned Attention
Not on the map. Why?
Abstract (arXiv)
Drag-based image editing enables intuitive visual manipulation through point-based drag operations. Existing methods mainly rely on diffusion inversion or pixel-space warping with inpainting. However, inversion inherently introduces approximation errors that degrade texture fidelity, whereas rigid pixel-space operations discard semantic context and produce unnatural deformations. To address these issues, we introduce ContextDrag, to our knowledge the first framework that brings drag-based manipulation into the in-context image editing paradigm. By leveraging the in-context capabilities of editing models (e.g., FLUX-Kontext), ContextDrag enables precise drag editing without inversion or fine-tuning. Specifically, we first propose Context-preserving Token Injection (CTI), which injects VAE-encoded reference features into attention layers at spatially aligned target positions, guided by latent-space correspondences estimated directly from user-specified control points. By operating on clean, directly encoded features rather than noisy inversion outputs, CTI preserves rich texture details and enables precise drag control. Second, we propose Position-Aligned Attention (PAA) to eliminate interference caused by spatial displacement of reference features. PAA re-encodes positional embeddings of displaced reference tokens to match their target locations, and masks overlapping regions between source and destination to prevent conflicting features from degrading visual consistency. Experiments on DragBench-SR and DragBench-DR demonstrate that ContextDrag achieves SOTA editing accuracy and overall quality, and comprehensive ablations validate the effectiveness of each proposed component. Code will be publicly available.
Key facts. Cited by 1 paper in the map (data through 7 Oct 2026). Builds on 63 of its 71 references that are in the map. First posted on arXiv 9 Dec 2025.
Builds on
63 of 71 references.
References · 63
- 2021High-Resolution Image Synthesis with Latent Diffusion Modelscited by 18,694
- 2023Segment Anythingcited by 8,158
- 2022Scalable Diffusion Models with Transformerscited by 5,931
- 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,581
- 2024Scaling Rectified Flow Transformers for High-Resolution Image Synthesiscited by 4,094
- 2021GLIDE: Towards Photorealistic Image Generation and Editing with Text-Guided Diffusion Modelscited by 3,595
- 2022DreamBooth: Fine Tuning Text-to-Image Diffusion Models for Subject-Driven Generationcited by 3,286
- 2022InstructPix2Pix: Learning to Follow Image Editing Instructionscited by 2,591
- 2022Prompt-to-Prompt Image Editing with Cross Attention Controlcited by 2,409
- 2022An Image is Worth One Word: Personalizing Text-to-Image Generation using Textual Inversioncited by 2,231
- 2022Imagic: Text-Based Real Image Editing with Diffusion Modelscited by 1,172
- 2022Null-text Inversion for Editing Real Images using Guided Diffusion Modelscited by 1,168
38 more
- 2025Qwen-Image Technical Reportcited by 973
- 2025FLUX.1 Kontext: Flow Matching for In-Context Image Generation and Editing in Latent Spacecited by 960
- 2023MasaCtrl: Tuning-Free Mutual Self-Attention Control for Consistent Image Synthesis and Editingcited by 722
- 2021DiffusionCLIP: Text-Guided Diffusion Models for Robust Image Manipulationcited by 640
- 2024OminiControl: Minimal and Universal Control for Diffusion Transformercited by 334
- 2023DragDiffusion: Harnessing Diffusion Models for Interactive Point-based Image Editingcited by 293
- 2023Drag Your GAN: Interactive Point-based Manipulation on the Generative Image Manifoldcited by 218
- 2024FlowEdit: Inversion-Free Text-Based Editing Using Pre-Trained Flow Modelscited by 214
- 2024Diffusion Model-Based Image Editing: A Surveycited by 212
- 2023DragonDiffusion: Enabling Drag-style Manipulation on Diffusion Modelscited by 193
- 2025Less-to-More Generalization: Unlocking More Controllability by In-Context Generationcited by 153
- 2024DreamBench++: A Human-Aligned Benchmark for Personalized Image Generationcited by 131
- 2024ReNoise: Real Image Inversion Through Iterative Noisingcited by 127
- 2024Training-Free Consistent Text-to-Image Generationcited by 123
- 2025LongCat-Image Technical Reportcited by 92
- 2024DiffEditor: Boosting Accuracy and Flexibility on Diffusion-based Image Editingcited by 88
- 2024Controllable Generation with Text-to-Image Diffusion Models: A Surveycited by 82
- 2023The Blessing of Randomness: SDE Beats ODE in General Diffusion-based Image Editingcited by 61
- 2025OminiControl2: Efficient Conditioning for Diffusion Transformerscited by 56
- 2024LoRA-Composer: Leveraging Low-Rank Adaptation for Multi-Concept Customization in Training-Free Diffusion Modelscited by 55
- 2025XVerse: Consistent Multi-Subject Control of Identity and Semantic Attributes via DiT Modulationcited by 55
- 2021Multimodal Image Synthesis and Editing: The Generative AI Eracited by 52
- 2023RenAIssance: A Survey into AI Text-to-Image Generation in the Era of Large Modelcited by 47
- 2024DreamStory: Open-Domain Story Visualization by LLM-Guided Multi-Subject Consistent Diffusioncited by 46
- 2025UniEdit-Flow: Unleashing Inversion and Editing in the Era of Flow Modelscited by 38
- 2024GoodDrag: Towards Good Practices for Drag Editing with Diffusion Modelscited by 33
- 2024RegionDrag: Fast Region-Based Image Editing with Diffusion Modelscited by 31
- 2024InstantDrag: Improving Interactivity in Drag-based Image Editingcited by 30
- 2025DragFlow: Unleashing DiT Priors with Region Based Supervision for Drag Editingcited by 29
- 2024CharacterFactory: Sampling Consistent Characters with GANs for Diffusion Modelscited by 24
- 2024FastDrag: Manipulate Anything in One Stepcited by 20
- 2025Positional Encoding Fieldcited by 20
- 2023A Data Perspective on Enhanced Identity Preservation for Diffusion Personalizationcited by 18
- 2025CharaConsist: Fine-Grained Consistent Character Generationcited by 18
- 2025Mod-Adapter: Tuning-Free and Versatile Multi-concept Personalization via Modulation Adaptercited by 13
- 2024DragText: Rethinking Text Embedding in Point-based Image Editingcited by 12
- 2024Blind Inversion using Latent Diffusion Priorscited by 10
- 2025Consistent Image Layout Editing with Diffusion Modelscited by 9
50 most cited of 63 All 63 (JSON)
Built on by
Citing papers per year: 2026: 1.
1 paper.