mlsanityData to 14 Oct 2026

SAM-Flow: Source-Anchored Masked Flow for Training-Free Image Editing

arXiv 2606.06228 ↗First posted 4 Jun 2026cs.CVcited by 1

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

  1. 2025ReFlex: Text-Guided Editing of Real Images in Rectified Flow via Mid-Step Feature Extraction and Attention Adaptation2 Jul
  2. 2025FlowAlign: Trajectory-Regularized, Inversion-Free Flow-based Image Editing29 May
  3. 2024Stable Flow: Vital Layers for Training-Free Image Editing21 Nov
  4. 2024Taming Rectified Flow for Inversion and Editing7 Nov
  5. 2024Semantic Image Inversion and Editing using Rectified Stochastic Differential Equations14 Oct
  6. 2023Negative-prompt Inversion: Fast Image Inversion for Editing with Text-guided Diffusion Models26 May
  7. 2023An Edit Friendly DDPM Noise Space: Inversion and Manipulations12 Apr
  8. 2023T2I-Adapter: Learning Adapters to Dig out More Controllable Ability for Text-to-Image Diffusion Models16 Feb
  9. 2023Adding Conditional Control to Text-to-Image Diffusion Models10 Feb
  10. 2023Attend-and-Excite: Attention-Based Semantic Guidance for Text-to-Image Diffusion Models31 Jan
  11. 2023GLIGEN: Open-Set Grounded Text-to-Image Generation17 Jan
  12. 2022Paint by Example: Exemplar-based Image Editing with Diffusion Models23 Nov
9 more
  1. 2022InstructPix2Pix: Learning to Follow Image Editing Instructions17 Nov
  2. 2022Null-text Inversion for Editing Real Images using Guided Diffusion Models17 Nov
  3. 2022Direct Inversion: Optimization-Free Text-Driven Real Image Editing with Diffusion Models15 Nov
  4. 2022DiffEdit: Diffusion-based semantic image editing with mask guidance20 Oct
  5. 2022Imagic: Text-Based Real Image Editing with Diffusion Models17 Oct
  6. 2022What the DAAM: Interpreting Stable Diffusion Using Cross Attention10 Oct
  7. 2022Blended Latent Diffusion6 Jun
  8. 2021GLIDE: Towards Photorealistic Image Generation and Editing with Text-Guided Diffusion Models20 Dec
  9. 2021Blended Diffusion for Text-driven Editing of Natural Images29 Nov

Other references · 22

  1. 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,744
  2. 2020Denoising Diffusion Probabilistic Modelscited by 21,076
  3. 2021High-Resolution Image Synthesis with Latent Diffusion Modelscited by 18,863
  4. 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,599
  5. 2018The Unreasonable Effectiveness of Deep Features as a Perceptual Metriccited by 11,177
  6. 2020Denoising Diffusion Implicit Modelscited by 9,781
  7. 2020Score-Based Generative Modeling through Stochastic Differential Equationscited by 9,122
  8. 2023Segment Anythingcited by 8,234
  9. 2021Emerging Properties in Self-Supervised Vision Transformerscited by 6,968
  10. 2022Scalable Diffusion Models with Transformerscited by 6,054
  11. 2022Flow Matching for Generative Modelingcited by 5,702
  12. 2024Scaling Rectified Flow Transformers for High-Resolution Image Synthesiscited by 4,181
10 more
  1. 2022Flow Straight and Fast: Learning to Generate and Transfer Data with Rectified Flowcited by 3,700
  2. 2022Prompt-to-Prompt Image Editing with Cross Attention Controlcited by 2,431
  3. 2021SDEdit: Guided Image Synthesis and Editing with Stochastic Differential Equationscited by 1,937
  4. 2022RePaint: Inpainting using Denoising Diffusion Probabilistic Modelscited by 1,430
  5. 2022Plug-and-Play Diffusion Features for Text-Driven Image-to-Image Translationcited by 906
  6. 2023MasaCtrl: Tuning-Free Mutual Self-Attention Control for Consistent Image Synthesis and Editingcited by 727
  7. 2022EDICT: Exact Diffusion Inversion via Coupled Transformationscited by 258
  8. 2023Inpaint Anything: Segment Anything Meets Image Inpaintingcited by 233
  9. 2024FlowEdit: Inversion-Free Text-Based Editing Using Pre-Trained Flow Modelscited by 217
  10. 2024Text-to-Image Rectified Flow as Plug-and-Play Priorscited by 38

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2026: 1.

1 paper.

Similar, not cited

Close in wording, no citation either way

  1. 2026MaskFlow: Precise, Consistent and Seamless Regional Image Editing
  2. 2026SteerFlow: Steering Rectified Flows for Faithful Inversion-Based Image Editing
  3. 2025SplitFlow: Flow Decomposition for Inversion-Free Text-to-Image Editing
  4. 2026AdaEdit: Adaptive Temporal and Channel Modulation for Flow-Based Image Editing
  5. 2025DragFlow: Unleashing DiT Priors with Region Based Supervision for Drag Editing
  6. 2026WhereEdit: Mask-aware Local Latent Editing for One-Step Image Editing
  7. 2025EditMGT: Unleashing Potentials of Masked Generative Transformers in Image Editing
  8. 2026VeloEdit: Training-Free Consistent and Continuous Instruction-Based Image Editing via Velocity Field Decomposition