SAM-Flow: Source-Anchored Masked Flow for Training-Free Image Editing
On the map: Diffusion models → Image generation, text-to-image and editing
Abstract (arXiv)
Training-free image editing has recently attracted increasing attention due to its ability to modify real images using powerful pre-trained diffusion and flow-matching models without additional training. However, existing inversion-based and differential-flow-based methods usually perform global latent transport, which inevitably propagates editing effects to non-target regions and leads to background leakage. To address this problem, we propose SAM-Flow, a source-anchored masked flow framework for localized training-free image editing. Instead of updating the whole latent representation, SAM-Flow first uses a scout image and token-grounded attention maps to localize the editable semantic regions. It then applies differential velocity updates only within these regions, while anchoring the remaining areas to the source-image latent trajectory. To further improve spatial stability and boundary naturalness, we introduce a time-varying source-anchored projection mechanism with dynamic soft masks, transition regions, and temporal mask accumulation. The proposed method is plug-and-play and can be integrated with mainstream flow-matching backbones such as Stable Diffusion 3 and FLUX without any fine-tuning. Extensive qualitative and quantitative experiments demonstrate that SAM-Flow achieves accurate semantic editing while significantly improving background preservation, providing a simple and general localized editing paradigm for training-free image editing. Code is available at: https://github.com/chwbob/Sam-Flow.
Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Placed in Image generation, text-to-image and editing, one of 14 directions in Diffusion models. Builds on 43 of its 49 references that are in the map. First posted on arXiv 4 Jun 2026.
Builds on
43 of 49 references.
Closest ancestors · 21
Same direction, newest first
- 2025ReFlex: Text-Guided Editing of Real Images in Rectified Flow via Mid-Step Feature Extraction and Attention Adaptation2 Jul
- 2025FlowAlign: Trajectory-Regularized, Inversion-Free Flow-based Image Editing29 May
- 2024Stable Flow: Vital Layers for Training-Free Image Editing21 Nov
- 2024Taming Rectified Flow for Inversion and Editing7 Nov
- 2024Semantic Image Inversion and Editing using Rectified Stochastic Differential Equations14 Oct
- 2023Negative-prompt Inversion: Fast Image Inversion for Editing with Text-guided Diffusion Models26 May
- 2023An Edit Friendly DDPM Noise Space: Inversion and Manipulations12 Apr
- 2023T2I-Adapter: Learning Adapters to Dig out More Controllable Ability for Text-to-Image Diffusion Models16 Feb
- 2023Adding Conditional Control to Text-to-Image Diffusion Models10 Feb
- 2023Attend-and-Excite: Attention-Based Semantic Guidance for Text-to-Image Diffusion Models31 Jan
- 2023GLIGEN: Open-Set Grounded Text-to-Image Generation17 Jan
- 2022Paint by Example: Exemplar-based Image Editing with Diffusion Models23 Nov
9 more
- 2022InstructPix2Pix: Learning to Follow Image Editing Instructions17 Nov
- 2022Null-text Inversion for Editing Real Images using Guided Diffusion Models17 Nov
- 2022Direct Inversion: Optimization-Free Text-Driven Real Image Editing with Diffusion Models15 Nov
- 2022DiffEdit: Diffusion-based semantic image editing with mask guidance20 Oct
- 2022Imagic: Text-Based Real Image Editing with Diffusion Models17 Oct
- 2022What the DAAM: Interpreting Stable Diffusion Using Cross Attention10 Oct
- 2022Blended Latent Diffusion6 Jun
- 2021GLIDE: Towards Photorealistic Image Generation and Editing with Text-Guided Diffusion Models20 Dec
- 2021Blended Diffusion for Text-driven Editing of Natural Images29 Nov
Other references · 22
- 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,744
- 2020Denoising Diffusion Probabilistic Modelscited by 21,076
- 2021High-Resolution Image Synthesis with Latent Diffusion Modelscited by 18,863
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,599
- 2018The Unreasonable Effectiveness of Deep Features as a Perceptual Metriccited by 11,177
- 2020Denoising Diffusion Implicit Modelscited by 9,781
- 2020Score-Based Generative Modeling through Stochastic Differential Equationscited by 9,122
- 2023Segment Anythingcited by 8,234
- 2021Emerging Properties in Self-Supervised Vision Transformerscited by 6,968
- 2022Scalable Diffusion Models with Transformerscited by 6,054
- 2022Flow Matching for Generative Modelingcited by 5,702
- 2024Scaling Rectified Flow Transformers for High-Resolution Image Synthesiscited by 4,181
10 more
- 2022Flow Straight and Fast: Learning to Generate and Transfer Data with Rectified Flowcited by 3,700
- 2022Prompt-to-Prompt Image Editing with Cross Attention Controlcited by 2,431
- 2021SDEdit: Guided Image Synthesis and Editing with Stochastic Differential Equationscited by 1,937
- 2022RePaint: Inpainting using Denoising Diffusion Probabilistic Modelscited by 1,430
- 2022Plug-and-Play Diffusion Features for Text-Driven Image-to-Image Translationcited by 906
- 2023MasaCtrl: Tuning-Free Mutual Self-Attention Control for Consistent Image Synthesis and Editingcited by 727
- 2022EDICT: Exact Diffusion Inversion via Coupled Transformationscited by 258
- 2023Inpaint Anything: Segment Anything Meets Image Inpaintingcited by 233
- 2024FlowEdit: Inversion-Free Text-Based Editing Using Pre-Trained Flow Modelscited by 217
- 2024Text-to-Image Rectified Flow as Plug-and-Play Priorscited by 38
Built on by
Citing papers per year: 2026: 1.
1 paper.
- 2026Constrained Edit Fields for Training-Free Flow Editingcited by 0
- 2026Constrained Edit Fields for Training-Free Flow Editing27 Sep 2026
Similar, not cited
Close in wording, no citation either way
- 2026MaskFlow: Precise, Consistent and Seamless Regional Image Editing
- 2026SteerFlow: Steering Rectified Flows for Faithful Inversion-Based Image Editing
- 2025SplitFlow: Flow Decomposition for Inversion-Free Text-to-Image Editing
- 2026AdaEdit: Adaptive Temporal and Channel Modulation for Flow-Based Image Editing
- 2025DragFlow: Unleashing DiT Priors with Region Based Supervision for Drag Editing
- 2026WhereEdit: Mask-aware Local Latent Editing for One-Step Image Editing
- 2025EditMGT: Unleashing Potentials of Masked Generative Transformers in Image Editing
- 2026VeloEdit: Training-Free Consistent and Continuous Instruction-Based Image Editing via Velocity Field Decomposition