Diffusion Noise Feature: Accurate and Fast Generated Image Detection

Yichi Zhang, Xiaogang Xu · DOI · OpenReview

Abstract

As diffusion models (DMs) like Stable Diffusion and Midjourney produce increasingly realistic imagery, traditional detection methods based on pixel-level artifacts are becoming less effective. This paper introduces the Diffusion Noise Feature (DNF), a novel representation extracted through the inverse diffusion process. By analyzing the structured artifacts present in the estimated noise of generated images compared to the chaotic noise of real images, DNF achieves a near-perfect detection accuracy of 99.8%. The method demonstrates superior robustness against common image perturbations and generalizes remarkably well to unseen generators.

Introduction

The rapid advancement of generative AI has made the detection of synthetic imagery a critical societal challenge. Traditional detectors, often designed for Generative Adversarial Networks (GANs), typically search for specific pixel-level "fingerprints" or spectral discrepancies. However, modern DMs produce cleaner images with fewer obvious artifacts, causing legacy methods to fail. Furthermore, most detectors suffer from a generalization gap, failing to identify images from models not seen during training. Zhang and Xu address these issues by shifting the focus from the pixels themselves to the noise a model estimates is inside them.

Methodology: The Diffusion Noise Feature

The core innovation of this work is the extraction of noise features through an inverse diffusion process. Rather than analyzing the image directly, the authors use a pre-trained diffusion model to "un-denoise" the input image step-by-step toward Gaussian noise.

The Extraction Process

  1. Inverse Diffusion: Using a method like DDIM, the input image is moved through an inverse trajectory.
  2. Noise Estimation: At each step, the model predicts the noise ($\epsilon_\theta$) required to transition between states.
  3. Feature Fusion: These noise estimates are collected into a sequence. The authors found that a convolutional strategy—using a 3D CNN to learn spatiotemporal patterns from the noise sequence—was the most effective for classification.
Visual comparison of DNF for real vs. generated images. Real images yield chaotic noise, while generated images exhibit structured artifacts.

The inverse diffusion process acts as a "magnifying glass," amplifying subtle high-frequency components. In generated images, these components are tied to the model's underlying grid or architectural inductive biases, resulting in recognizable structural patterns. In contrast, real images contain natural, unstructured high-frequency information, leading to chaotic noise estimates.

Experimental Results

The authors evaluated DNF against several benchmarks, including DiffusionForensics, CNNSpot, and GenImage, covering a wide array of generators such as ADM, LDM, Stable Diffusion, and Midjourney.

Accuracy and Generalization

DNF achieved an average accuracy of 99.8% across five major test sets, significantly outperforming previous state-of-the-art methods like DIRE (93.6%) and CNNDet (88.1%). Notably, when trained only on LSUN-Bedroom data, the model could still detect Midjourney and DALL-E 2 images with near-perfect accuracy, proving its strong cross-generator generalization.

Robustness to Perturbations

One of the most striking findings is DNF's resilience to common image edits. While traditional detectors often see their performance "plunge" as low as 50% when images are blurred or compressed, DNF maintains high performance. Even under heavy JPEG compression (quality 30), DNF maintained 99.2% accuracy.

Performance of DNF vs. baselines under Gaussian blur (Sigma) and JPEG compression (Quality). DNF (red line) remains nearly flat at 100%.

Discussion and Limitations

Despite its strengths, DNF has some constraints. The authors noted that extreme cropping (e.g., down to a 64x64 patch) leads to a drop in performance, as the global structural artifacts in the noise are lost. Additionally, while faster than full reconstruction-based methods, the multi-step inverse process is more computationally expensive than a simple single-pass CNN detector.

Conclusion

The Diffusion Noise Feature represents a significant step forward in the proactive detection of AI-generated content. By exploiting the inherent inductive biases of diffusion models through noise estimation, DNF provides a fast, accurate, and highly robust tool for maintaining digital trust in an era of increasingly sophisticated synthetic media.

Summary updated

BibTeX
@inproceedings{zhang2025diffusion,
  author = {Yichi Zhang and Xiaogang Xu},
  title = {{Diffusion Noise Feature: Accurate and Fast Generated Image Detection}},
  booktitle = {ECAI},
  year = {2025},
  doi = {10.3233/faia250925},
}
Figure