arXiv:2609.01749cs.CVSep 2026

Manuscript Offprint

arXiv:2609.01749

Swin Meets EfficientNet: Lightweight Architectures for GAN-Based Face Forensics

Sejuti Basu, Ashima Sood, Vijay Kumar, Sahil Sharma

Sejuti Basu¹, Ashima Sood², Vijay Kumar³, Sahil Sharma²

{basusejuti@gmail.com, sood-a1@ulster.ac.uk, vijaykumarchahar@gmail.com, s.sharma@ulster.ac.uk}

¹International Institute of Information Technology, Bangalore, India

²School of Computing, Engineering, and Intelligent Systems, Ulster University, Londonderry, United Kingdom

³Department of Information Technology, Dr B R Ambedkar National Institute of Technology Jalandhar, Punjab, India

Abstract. Modern generative models, such as GANs, diffusion architectures, and autoregressive systems, now produce facial images that are nearly indistinguishable from authentic photographs. This capability makes detecting forged images increasingly difficult, raising serious concerns about identity theft, fraud, and misinformation campaigns. Our research focuses specifically on GAN-generated synthetic faces, which underpin many face-centric deepfakes, and investigates efficient detection approaches using image analysis alone. Existing detection systems rely heavily on either convolutional neural networks (CNNs) or global vision transformers. While CNNs excel at identifying texture-based local features, they struggle with broader contextual understanding. Traditional Vision Transformer (ViT) models can capture long-range structures effectively, but demand substantial computational resources. Our work explores Swin-Transformer-based architectures across three implementations: a compact Swin Transformer trained from the ground up, ImageNet-1K pre-trained Swin-Tiny and Swin-Small models adapted for binary classification, and a novel hybrid combining EfficientNet-B0's convolutional processing with a Swin Transformer backend. We evaluated all models using the 140K Real and Fake Faces dataset, which includes StyleGAN-generated fake faces alongside authentic images from Flickr and DFDC, with balanced splits for training, validation, and testing. The EfficientNetB0+Swin hybrid achieved 99% accuracy and a 99.44% recall on 5,000 test images, outperforming both pure Swin variants and a previous CNN-only baseline on this dataset. Our results suggest that combining hierarchical CNN features with shifted-window self-attention provides an efficient and computationally lightweight method for detecting GAN-generated synthetic faces.

Keywords: Deepfake, Transformers, EfficientNet, Swin-Transformer

1 Introduction

Facial images are commonly utilised as biometric identifiers. Mobile devices, border control systems, financial institutions, and social media platforms collect such data, which is increasingly repurposed for training large-scale recognition and generative models. At the same time, concerns about biometric leakage and unauthorised reuse of facial data without proper consent continue to grow. These tensions have made data synthesis an important research direction in biometrics. Synthetic faces could help facilitate model development and evaluation while reducing dependence on identifiable subjects and raw operational logs. Regulators and international organisations stress the need for stronger protections against harmful uses of synthetic media, including identity theft, financial fraud, political misinformation, and reputational damage.¹

In this environment, high-fidelity face synthesis has become widespread. Beyond classical Generative Adversarial Networks (GANs) [1], modern diffusion and autoregressive models can generate photorealistic human faces and perform effective face editing [2, 3]. Our study examines synthetic faces produced by GANs, specifically architectures similar to StyleGAN [4]. These models play a central role in current biometric practices, being used to construct large-scale synthetic face datasets, generate identities with controllable attributes, and support attack pipelines requiring rapid and cost-effective identity fabrication. From a forensic standpoint, GAN-generated faces display unique artifact patterns and distributional biases distinct from those in diffusion models. Understanding how detector architectures respond to GAN-specific signatures is crucial for improving biometric system security and for clarifying the limitations of synthetic face datasets used in training and evaluation.

Deepfake detection is typically framed as a supervised binary classification problem for images or videos, though effective modeling requires more than simple label assignment. Detectors must respond to detailed local evidence like texture inconsistencies, blending artifacts, and abnormal noise statistics, while also accounting for global facial structure and cross-region consistency [5, 6]. Convolutional neural networks (CNNs) are frequently used here because they leverage local correlations and perform well across diverse benchmarks. Backbones like VGG, ResNet, Xception, and EfficientNet focus on local patterns. Although their effective receptive field expands with depth, they model global context only indirectly [7]. Vision Transformers (ViTs) [8] take a different approach by applying global self-attention across all patches. This enables robust long-range modeling but comes with higher memory and computational costs, plus greater reliance on extensive pretraining. The Swin Transformer [9] offers a middle ground by combining shifted window self-attention with a hierarchical architecture, balancing local detail, global structure, and computational efficiency. Our paper investigates how architectural choices affect the detection of GAN-generated synthetic faces using Swin-based architectures and a hybrid CNN-Swin design. This approach computes self-attention within non-overlapping windows, alternating with shifted windows, yielding a hierarchical representation with three useful properties for deepfake detection: (i) a multi-scale feature pyramid capturing both fine-grained and semantic information, (ii) self-attention with computational cost scaling linearly with image size, and (iii) cross-window interactions approximating global context without requiring full global attention. Swin is lighter and simpler to implement than ViT-style global transformers, while offering better contextual modeling than pure CNNs.

The primary concern is how far can Swin-based architectures be advanced for GAN-based synthetic face detection, and how do they perform in comparison to robust CNN baselines? We analyse Swin both independently and in conjunction with an EfficientNet backbone, utilising StyleGAN-

¹https://www.unesco.org/en/articles/deepfakes-and-crisis-knowing generated faces from the 140K Real and Fake Faces dataset as a controlled testbed. This research emphasises GAN-based images, yet the architectural insights are applicable to other generative models.

Our contributions are as follows:

  • This study systematically investigates Swin-Transformer architectures for deepfake image detection, analysing the impact of design choices, including patch size, window size, and training regime (from scratch versus transfer learning), on performance with GAN-generated synthetic faces.

  • This study presents a hybrid architecture that merges EfficientNet-B0 with a Swin-Transformer head. This integration facilitates convolutional feature extraction alongside shifted-window self-attention, enabling the joint modelling of local artefacts and global facial context, while maintaining a significantly lighter profile compared to a standard ViT.

  • This study assesses three Swin-based variants: a task-specific Swin trained from scratch, ImageNet-pretrained Swin-Tiny and Swin-Small, and the proposed hybrid EfficientNet+Swin, using the 140K Real and Fake Faces dataset. These variants are compared to an EfficientNet-based baseline. The hybrid model demonstrates 99% accuracy and a 99.44% recall on a test set of 5,000 images, significantly surpassing the performance of both solely Swin-based and CNN-based detectors on this GAN-centric benchmark.

The remainder of the paper is organised as follows. Section 2 reviews related work on deepfake detection with CNNs and transformers. Section 3 introduces our Swin-based and hybrid architectures. Section 4 presents the experimental setup and results. Section 5 concludes with a discussion of limitations and directions for extending this work beyond GAN-based synthetic faces.