Contrasting Deepfakes Diffusion via Contrastive Learning and Global-Local Similarities
Not on the map. Why?
Abstract (arXiv)
Discerning between authentic content and that generated by advanced AI methods has become increasingly challenging. While previous research primarily addresses the detection of fake faces, the identification of generated natural images has only recently surfaced. This prompted the recent exploration of solutions that employ foundation vision-and-language models, like CLIP. However, the CLIP embedding space is optimized for global image-to-text alignment and is not inherently designed for deepfake detection, neglecting the potential benefits of tailored training and local image features. In this study, we propose CoDE (Contrastive Deepfake Embeddings), a novel embedding space specifically designed for deepfake detection. CoDE is trained via contrastive learning by additionally enforcing global-local similarities. To sustain the training of our model, we generate a comprehensive dataset that focuses on images generated by diffusion models and encompasses a collection of 9.2 million images produced by using four different generators. Experimental results demonstrate that CoDE achieves state-of-the-art accuracy on the newly collected dataset, while also showing excellent generalization capabilities to unseen image generators. Our source code, trained models, and collected dataset are publicly available at: https://github.com/aimagelab/CoDE.
Key facts. Cited by 27 papers in the map (data through 7 Oct 2026). Builds on 48 of its 59 references that are in the map. First posted on arXiv 29 Jul 2024.
Builds on
48 of 59 references.
References · 48
- 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,456
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
- 2020Denoising Diffusion Probabilistic Modelscited by 20,851
- 2021High-Resolution Image Synthesis with Latent Diffusion Modelscited by 18,694
- 2021Diffusion Models Beat GANs on Image Synthesiscited by 8,185
- 2023DINOv2: Learning Robust Visual Features without Supervisioncited by 7,764
- 2018Representation Learning with Contrastive Predictive Codingcited by 7,662
- 2015Deep Unsupervised Learning using Nonequilibrium Thermodynamicscited by 7,005
- 2021Emerging Properties in Self-Supervised Vision Transformerscited by 6,893
- 2022Hierarchical Text-Conditional Image Generation with CLIP Latentscited by 6,539
- 2022Photorealistic Text-to-Image Diffusion Models with Deep Language Understandingcited by 6,322
- 2020Training data-efficient image transformers & distillation through attentioncited by 4,560
36 more
- 2023SDXL: Improving Latent Diffusion Models for High-Resolution Image Synthesiscited by 4,290
- 2021Zero-Shot Text-to-Image Generationcited by 4,276
- 2021GLIDE: Towards Photorealistic Image Generation and Editing with Text-Guided Diffusion Modelscited by 3,595
- 2020Taming Transformers for High-Resolution Image Synthesiscited by 3,229
- 2017Progressive Growing of GANs for Improved Quality, Stability, and Variationcited by 2,967
- 2020Unsupervised Learning of Visual Features by Contrasting Cluster Assignmentscited by 2,845
- 2018Large Scale GAN Training for High Fidelity Natural Image Synthesiscited by 2,609
- 2017Billion-scale similarity search with GPUscited by 2,477
- 2016Identity Mappings in Deep Residual Networkscited by 1,960
- 2021LAION-400M: Open Dataset of CLIP-Filtered 400 Million Image-Text Pairscited by 1,544
- 2022Scaling Autoregressive Models for Content-Rich Text-to-Image Generationcited by 1,287
- 2019FaceForensics++: Learning to Detect Manipulated Facial Imagescited by 1,095
- 2017StarGAN: Unified Generative Adversarial Networks for Multi-Domain Image-to-Image Translationcited by 1,036
- 2022eDiff-I: Text-to-Image Diffusion Models with an Ensemble of Expert Denoiserscited by 921
- 2023PixArt-α: Fast Training of Diffusion Transformer for Photorealistic Text-to-Image Synthesiscited by 854
- 2019CNN-generated images are surprisingly easy to spot... for nowcited by 842
- 2021CogView: Mastering Text-to-Image Generation via Transformerscited by 691
- 2020Leveraging Frequency Analysis for Deep Fake Image Recognitioncited by 501
- 2023Towards Universal Fake Image Detectors that Generalize Across Generative Modelscited by 483
- 2023DIRE for Diffusion-Generated Image Detectioncited by 386
- 2022DiffusionDB: A Large-scale Prompt Gallery Dataset for Text-to-Image Generative Modelscited by 376
- 2024The Faiss librarycited by 370
- 2018Exposing Deep Fakes Using Inconsistent Head Posescited by 294
- 2022On the detection of synthetic images generated by diffusion modelscited by 282
- 2022DE-FAKE: Detection and Attribution of Fake Images Generated by Text-to-Image Generation Modelscited by 167
- 2022Improving Sample Quality of Diffusion Models Using Self-Attention Guidancecited by 151
- 2021Are GAN generated images easy to detect? A critical analysis of the state-of-the-artcited by 139
- 2023Intriguing properties of synthetic images: from generative adversarial networks to diffusion modelscited by 121
- 2023Kandinsky: an Improved Text-to-Image Synthesis with Image Prior and Latent Diffusioncited by 114
- 2018ForensicTransfer: Weakly-supervised Domain Adaptation for Forgery Detectioncited by 104
- 2023GALIP: Generative Adversarial CLIPs for Text-to-Image Synthesiscited by 84
- 2023CIFAKE: Image Classification and Explainable Identification of AI-Generated Synthetic Imagescited by 84
- 2023Online Detection of AI-Generated Imagescited by 55
- 2021Text to Image Generation with Semantic-Spatial Aware GANcited by 53
- 2024aMUSEd: An Open MUSE Reproductioncited by 32
- 2023Parents and Children: Distinguishing Multimodal DeepFakes from Natural Imagescited by 29
Built on by
Citing papers per year: 2024: 3; 2025: 15; 2026: 9.
27 papers.
Sort:
By area:
- 2024A Bias-Free Training Paradigm for More General AI-generated Image Detectioncited by 67
- 2024FIRE: Robust Detection of Diffusion-Generated Images via Frequency-Guided Reconstruction Errorcited by 46
- 2025Bridging the Gap Between Ideal and Real-world Evaluation: Benchmarking AI-Generated Image Detection in Challenging Scenarioscited by 24
- 2025Dual Frequency Branch Framework with Reconstructed Sliding Windows Attention for AI-Generated Image Detectioncited by 10
- 2025AI-GenBench: A New Ongoing Benchmark for AI-Generated Image Detectioncited by 10
- 2025Rethinking Cross-Generator Image Forgery Detection through DINOv3cited by 8
- 2025NS-Net: Decoupling CLIP Semantic Information through NULL-Space for Generalizable AI-Generated Image Detectioncited by 7
- 2025Few-Shot Synthetic Image Attribution: Identifying Unseen Generators with Limited Samplescited by 6
- 2026Simplicity Prevails: The Emergence of Generalizable AIGI Detection in Visual Foundation Modelscited by 6
- 2025RAID: A Dataset for Testing the Adversarial Robustness of AI-Generated Image Detectorscited by 4
- 2026Where Detectors Fail: Probing Generative Space for Generalizable AI-Generated Image Detectioncited by 4
- 2024Generate Any Scene: Scene Graph Driven Data Synthesis for Visual Generation Trainingcited by 3
15 more
- 2026Unveiling Perceptual Artifacts: A Fine-Grained Benchmark for Interpretable AI-Generated Image Detectioncited by 3
- 2025Generalized Design Choices for Deepfake Detectorscited by 2
- 2026Quality-Aware Calibration for AI-Generated Image Detection in the Wildcited by 2
- 2025GAMMA: Generalizable Alignment via Multi-task and Manipulation-Augmented Training for AI-Generated Image Detectioncited by 1
- 2025PolyJuice Makes It Real: Black-Box, Universal Red Teaming for Synthetic Image Detectorscited by 1
- 2025Mirage: Unveiling Hidden Artifacts in Synthetic Images with Large Vision-Language Modelscited by 1
- 2026Fake3DGS: A Benchmark for 3D Manipulation Detection in Neural Renderingcited by 1
- 2025Robustness in AI-Generated Detection: Enhancing Resistance to Adversarial Attackscited by 0
- 2025Prefill-Guided Thinking for zero-shot detection of AI-generated imagescited by 0
- 2025Beyond Spectral Peaks: Interpreting the Cues Behind Synthetic Image Detectioncited by 0
- 2025How Noise Benefits AI-generated Image Detectioncited by 0
- 2026Multi-Feature Fusion Approach for Generative AI Images Detectioncited by 0
- 2026Dissect and Prune: Enhancing Robustness in AI-Generated Image Detectioncited by 0
- 2026FakeI2V-Bench: Benchmarking the Applicability of Image-level Deepfake Detectors for Deepfake Video Detectioncited by 0
- 2026Prior-Conditioned Gaussian Discriminants for Generalizable AI-generated Image Detectioncited by 0
- 2026Prior-Conditioned Gaussian Discriminants for Generalizable AI-generated Image Detection19 Aug 2026
- 2026FakeI2V-Bench: Benchmarking the Applicability of Image-level Deepfake Detectors for Deepfake Video Detection4 Aug 2026
- 2026Dissect and Prune: Enhancing Robustness in AI-Generated Image Detection9 Jun 2026
- 2026Where Detectors Fail: Probing Generative Space for Generalizable AI-Generated Image Detection24 May 2026
- 2026Fake3DGS: A Benchmark for 3D Manipulation Detection in Neural Rendering30 Apr 2026
- 2026Quality-Aware Calibration for AI-Generated Image Detection in the Wild16 Apr 2026
- 2026Multi-Feature Fusion Approach for Generative AI Images Detection31 Mar 2026
- 2026Simplicity Prevails: The Emergence of Generalizable AIGI Detection in Visual Foundation Models2 Feb 2026
- 2026Unveiling Perceptual Artifacts: A Fine-Grained Benchmark for Interpretable AI-Generated Image Detection27 Jan 2026
- 2025Rethinking Cross-Generator Image Forgery Detection through DINOv327 Nov 2025
- 2025Generalized Design Choices for Deepfake Detectors26 Nov 2025
- 2025How Noise Benefits AI-generated Image Detection20 Nov 2025
15 more
- 2025Beyond Spectral Peaks: Interpreting the Cues Behind Synthetic Image Detection7 Oct 2025
- 2025Mirage: Unveiling Hidden Artifacts in Synthetic Images with Large Vision-Language Models4 Oct 2025
- 2025Few-Shot Synthetic Image Attribution: Identifying Unseen Generators with Limited Samples30 Sep 2025
- 2025PolyJuice Makes It Real: Black-Box, Universal Red Teaming for Synthetic Image Detectors19 Sep 2025
- 2025GAMMA: Generalizable Alignment via Multi-task and Manipulation-Augmented Training for AI-Generated Image Detection12 Sep 2025
- 2025Bridging the Gap Between Ideal and Real-world Evaluation: Benchmarking AI-Generated Image Detection in Challenging Scenarios11 Sep 2025
- 2025NS-Net: Decoupling CLIP Semantic Information through NULL-Space for Generalizable AI-Generated Image Detection2 Aug 2025
- 2025RAID: A Dataset for Testing the Adversarial Robustness of AI-Generated Image Detectors4 Jun 2025
- 2025Prefill-Guided Thinking for zero-shot detection of AI-generated images20 May 2025
- 2025Robustness in AI-Generated Detection: Enhancing Resistance to Adversarial Attacks6 May 2025
- 2025AI-GenBench: A New Ongoing Benchmark for AI-Generated Image Detection29 Apr 2025
- 2025Dual Frequency Branch Framework with Reconstructed Sliding Windows Attention for AI-Generated Image Detection25 Jan 2025
- 2024A Bias-Free Training Paradigm for More General AI-generated Image Detection23 Dec 2024
- 2024Generate Any Scene: Scene Graph Driven Data Synthesis for Visual Generation Training11 Dec 2024
- 2024FIRE: Robust Detection of Diffusion-Generated Images via Frequency-Guided Reconstruction Error10 Dec 2024
- 2024A Bias-Free Training Paradigm for More General AI-generated Image Detectioncited by 67
- 2024FIRE: Robust Detection of Diffusion-Generated Images via Frequency-Guided Reconstruction Errorcited by 46
- 2025Dual Frequency Branch Framework with Reconstructed Sliding Windows Attention for AI-Generated Image Detectioncited by 10
- 2025NS-Net: Decoupling CLIP Semantic Information through NULL-Space for Generalizable AI-Generated Image Detectioncited by 7
- 2024Generate Any Scene: Scene Graph Driven Data Synthesis for Visual Generation Trainingcited by 3
- 2025NS-Net: Decoupling CLIP Semantic Information through NULL-Space for Generalizable AI-Generated Image Detection2 Aug 2025
- 2025Dual Frequency Branch Framework with Reconstructed Sliding Windows Attention for AI-Generated Image Detection25 Jan 2025
- 2024A Bias-Free Training Paradigm for More General AI-generated Image Detection23 Dec 2024
- 2024Generate Any Scene: Scene Graph Driven Data Synthesis for Visual Generation Training11 Dec 2024
- 2024FIRE: Robust Detection of Diffusion-Generated Images via Frequency-Guided Reconstruction Error10 Dec 2024
- 2025Bridging the Gap Between Ideal and Real-world Evaluation: Benchmarking AI-Generated Image Detection in Challenging Scenarioscited by 24
- 2025AI-GenBench: A New Ongoing Benchmark for AI-Generated Image Detectioncited by 10
- 2025Rethinking Cross-Generator Image Forgery Detection through DINOv3cited by 8
- 2025Few-Shot Synthetic Image Attribution: Identifying Unseen Generators with Limited Samplescited by 6
- 2026Simplicity Prevails: The Emergence of Generalizable AIGI Detection in Visual Foundation Modelscited by 6
- 2025RAID: A Dataset for Testing the Adversarial Robustness of AI-Generated Image Detectorscited by 4
- 2026Where Detectors Fail: Probing Generative Space for Generalizable AI-Generated Image Detectioncited by 4
- 2026Unveiling Perceptual Artifacts: A Fine-Grained Benchmark for Interpretable AI-Generated Image Detectioncited by 3
- 2025Generalized Design Choices for Deepfake Detectorscited by 2
- 2026Quality-Aware Calibration for AI-Generated Image Detection in the Wildcited by 2
- 2025GAMMA: Generalizable Alignment via Multi-task and Manipulation-Augmented Training for AI-Generated Image Detectioncited by 1
- 2026Fake3DGS: A Benchmark for 3D Manipulation Detection in Neural Renderingcited by 1
12 most cited of 19 All 19 (JSON)
- 2026Prior-Conditioned Gaussian Discriminants for Generalizable AI-generated Image Detection19 Aug 2026
- 2026FakeI2V-Bench: Benchmarking the Applicability of Image-level Deepfake Detectors for Deepfake Video Detection4 Aug 2026
- 2026Dissect and Prune: Enhancing Robustness in AI-Generated Image Detection9 Jun 2026
- 2026Where Detectors Fail: Probing Generative Space for Generalizable AI-Generated Image Detection24 May 2026
- 2026Fake3DGS: A Benchmark for 3D Manipulation Detection in Neural Rendering30 Apr 2026
- 2026Quality-Aware Calibration for AI-Generated Image Detection in the Wild16 Apr 2026
- 2026Multi-Feature Fusion Approach for Generative AI Images Detection31 Mar 2026
- 2026Simplicity Prevails: The Emergence of Generalizable AIGI Detection in Visual Foundation Models2 Feb 2026
- 2026Unveiling Perceptual Artifacts: A Fine-Grained Benchmark for Interpretable AI-Generated Image Detection27 Jan 2026
- 2025Rethinking Cross-Generator Image Forgery Detection through DINOv327 Nov 2025
- 2025Generalized Design Choices for Deepfake Detectors26 Nov 2025
- 2025How Noise Benefits AI-generated Image Detection20 Nov 2025
12 newest of 19 All 19 (JSON)
Similar, not cited
Close in wording, no citation either way
- 2025UMCL: Unimodal-generated Multimodal Contrastive Learning for Cross-compression-rate Deepfake Detection
- 2024DiffusionFake: Enhancing Generalization in Deepfake Detection via Guided Stable Diffusion
- 2024Diffusion Deepfake
- 2025AuthGuard: Generalizable Deepfake Detection via Language Guidance
- 2025A Novel Local Focusing Mechanism for Deepfake Detection Generalization
- 2024Standing on the Shoulders of Giants: Reprogramming Visual-Language Model for General Deepfake Detection
- 2024Deepfake Generation and Detection: A Benchmark and Survey
- 2023Robustness and Generalizability of Deepfake Detection: A Study with Diffusion Models