FIRE: Robust Detection of Diffusion-Generated Images via Frequency-Guided Reconstruction Error

Beilin Chu, Xuan Xu, Xin Wang, Yufei Zhang, Weike You, Linna ZhouCVPR 2025

Introduction

The rapid advancement of diffusion models (DMs) has made it increasingly difficult to distinguish AI-generated images from real ones. This capability introduces significant risks regarding digital forgery and misinformation. Current detection methods generally rely on architectural artifacts or reconstruction-based approaches. However, artifact-based methods often fail to generalize to new models, while reconstruction-based methods can be misled by content bias and noise when analyzing the entire image at once.

The Mid-Band Frequency Insight

A key observation of this work is that diffusion models exhibit varying reconstruction capabilities across different frequency bands. While DMs are proficient at reconstructing low-frequency components (general shapes and colors) and high-frequency noise, they struggle significantly with mid-band frequencies—the textures and structural details that define real-world objects.

Visualization of frequency masks and reconstruction errors across different bands for real and generated images.

By isolating these mid-frequency regions, the proposed framework, FIRE (Frequency-guIded Reconstruction Error), can more effectively identify the "fingerprints" of real images that DMs fail to replicate accurately.

The FIRE Framework

The FIRE pipeline consists of several integrated modules designed to exploit the mid-band reconstruction gap:

  1. Frequency Mask Refinement (FMRE): A custom module that learns to identify and isolate the specific mid-frequency regions where a DM is most likely to fail.
  2. Pseudo-generated Image Creation: Using the refined mask, the system generates a "pseudo-generated" version of the input image by stripping away the difficult mid-band frequencies.
  3. AE-based Reconstruction: Instead of the computationally expensive full diffusion denoising process, FIRE utilizes the Autoencoder (AE) component of a Latent Diffusion Model (LDM). It calculates reconstruction errors for both the original image and the pseudo-generated version.
  4. End-to-End Classification: A ResNet-50 classifier analyzes the difference (delta) between these reconstruction errors. A large difference indicates a real image (where the DM struggled with the original's mid-band details), while a small difference suggests a generated image.
The end-to-end FIRE pipeline, showing the interaction between FMRE, the LDM autoencoder, and the final classifier.

Experimental Results

The authors evaluated FIRE against the DiffusionForensics benchmark and a self-collected dataset featuring modern models like DALL-E 3, Midjourney, and SDXL.

  • Performance: FIRE achieved near-perfect results on standard benchmarks, with 100% AUC and Accuracy across models like ADM and LDM.
  • Generalization: Unlike previous methods that degrade on unseen models, FIRE maintained a high AUC of 78.3% on DALL-E 3, significantly outperforming baselines like CNNDet (~52% AUC).
  • Robustness: The method proved resilient to common image perturbations, including JPEG compression and Gaussian noise.

Conclusion

FIRE introduces a robust, frequency-aware approach to AI image detection. By focusing on the mid-band "sweet spot" of reconstruction error, it achieves superior generalization and efficiency. While performance drops under severe Gaussian blur—which physically erases the necessary frequency information—FIRE represents a significant step forward in securing digital content against sophisticated generative models.

Summary updated

BibTeX
@inproceedings{chu2025fire,
  author = {Beilin Chu and Xuan Xu and Xin Wang and Yufei Zhang and Weike You and Linna Zhou},
  title = {{FIRE: Robust Detection of Diffusion-Generated Images via Frequency-Guided Reconstruction Error}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2025},
  doi = {10.1109/cvpr52734.2025.01197},
}
Figure