mlsanityData to 7 Oct 2026

Contrasting Deepfakes Diffusion via Contrastive Learning and Global-Local Similarities

arXiv 2407.20337 ↗First posted 29 Jul 2024cs.CV cs.AI cs.MMcited by 27

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

  1. 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,456
  2. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
  3. 2020Denoising Diffusion Probabilistic Modelscited by 20,851
  4. 2021High-Resolution Image Synthesis with Latent Diffusion Modelscited by 18,694
  5. 2021Diffusion Models Beat GANs on Image Synthesiscited by 8,185
  6. 2023DINOv2: Learning Robust Visual Features without Supervisioncited by 7,764
  7. 2018Representation Learning with Contrastive Predictive Codingcited by 7,662
  8. 2015Deep Unsupervised Learning using Nonequilibrium Thermodynamicscited by 7,005
  9. 2021Emerging Properties in Self-Supervised Vision Transformerscited by 6,893
  10. 2022Hierarchical Text-Conditional Image Generation with CLIP Latentscited by 6,539
  11. 2022Photorealistic Text-to-Image Diffusion Models with Deep Language Understandingcited by 6,322
  12. 2020Training data-efficient image transformers & distillation through attentioncited by 4,560
36 more
  1. 2023SDXL: Improving Latent Diffusion Models for High-Resolution Image Synthesiscited by 4,290
  2. 2021Zero-Shot Text-to-Image Generationcited by 4,276
  3. 2021GLIDE: Towards Photorealistic Image Generation and Editing with Text-Guided Diffusion Modelscited by 3,595
  4. 2020Taming Transformers for High-Resolution Image Synthesiscited by 3,229
  5. 2017Progressive Growing of GANs for Improved Quality, Stability, and Variationcited by 2,967
  6. 2020Unsupervised Learning of Visual Features by Contrasting Cluster Assignmentscited by 2,845
  7. 2018Large Scale GAN Training for High Fidelity Natural Image Synthesiscited by 2,609
  8. 2017Billion-scale similarity search with GPUscited by 2,477
  9. 2016Identity Mappings in Deep Residual Networkscited by 1,960
  10. 2021LAION-400M: Open Dataset of CLIP-Filtered 400 Million Image-Text Pairscited by 1,544
  11. 2022Scaling Autoregressive Models for Content-Rich Text-to-Image Generationcited by 1,287
  12. 2019FaceForensics++: Learning to Detect Manipulated Facial Imagescited by 1,095
  13. 2017StarGAN: Unified Generative Adversarial Networks for Multi-Domain Image-to-Image Translationcited by 1,036
  14. 2022eDiff-I: Text-to-Image Diffusion Models with an Ensemble of Expert Denoiserscited by 921
  15. 2023PixArt-α: Fast Training of Diffusion Transformer for Photorealistic Text-to-Image Synthesiscited by 854
  16. 2019CNN-generated images are surprisingly easy to spot... for nowcited by 842
  17. 2021CogView: Mastering Text-to-Image Generation via Transformerscited by 691
  18. 2020Leveraging Frequency Analysis for Deep Fake Image Recognitioncited by 501
  19. 2023Towards Universal Fake Image Detectors that Generalize Across Generative Modelscited by 483
  20. 2023DIRE for Diffusion-Generated Image Detectioncited by 386
  21. 2022DiffusionDB: A Large-scale Prompt Gallery Dataset for Text-to-Image Generative Modelscited by 376
  22. 2024The Faiss librarycited by 370
  23. 2018Exposing Deep Fakes Using Inconsistent Head Posescited by 294
  24. 2022On the detection of synthetic images generated by diffusion modelscited by 282
  25. 2022DE-FAKE: Detection and Attribution of Fake Images Generated by Text-to-Image Generation Modelscited by 167
  26. 2022Improving Sample Quality of Diffusion Models Using Self-Attention Guidancecited by 151
  27. 2021Are GAN generated images easy to detect? A critical analysis of the state-of-the-artcited by 139
  28. 2023Intriguing properties of synthetic images: from generative adversarial networks to diffusion modelscited by 121
  29. 2023Kandinsky: an Improved Text-to-Image Synthesis with Image Prior and Latent Diffusioncited by 114
  30. 2018ForensicTransfer: Weakly-supervised Domain Adaptation for Forgery Detectioncited by 104
  31. 2023GALIP: Generative Adversarial CLIPs for Text-to-Image Synthesiscited by 84
  32. 2023CIFAKE: Image Classification and Explainable Identification of AI-Generated Synthetic Imagescited by 84
  33. 2023Online Detection of AI-Generated Imagescited by 55
  34. 2021Text to Image Generation with Semantic-Spatial Aware GANcited by 53
  35. 2024aMUSEd: An Open MUSE Reproductioncited by 32
  36. 2023Parents and Children: Distinguishing Multimodal DeepFakes from Natural Imagescited by 29

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 3; 2025: 15; 2026: 9.

27 papers.

Sort:

By area:

  1. 2024A Bias-Free Training Paradigm for More General AI-generated Image Detectioncited by 67
  2. 2024FIRE: Robust Detection of Diffusion-Generated Images via Frequency-Guided Reconstruction Errorcited by 46
  3. 2025Bridging the Gap Between Ideal and Real-world Evaluation: Benchmarking AI-Generated Image Detection in Challenging Scenarioscited by 24
  4. 2025Dual Frequency Branch Framework with Reconstructed Sliding Windows Attention for AI-Generated Image Detectioncited by 10
  5. 2025AI-GenBench: A New Ongoing Benchmark for AI-Generated Image Detectioncited by 10
  6. 2025Rethinking Cross-Generator Image Forgery Detection through DINOv3cited by 8
  7. 2025NS-Net: Decoupling CLIP Semantic Information through NULL-Space for Generalizable AI-Generated Image Detectioncited by 7
  8. 2025Few-Shot Synthetic Image Attribution: Identifying Unseen Generators with Limited Samplescited by 6
  9. 2026Simplicity Prevails: The Emergence of Generalizable AIGI Detection in Visual Foundation Modelscited by 6
  10. 2025RAID: A Dataset for Testing the Adversarial Robustness of AI-Generated Image Detectorscited by 4
  11. 2026Where Detectors Fail: Probing Generative Space for Generalizable AI-Generated Image Detectioncited by 4
  12. 2024Generate Any Scene: Scene Graph Driven Data Synthesis for Visual Generation Trainingcited by 3
15 more
  1. 2026Unveiling Perceptual Artifacts: A Fine-Grained Benchmark for Interpretable AI-Generated Image Detectioncited by 3
  2. 2025Generalized Design Choices for Deepfake Detectorscited by 2
  3. 2026Quality-Aware Calibration for AI-Generated Image Detection in the Wildcited by 2
  4. 2025GAMMA: Generalizable Alignment via Multi-task and Manipulation-Augmented Training for AI-Generated Image Detectioncited by 1
  5. 2025PolyJuice Makes It Real: Black-Box, Universal Red Teaming for Synthetic Image Detectorscited by 1
  6. 2025Mirage: Unveiling Hidden Artifacts in Synthetic Images with Large Vision-Language Modelscited by 1
  7. 2026Fake3DGS: A Benchmark for 3D Manipulation Detection in Neural Renderingcited by 1
  8. 2025Robustness in AI-Generated Detection: Enhancing Resistance to Adversarial Attackscited by 0
  9. 2025Prefill-Guided Thinking for zero-shot detection of AI-generated imagescited by 0
  10. 2025Beyond Spectral Peaks: Interpreting the Cues Behind Synthetic Image Detectioncited by 0
  11. 2025How Noise Benefits AI-generated Image Detectioncited by 0
  12. 2026Multi-Feature Fusion Approach for Generative AI Images Detectioncited by 0
  13. 2026Dissect and Prune: Enhancing Robustness in AI-Generated Image Detectioncited by 0
  14. 2026FakeI2V-Bench: Benchmarking the Applicability of Image-level Deepfake Detectors for Deepfake Video Detectioncited by 0
  15. 2026Prior-Conditioned Gaussian Discriminants for Generalizable AI-generated Image Detectioncited by 0

Similar, not cited

Close in wording, no citation either way

  1. 2025UMCL: Unimodal-generated Multimodal Contrastive Learning for Cross-compression-rate Deepfake Detection
  2. 2024DiffusionFake: Enhancing Generalization in Deepfake Detection via Guided Stable Diffusion
  3. 2024Diffusion Deepfake
  4. 2025AuthGuard: Generalizable Deepfake Detection via Language Guidance
  5. 2025A Novel Local Focusing Mechanism for Deepfake Detection Generalization
  6. 2024Standing on the Shoulders of Giants: Reprogramming Visual-Language Model for General Deepfake Detection
  7. 2024Deepfake Generation and Detection: A Benchmark and Survey
  8. 2023Robustness and Generalizability of Deepfake Detection: A Study with Diffusion Models