mlsanityData to 14 Oct 2026

X-Edit: Detecting and Localizing Edits in Images Altered by Text-Guided Diffusion Models

arXiv 2505.11753 ↗First posted 16 May 2025cs.CVcited by 3

On the map: Diffusion models → Image generation, text-to-image and editing

Abstract (arXiv)

Text-guided diffusion models have significantly advanced image editing, enabling highly realistic and local modifications based on textual prompts. While these developments expand creative possibilities, their malicious use poses substantial challenges for detection of such subtle deepfake edits. To this end, we introduce Explain Edit (X-Edit), a novel method for localizing diffusion-based edits in images. To localize the edits for an image, we invert the image using a pretrained diffusion model, then use these inverted features as input to a segmentation network that explicitly predicts the edited masked regions via channel and spatial attention. Further, we finetune the model using a combined segmentation and relevance loss. The segmentation loss ensures accurate mask prediction by balancing pixel-wise errors and perceptual similarity, while the relevance loss guides the model to focus on low-frequency regions and mitigate high-frequency artifacts, enhancing the localization of subtle edits. To the best of our knowledge, we are the first to address and model the problem of localizing diffusion-based modified regions in images. We additionally contribute a new dataset of paired original and edited images addressing the current lack of resources for this task. Experimental results demonstrate that X-Edit accurately localizes edits in images altered by text-guided diffusion models, outperforming baselines in PSNR and SSIM metrics. This highlights X-Edit's potential as a robust forensic tool for detecting and pinpointing manipulations introduced by advanced image editing techniques.

Key facts. Cited by 3 papers 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 51 of its 65 references that are in the map. First posted on arXiv 16 May 2025.

Builds on

51 of 65 references.

Closest ancestors · 15

Same direction, newest first

  1. 2024FakeInversion: Learning to Detect Images from Unseen Text-to-Image Models by Inverting Stable Diffusion12 Jun
  2. 2024DistilDIRE: A Small, Fast, Cheap and Lightweight Diffusion Synthesized Deepfake Detection2 Jun
  3. 2024Towards Understanding Cross and Self-Attention in Stable Diffusion for Text-Guided Image Editing6 Mar
  4. 2024Diffusion Model-Based Image Editing: A Survey27 Feb
  5. 2023Detecting Images Generated by Deep Diffusion Models using their Local Intrinsic Dimensionality5 Jul
  6. 2023Improving Tuning-Free Real Image Editing with Proximal Guidance8 Jun
  7. 2023Negative-prompt Inversion: Fast Image Inversion for Editing with Text-guided Diffusion Models26 May
  8. 2023An Edit Friendly DDPM Noise Space: Inversion and Manipulations12 Apr
  9. 2023DIRE for Diffusion-Generated Image Detection16 Mar
  10. 2022InstructPix2Pix: Learning to Follow Image Editing Instructions17 Nov
  11. 2022Null-text Inversion for Editing Real Images using Guided Diffusion Models17 Nov
  12. 2022On the detection of synthetic images generated by diffusion models1 Nov
3 more
  1. 2022Towards the Detection of Diffusion Model Deepfakes26 Oct
  2. 2022DE-FAKE: Detection and Attribution of Fake Images Generated by Text-to-Image Generation Models13 Oct
  3. 2021Palette: Image-to-Image Diffusion Models10 Nov

Other references · 36

  1. 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,744
  2. 2020Language Models are Few-Shot Learnerscited by 32,419
  3. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
  4. 2020Denoising Diffusion Probabilistic Modelscited by 21,076
  5. 2015U-Net: Convolutional Networks for Biomedical Image Segmentationcited by 19,713
  6. 2021High-Resolution Image Synthesis with Latent Diffusion Modelscited by 18,863
  7. 2020Denoising Diffusion Implicit Modelscited by 9,781
  8. 2021Diffusion Models Beat GANs on Image Synthesiscited by 8,255
  9. 2023Segment Anythingcited by 8,234
  10. 2015Deep Unsupervised Learning using Nonequilibrium Thermodynamicscited by 7,058
  11. 2016Grad-CAM: Visual Explanations from Deep Networks via Gradient-based Localizationcited by 6,733
  12. 2016SGDR: Stochastic Gradient Descent with Warm Restartscited by 5,045
24 more
  1. 2016Image-to-Image Translation with Conditional Adversarial Networkscited by 4,527
  2. 2022LAION-5B: An open large-scale dataset for training next generation image-text modelscited by 4,152
  3. 2017Axiomatic Attribution for Deep Networkscited by 3,384
  4. 2021SegFormer: Simple and Efficient Design for Semantic Segmentation with Transformerscited by 2,940
  5. 2018CBAM: Convolutional Block Attention Modulecited by 2,477
  6. 2022Prompt-to-Prompt Image Editing with Cross Attention Controlcited by 2,431
  7. 2017Decoupled Weight Decay Regularizationcited by 1,831
  8. 2019Explainable Artificial Intelligence (XAI): Concepts, Taxonomies, Opportunities and Challenges toward Responsible AIcited by 1,552
  9. 2022Plug-and-Play Diffusion Features for Text-Driven Image-to-Image Translationcited by 906
  10. 2019CNN-generated images are surprisingly easy to spot... for nowcited by 847
  11. 2023MasaCtrl: Tuning-Free Mutual Self-Attention Control for Consistent Image Synthesis and Editingcited by 727
  12. 2020Leveraging Frequency Analysis for Deep Fake Image Recognitioncited by 504
  13. 2023Towards Universal Fake Image Detectors that Generalize Across Generative Modelscited by 490
  14. 2019Detecting and Simulating Artifacts in GAN Fake Imagescited by 293
  15. 2023VIEScore: Towards Explainable Metrics for Conditional Image Synthesis Evaluationcited by 201
  16. 2018Do GANs leave artificial fingerprints?cited by 190
  17. 2023Guiding Instruction-based Image Editing via Multimodal Large Language Modelscited by 185
  18. 2021Image-to-Image Translation: Methods and Applicationscited by 116
  19. 2024xGen-MM (BLIP-3): A Family of Open Large Multimodal Modelscited by 116
  20. 2019Hybrid LSTM and Encoder-Decoder Architecture for Detection of Image Forgeriescited by 59
  21. 2022Optimizing Relevance Maps of Vision Transformers Improves Robustnesscited by 41
  22. 2024Explaining generative diffusion models via visual analysis for interpretable decision-making processcited by 17
  23. 2021Comparison and Analysis of Image-to-Image Generative Adversarial Networks: A Surveycited by 11
  24. 2024Trustworthy Text-to-Image Diffusion Models: A Timely and Focused Surveycited by 6

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2026: 3.

3 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2025DEAL-300K: Diffusion-based Editing Area Localization with a 300K-Scale Dataset and Frequency-Prompted Baseline
  2. 2025DiffSeg30k: A Multi-Turn Diffusion Editing Benchmark for Localized AIGC Detection
  3. 2025EditMGT: Unleashing Potentials of Masked Generative Transformers in Image Editing
  4. 2025PartEdit: Fine-Grained Image Editing using Pre-Trained Diffusion Models
  5. 2024LocInv: Localization-aware Inversion for Text-Guided Image Editing
  6. 2025Can VLMs Detect and Localize Fine-Grained AI-Edited Images?
  7. 2023LIME: Localized Image Editing via Attention Regularization in Diffusion Models
  8. 2026Masked Generative Transformer Is What You Need for Image Editing