All models

FreqNet

FreqNet: a lightweight CNN deepfake detector that learns in the frequency domain.

Image classification · 172 operations Checked

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

Loading diagram (9 KB)

Open in a new tab

Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.

At a glance

Parameters
1.9M
Operations
172
Framework
PyTorch
Recurrent
No
Published
AAAI 2024
Cited by
4 (as of 29 October 2026)
Authors
Chuangchuang Tan, Yao Zhao, Shikui Wei and others
Checked
Passed: the trace was replayed operation by operation and matched the model's own output for this input.

Files

The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m16759
Graph hash
5c5ccaabdf1d2eecf2427d964d8689782716cad662d82e307a9d5f1e2dafb116
Skeleton hash
c98bd0cff2d433071f6113002a0390423094b7cbcd4065da5e1d4b04088b82b0
Architecture hash
6c150fea7535b96b72686a0079372d3f001605a1a905b48a6a8ccbee40c119fb
Diagram SHA-256
0034caee49d8c7089acef2582679ad310e4d498382d77de7bbb4e56f6250eeaf
TorchLens version
2.36.0
Renderer
graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
Check
Forward pass replayed in PyTorch

What it is

FreqNet is a lightweight CNN classifier for deepfake detection that does part of its learning in the frequency domain, with the aim of generalizing better. The authors argue that earlier frequency-based detectors overfit to the artifacts present in their training data and so perform poorly on unseen sources.

The detector's input is the high-frequency part of the image, obtained with a Fast Fourier Transform and a high-pass filter. The same high-frequency extraction is applied to feature maps inside the network, across both spatial and channel dimensions. A frequency convolutional layer transforms feature maps to the frequency domain, applies convolutions to both the phase spectrum and the amplitude spectrum, and transforms the result back with the inverse FFT.

The paper's experiments involve images from 17 GANs. Training uses ProGAN images in 1-class, 2-class and 4-class settings, the last being car, cat, chair and horse. The paper reports that FreqNet, with 1.9 million parameters, outperformed the 304 million parameter model it compared against. In the 4-class setting on the ForenSynths dataset it reports a mean accuracy of 91.5%.

Key idea. FreqNet makes a lightweight CNN deepfake detector learn in frequency space, using high-frequency representations and convolutions on phase and amplitude spectra to generalize to unseen sources.

  • FreqNet
  • deepfake detection
  • frequency-aware deepfake detection
  • frequency space learning
  • GAN image detection
  • synthetic image detection
  • FFT
  • high-frequency representation
  • generalizable deepfake detector

AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.

Cite the paper

@misc{tan2024frequencyawaredeepfakedetectionimproving,
      title={Frequency-Aware Deepfake Detection: Improving Generalizability through Frequency Space Learning}, 
      author={Chuangchuang Tan and Yao Zhao and Shikui Wei and Guanghua Gu and Ping Liu and Yunchao Wei},
      year={2024},
      eprint={2403.07240},
      archivePrefix={arXiv},
      primaryClass={cs.CV},
      url={https://arxiv.org/abs/2403.07240}, 
}