Abstract
Face Recognition Systems (FRS) at border controls are increasingly vulnerable to morphing attacks, where images of two different individuals are blended to create a single fraudulent identity. A major hurdle in Morphing Attack Detection (MAD) is generalization—detecting "unknown" attacks generated by algorithms not seen during training. This paper introduces a novel Single-Image-Based MAD (S-MAD) approach that leverages the global and local processing power of Vision Transformers (ViT). By extracting deep representations from a pretrained ViT and utilizing a linear SVM for classification, the proposed method achieves superior generalization across various morphing algorithms, particularly for digital images, outperforming existing state-of-the-art methods.
Introduction
The integrity of automated border control systems relies heavily on the security of face recognition. Morphing attacks pose a significant threat: if a passport contains a morphed image, multiple individuals may successfully pass through security using the same document. Detecting these attacks from a single image (S-MAD) is a complex task, as the detector must identify subtle traces left by blending or generative processes.
The primary challenge in S-MAD is the "open-set" problem. Most current detectors are trained on specific morphing algorithms (e.g., landmark-based blending) and often fail when encountering novel attacks, such as those produced by Generative Adversarial Networks (GANs). This research aims to develop a generalized detector capable of identifying morphing traces regardless of the underlying generation method or subsequent image processing.
Methodology
The proposed system shifts from traditional Convolutional Neural Networks (CNNs) to the Vision Transformer (ViT) architecture to better capture both local textures and global facial structures.
The pipeline consists of four main stages:
- Preprocessing: Input faces are detected using MTCNN and resized to a standard $384 \times 384$ resolution.
- ViT Architecture: The model utilizes a pretrained ViT-L (Large) variant. Unlike CNNs, which use local filters, the ViT splits the image into $32 \times 32$ patches and employs self-attention mechanisms. This allows the model to relate every patch to every other patch, integrating global information from the initial layers.
- Feature Extraction: The 1024-dimensional classification token (CLS token) is extracted from the 24th encoder block of the ViT. This token serves as a deep representation of the entire face.
- Classification: These features are fed into a Linear Support Vector Machine (SVM). The SVM acts as a regularizer, preventing the model from overfitting to specific noise patterns in small morphing datasets and encouraging the learning of more generalizable features.
Experimental Setup
The study used a comprehensive dataset derived from the FRGC-V2 face dataset, comprising 1,270 bona fide samples. To evaluate generalization, five distinct morphing algorithms were employed:
- Landmark-based: Landmark-I and Landmark-II.
- GAN-based: StyleGAN-IWBF, MIPGAN-I, and MIPGAN-II.
The performance was tested across three real-world scenarios: Digital, Print-scan, and Print-scan with compression (simulating e-passport storage).
Results and Discussion
The ViT-based method was benchmarked against seven state-of-the-art S-MAD algorithms.
Performance in the Digital Domain
The proposed method emerged as the top performer for digital images, achieving a mean Detection Equal Error Rate (D-EER) of 13.63%, which is a 1.15% improvement over the best baseline. In cross-dataset testing—where the model is trained on one morphing type and testing on another—the ViT model consistently demonstrated superior robustness compared to CNN-based and hand-crafted feature methods.
Feature Space Visualization
The effectiveness of the deep representations is further evidenced by t-SNE visualizations.
As shown in the t-SNE plot, features from GAN-based morphs (StyleGAN and MIPGAN) are well-separated from bona fide images. Crucially, this separation persists even for GAN types that the model did not encounter during training, highlighting the generalization capability of the ViT features.
Key Insights
- Global Context: Morphing traces are often distributed across the entire face. ViT’s large receptive field allows it to capture these distributed artifacts more effectively than the local filters of a CNN.
- Stability through SVM: Using a linear SVM on top of frozen ViT features prevents "memorization" of training-set-specific noise, forcing the system to rely on fundamental morphing traces.
Conclusion
This research demonstrates that deep representations from Vision Transformers provide a powerful and generalizable solution for single-image morphing attack detection. While the model excels in the digital domain, performance degradation on print-scanned images suggests that future work should focus on adapting ViT features to noisy, lower-resolution textures. Potential avenues include fine-tuning on domain-specific data or fusing ViT features with specialized descriptors designed for printed media.
Summary updated