Diffusion-generated face image identification technique based on diffusion reconstruction error feature

Wei Zeng, Tianqi Xie, Yuan Liu, Yunyue PengInternational Journal of Information and Communication Technology 2025

Abstract

As Denoising Diffusion Probabilistic Models (DDPMs) become the standard for high-fidelity image synthesis, traditional deepfake detection methods struggle to maintain accuracy. This paper introduces DIRE (Diffusion Reconstruction Error), a framework designed to identify diffusion-generated faces by analyzing the reconstruction fidelity of a pre-trained diffusion model. By incorporating Abnormal Gradient Suppression (AGS) to mitigate shortcut learning, the proposed method achieves a state-of-the-art accuracy of 98.2% and an inference speed of 83 FPS, demonstrating significant improvements in both generalization and efficiency.

Introduction

The evolution of generative AI has shifted from Generative Adversarial Networks (GANs) to more sophisticated diffusion models. While GANs often leave detectable artifacts, diffusion models produce photorealistic, anatomically consistent images that evade traditional detectors.

Examples of high-fidelity face images generated by diffusion models.

A major hurdle in current detection technology is "shortcut learning," where models overfit to dataset-specific noise rather than learning fundamental differences between real and synthetic media. This paper addresses these challenges by proposing a feature inherent to the diffusion process itself: the reconstruction error.

Methodology

The DIRE framework utilizes the principle that a diffusion model can more accurately reconstruct images it originally generated compared to real-world images.

Diffusion Reconstruction Error (DIRE)

The process involves three core steps:

  1. Inversion: An input image is mapped back to latent noise using Denoising Diffusion Implicit Models (DDIM) inversion.
  2. Reconstruction: The model regenerates the image from this noise.
  3. Error Calculation: The pixel-wise difference between the original and reconstructed images serves as a discriminative feature for classification.
The general architecture of the generation and identification framework, illustrating the relationship between the builder (generator) and arbiter (classifier).

Abnormal Gradient Suppression (AGS)

To prevent the classifier from latching onto non-robust "shortcuts," the authors introduced AGS. This mechanism masks out features that produce disproportionately large gradients during training, forcing the network to focus on generalized, robust features. This dual optimization approach reduced domain bias by 97.6%.

Feature Disentanglement

Using Hessian matrix properties, the system decouples identity-specific attributes from synthesis artifacts. This ensures the model identifies "fakeness" regardless of the subject's appearance or the environment in which the image was captured.

Experimental Results

The model was evaluated using rigorous cross-domain testing across four major datasets: OULU-NPU, CASIA FASD, Idiap Replay-Attack, and MSU-MFSD.

  • Performance: The framework achieved a peak accuracy of 98.2% in cross-dataset scenarios (O&C&I → M), outperforming existing state-of-the-art methods by approximately 5.3%.
  • Efficiency: With a 42% reduction in parameters compared to traditional multi-scale fusion designs, DIRE operates at 83 FPS, making it suitable for real-time financial identity verification.
  • Robustness: The AGS mechanism significantly improved resistance to adversarial attacks, reducing the success rate of such attacks to just 12.3%.

Conclusion

DIRE represents a significant advancement in facial anti-counterfeiting. By leveraging the internal logic of diffusion models and suppressing learning shortcuts, the framework provides a robust, efficient solution for detecting modern deepfakes. Future research will focus on extending this technique to general imagery and optimizing the computational cost of the inversion process.

Summary updated

BibTeX
@article{zeng2025diffusion,
  author = {Wei Zeng and Tianqi Xie and Yuan Liu and Yunyue Peng},
  title = {{Diffusion-generated face image identification technique based on diffusion reconstruction error feature}},
  journal = {International Journal of Information and Communication Technology},
  year = {2025},
  doi = {10.1504/ijict.2025.10071014},
}
Figure