Dual Frequency Branch Framework with Reconstructed Sliding Windows Attention for AI-Generated Image Detection

Jiazhen Yan, Ziqiang Li, Fan Wang, Ziwen He, Zhangjie Fu
1/25/2025
cs.CV

No official code found. Best implementation: HorizonTEL/DFFreq-main (3 stars, last commit 2026-02-20).

Abstract

The rapid advancement of Generative Adversarial Networks (GANs) and diffusion models has enabled the creation of highly realistic synthetic images, presenting significant societal risks, such as misinformation and deception. As a result, detecting AI-generated images has emerged as a critical challenge. Existing researches emphasize extracting fine-grained features to enhance detector generalization, yet they often lack consideration for the importance and interdependencies of internal elements within local regions and are limited to a single frequency domain, hindering the capture of general forgery traces. To overcome the aforementioned limitations, we first utilize a sliding window to restrict the attention mechanism to a local window, and reconstruct the features within the window to model the relationships between neighboring internal elements within the local region. Then, we design a dual frequency domain branch framework consisting of four frequency domain subbands of DWT and the phase part of FFT to enrich the extraction of local forgery features from different perspectives. Through feature enrichment of dual frequency domain branches and fine-grained feature extraction of reconstruction sliding window attention, our method achieves superior generalization detection capabilities on both GAN and diffusion model-based generative images. Evaluated on diverse datasets comprising images from 65 distinct generative models, our approach achieves a 2.13\% improvement in detection accuracy over state-of-the-art methods.

View on arXivView PDF

Code Implementations(1)

Official implementation of "Dual Frequency Branch Framework with Reconstructed Sliding Windows Attention for AI-Generated Image Detection".

33PythonFeb 8, 20268 months ago

Similar Papers

Cite this paper

@article{yan2025dual,
  title  = {Dual Frequency Branch Framework with Reconstructed Sliding Windows Attention for AI-Generated Image Detection},
  author = {Jiazhen Yan and Ziqiang Li and Fan Wang and Ziwen He and Zhangjie Fu},
  year   = {2025},
  eprint = {2501.15253},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2501.15253v3}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2501.15253.svg)](https://codeofpaper.com/paper/2501.15253)

Discussion