This post summarizes the paper "Towards Generalizable Morph Attack Detection with Consistency Regularization" by Kashiani et al.
TL;DR
The authors propose a generalizable morph attack detection (MAD) framework that uses novel data augmentations and multi-level consistency regularization to identify facial morphs. By forcing the model to learn domain-invariant features across diverse synthetic variations, their approach significantly outperforms existing methods on unseen morphing techniques and post-processed images (like print-scans).
What Problem Does This Paper Address?
Face recognition systems are increasingly vulnerable to "morph attacks," where a single image is crafted to represent two or more identities. While deep learning has improved detection, most models suffer from a "generalization gap": they perform exceptionally well on the specific morphing algorithms they were trained on but fail miserably when encountering new, unseen morphing methods or common real-world distortions like JPEG compression and print-scan operations.
The core challenge is domain shift. A detector trained on simple landmark-based morphs often fails to recognize sophisticated GAN-based morphs because it has overfit to the specific artifacts of the training set rather than learning the fundamental, invariant traces of the morphing process itself.
Methods
The authors introduce a framework called Generalizable Representation Learning (GRL), which rests on two pillars: novel augmentations and hierarchical consistency regularization.
1. Morph-wise Augmentations
To expose the model to a wider variety of realistic scenarios, the authors propose two specific techniques:
- Self-morphing (SM): The model morphs two different images of the same identity. This creates high-quality morphs with minimal visual artifacts, forcing the detector to look for subtle procedural traces rather than obvious identity mismatches.
- Inter-domain Style Mixup (ISM): This uses photo-realistic style transfer to apply styles from external datasets (like FFHQ) to the morph images. This simulates variations in lighting, camera sensors, and environmental conditions without changing the facial content.
2. Consistency Regularization
The architecture (based on ConvNext) is regularized at two levels to ensure it treats original and augmented images similarly:
- Prediction-level: Uses KL divergence to ensure the model's final probability outputs are consistent across different variations of the same image.
- Embedding-level: This is the "secret sauce." The authors align feature representations at multiple depths of the network using Jensen-Shannon Divergence (JSD) and adversarial discriminators. This forces the hidden layers to ignore domain-specific "style" and focus on domain-invariant "content" related to morphing artifacts.
Datasets
The study utilizes several key benchmarks to test generalization:
- Training: FRGC (Face Recognition Grand Challenge) and the Twins dataset.
- Evaluation: A wide array of unseen attacks including StyleGAN2, MIPGAN, OpenCV, and FaceMorpher across datasets like FERET, AMSL, and FRLL.
- Robustness Benchmarks: Specially crafted versions of the MIPGAN dataset subjected to Print-Scan (PS) and varying levels of JPEG compression.
Key Insights and Ideas
- Hard Negatives via SM: Morphing the same person is a clever way to generate "hard" samples. Since the identity is the same, the model cannot rely on detecting "two people in one face"; it must find the actual mathematical artifacts of the morphing algorithm.
- Depth Matters: Regularizing only the final output isn't enough. By enforcing consistency at shallow, middle, and deep layers, the model learns to ignore low-level noise and high-level style variations simultaneously.
- Adversarial Alignment: Using a discriminator to try and distinguish between "original" and "augmented" features—and training the feature extractor to fool it—effectively strips away domain-specific information.
Key Results
The GRL method achieved remarkable results in cross-morph and cross-dataset scenarios:
- Zero Error Rates: In several cross-morph tests on the FRGC dataset, GRL reduced the Attack Presentation Classification Error Rate (APCER) from double digits to 0.00% (see Table 1).
- Superior Generalization: On the FERET dataset, GRL achieved an Equal Error Rate (EER) of 6.80%, whereas competing methods like SPL-MAD hovered around 30.21% (see Table 2).
- Robustness to Compression: Even on highly compressed 32x32 images, GRL maintained an EER of 16.33%, significantly outperforming the baseline ConvNext which struggled at 31.19% even on higher resolution 128x128 images.
Limitations and Future Work
While the results are impressive, the authors note that a performance gap still exists when moving to entirely different datasets (like FRLL), suggesting that identity-related domain shifts are still a factor. The paper does not extensively discuss the computational overhead added by the multiple auxiliary classifiers and discriminators during the training phase, though they note these are detached during inference, resulting in no extra cost for the end-user. Future work could explore even more diverse "in-the-wild" augmentations to further close the remaining generalization gaps.
Summary updated