X-Edit: Detecting and Localizing Edits in Images Altered by Text-Guided Diffusion Models
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
- 2024FakeInversion: Learning to Detect Images from Unseen Text-to-Image Models by Inverting Stable Diffusion12 Jun
- 2024DistilDIRE: A Small, Fast, Cheap and Lightweight Diffusion Synthesized Deepfake Detection2 Jun
- 2024Towards Understanding Cross and Self-Attention in Stable Diffusion for Text-Guided Image Editing6 Mar
- 2024Diffusion Model-Based Image Editing: A Survey27 Feb
- 2023Detecting Images Generated by Deep Diffusion Models using their Local Intrinsic Dimensionality5 Jul
- 2023Improving Tuning-Free Real Image Editing with Proximal Guidance8 Jun
- 2023Negative-prompt Inversion: Fast Image Inversion for Editing with Text-guided Diffusion Models26 May
- 2023An Edit Friendly DDPM Noise Space: Inversion and Manipulations12 Apr
- 2023DIRE for Diffusion-Generated Image Detection16 Mar
- 2022InstructPix2Pix: Learning to Follow Image Editing Instructions17 Nov
- 2022Null-text Inversion for Editing Real Images using Guided Diffusion Models17 Nov
- 2022On the detection of synthetic images generated by diffusion models1 Nov
3 more
Other references · 36
- 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,744
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
- 2020Denoising Diffusion Probabilistic Modelscited by 21,076
- 2015U-Net: Convolutional Networks for Biomedical Image Segmentationcited by 19,713
- 2021High-Resolution Image Synthesis with Latent Diffusion Modelscited by 18,863
- 2020Denoising Diffusion Implicit Modelscited by 9,781
- 2021Diffusion Models Beat GANs on Image Synthesiscited by 8,255
- 2023Segment Anythingcited by 8,234
- 2015Deep Unsupervised Learning using Nonequilibrium Thermodynamicscited by 7,058
- 2016Grad-CAM: Visual Explanations from Deep Networks via Gradient-based Localizationcited by 6,733
- 2016SGDR: Stochastic Gradient Descent with Warm Restartscited by 5,045
24 more
- 2016Image-to-Image Translation with Conditional Adversarial Networkscited by 4,527
- 2022LAION-5B: An open large-scale dataset for training next generation image-text modelscited by 4,152
- 2017Axiomatic Attribution for Deep Networkscited by 3,384
- 2021SegFormer: Simple and Efficient Design for Semantic Segmentation with Transformerscited by 2,940
- 2018CBAM: Convolutional Block Attention Modulecited by 2,477
- 2022Prompt-to-Prompt Image Editing with Cross Attention Controlcited by 2,431
- 2017Decoupled Weight Decay Regularizationcited by 1,831
- 2019Explainable Artificial Intelligence (XAI): Concepts, Taxonomies, Opportunities and Challenges toward Responsible AIcited by 1,552
- 2022Plug-and-Play Diffusion Features for Text-Driven Image-to-Image Translationcited by 906
- 2019CNN-generated images are surprisingly easy to spot... for nowcited by 847
- 2023MasaCtrl: Tuning-Free Mutual Self-Attention Control for Consistent Image Synthesis and Editingcited by 727
- 2020Leveraging Frequency Analysis for Deep Fake Image Recognitioncited by 504
- 2023Towards Universal Fake Image Detectors that Generalize Across Generative Modelscited by 490
- 2019Detecting and Simulating Artifacts in GAN Fake Imagescited by 293
- 2023VIEScore: Towards Explainable Metrics for Conditional Image Synthesis Evaluationcited by 201
- 2018Do GANs leave artificial fingerprints?cited by 190
- 2023Guiding Instruction-based Image Editing via Multimodal Large Language Modelscited by 185
- 2021Image-to-Image Translation: Methods and Applicationscited by 116
- 2024xGen-MM (BLIP-3): A Family of Open Large Multimodal Modelscited by 116
- 2019Hybrid LSTM and Encoder-Decoder Architecture for Detection of Image Forgeriescited by 59
- 2022Optimizing Relevance Maps of Vision Transformers Improves Robustnesscited by 41
- 2024Explaining generative diffusion models via visual analysis for interpretable decision-making processcited by 17
- 2021Comparison and Analysis of Image-to-Image Generative Adversarial Networks: A Surveycited by 11
- 2024Trustworthy Text-to-Image Diffusion Models: A Timely and Focused Surveycited by 6
Built on by
Citing papers per year: 2026: 3.
3 papers.
- 2026PromptForge-350k: A Large-Scale Dataset and Contrastive Framework for Prompt-Based AI Image Forgery Localizationcited by 0
- 2026Order within Chaos: Capturing Intrinsic Energy Anomalies for AI-Manipulated Image Forgery Localizationcited by 0
- 2026Less Supervision, Better Generalization: Weakly Supervised Fake Region Localization in Diffusion-Edited Imagescited by 0
- 2026Less Supervision, Better Generalization: Weakly Supervised Fake Region Localization in Diffusion-Edited Images29 Sep 2026
- 2026Order within Chaos: Capturing Intrinsic Energy Anomalies for AI-Manipulated Image Forgery Localization1 Jun 2026
- 2026PromptForge-350k: A Large-Scale Dataset and Contrastive Framework for Prompt-Based AI Image Forgery Localization31 Mar 2026
Similar, not cited
Close in wording, no citation either way
- 2025DEAL-300K: Diffusion-based Editing Area Localization with a 300K-Scale Dataset and Frequency-Prompted Baseline
- 2025DiffSeg30k: A Multi-Turn Diffusion Editing Benchmark for Localized AIGC Detection
- 2025EditMGT: Unleashing Potentials of Masked Generative Transformers in Image Editing
- 2025PartEdit: Fine-Grained Image Editing using Pre-Trained Diffusion Models
- 2024LocInv: Localization-aware Inversion for Text-Guided Image Editing
- 2025Can VLMs Detect and Localize Fine-Grained AI-Edited Images?
- 2023LIME: Localized Image Editing via Attention Regularization in Diffusion Models
- 2026Masked Generative Transformer Is What You Need for Image Editing