BiHPF: Bilateral High-Pass Filters for Robust Deepfake Detection

Yonghyun Jeong, Doyeon Kim, Seungjai Min, Seongho Joe, Youngjune Gwon, Jongwon Choi

Abstract

The rapid advancement of generative models has simplified the creation of realistic synthetic images, increasing the risk of malicious use. Developing a generalized detector capable of identifying synthesized images from unseen GAN models or object categories is critical. Current detectors often overfit to training distributions, leading to performance degradation in cross-domain scenarios. We propose Bilateral High-Pass Filters (BiHPF), a preprocessing method designed to amplify universal frequency-level artifacts found in GAN-generated images. Our approach achieves state-of-the-art generalization across diverse datasets and generative architectures.

The Challenge of Cross-Domain Generalization

Modern Deepfake detectors perform exceptionally well when test data matches the training distribution. However, they frequently fail in "cross-domain" challenges—such as a face-trained detector failing on synthetic animal images, or a ProGAN-trained model failing to recognize StyleGAN2 outputs. This failure stems from models overfitting to image content (semantic features like eyes or noses) rather than the underlying generation process. To achieve robust detection, we must isolate the universal "fingerprints" left by GAN architectures while suppressing domain-specific features.

Methodology: Identifying and Amplifying Artifacts

Artifact Compression Maps (ACM)

To understand where generative artifacts reside, the researchers developed a diagnostic tool called the Artifact Compression Map (ACM). By training a network adversarially to "hide" artifacts, they visualized the regions where synthetic images differ most from real ones. This analysis revealed two critical insights: artifacts are most prominent in the high-frequency spectrum and are more easily detected in the background rather than the central subject.

Visualization of frequency-level artifacts isolated via Artifact Compression Maps (ACM). The middle column shows the high-frequency noise patterns that BiHPF aims to amplify.

The BiHPF Framework

Based on these findings, the proposed BiHPF method applies two complementary filters to images before they reach the classification network:

  • Pixel-level High-Pass Filter: Utilizing a Laplacian of Gaussian (LoG) filter, the system suppresses the low-frequency central subject and highlights edges and background textures. This forces the model to ignore semantic content and focus on areas where GAN artifacts are most consistent.
  • Frequency-level High-Pass Filter: This filter operates in the Fourier domain, completely removing low-frequency components that represent the general "shape" of the image. This isolates the high-frequency noise patterns typically caused by GAN upsampling layers.

The filtered output is processed by a standard ResNet-50 backbone, which analyzes the magnitude spectrum rather than raw RGB pixels.

Experimental Results

BiHPF was evaluated against several state-of-the-art (SOTA) methods using a variety of datasets, including LSUN and FFHQ, and models such as ProGAN, StyleGAN2, and BigGAN.

  • Cross-Category Generalization: When trained on human faces and tested on 20 diverse categories (e.g., cats, cars, churches), BiHPF achieved 77.6% accuracy, significantly outperforming the previous SOTA of 68.7%.
  • Cross-Model Robustness: In cross-model tests (e.g., training on ProGAN and testing on StyleGAN2), BiHPF maintained superior performance. In a 4-class training setting, it reached an average accuracy of 84.2% across different GAN architectures.
  • Resilience to Editing: The model demonstrated higher robustness to common image manipulations, such as changes in brightness, hue, and saturation, compared to models relying on raw pixel data.

Conclusion

BiHPF offers a robust solution for generalized deepfake detection by shifting the focus from image semantics to the structural artifacts of the generation process. By combining pixel-level and frequency-level high-pass filters, the method effectively suppresses distracting domain-specific information. While future work must address the evolving nature of generative models, such as Diffusion Models, BiHPF establishes a powerful baseline for cross-domain synthetic image detection.

Summary updated

Abstract

The advancement in numerous generative models has a two-fold effect: a simple and easy generation of realistic synthesized images, but also an increased risk of malicious abuse of those images. Thus, it is important to develop a generalized detector for synthesized images of any GAN model or object category, including those unseen during the training phase. However, the conventional methods heavily depend on the training settings, which cause a dramatic decline in performance when tested with unknown domains. To resolve the issue and obtain a generalized detection ability, we propose Bilateral High-Pass Filters (BiHPF), which amplify the effect of the frequency-level artifacts that are known to be found in the synthesized images of generative models. Numerous experimental results validate that our method outperforms other state-of-the-art methods, even when tested with unseen domains.
BibTeX
@inproceedings{jeong2022bihpf,
  author = {Yonghyun Jeong and Doyeon Kim and Seungjai Min and Seongho Joe and Youngjune Gwon and Jongwon Choi},
  title = {{BiHPF: Bilateral High-Pass Filters for Robust Deepfake Detection}},
  booktitle = {IEEE/CVF Winter Conference on Applications of Computer Vision},
  year = {2022},
  url = {https://openreview.net/forum?id=BD5_Y5OLCn},
}
Figure