Position-Aware CNN-Transformer Model for Deepfake Detection
This study tackles the challenges of Deepfake detection posed by modern generative models and introduces an integrated architecture that combines Convolutional Neural Network (CNN) with Transformer, enhanced by position-aware modules to improve detection accuracy. While Transformer inherently incorporates positional encoding, CNN lacks explicit spatial modeling capabilities. To address this, our position-aware mechanism fuses RGB images and CNN-derived feature maps with positional encoding information using position-aware attention modules. This integration strengthens the backbone network’s ability to capture and interpret spatial cues. To train and evaluate our model, we constructed a comprehensive dataset of 80,000 facial images—comprising 40,000 AI-generated images from four cutting-edge generative models (StyleGAN3, EG3D, Stable Diffusion XL, and DALL-E 3 XL v2) and 40,000 real images sourced from CelebA-HQ and FFHQ. Experimental results show that our model consistently outperforms baseline approaches on images generated by StyleGAN3, EG3D, Stable Diffusion XL, and DALL-E 3 XL, achieving accuracy gains of 8.49%, 2.93%, 2.40%, and 4.40%, respectively. These findings highlight the model’s superior performance, strong generalization capability, and robustness in detecting Deepfakes generated by state-of-the-art AI models.
Authors
- Oscal Tzyh-Chiang Chen
- Yu Xin Chen
- Chih-Ta Tsai (ORCID: https://orcid.org/0000-0002-3841-9355)
Institutions
- National Chung Cheng University (TW)
Publication Details
- Published
- 2025-08-11
- DOI
- https://doi.org/10.1109/avss65446.2025.11149951
- Primary Topic
- Generative Adversarial Networks and Image Synthesis
- Type
- article
- Field-Weighted Citation Impact
- 0.00