MADation: Face Morphing Attack Detection with Foundation Models

Eduarda Caldeira, Guray Ozgur, Tahar Chettaoui, Marija Ivanovska, Peter Peer, Fadi Boutros, Vitomir Struc, Naser DamerarXiv 2025

This blog post summarizes the research paper titled "MADation: Face Morphing Attack Detection with Foundation Models."

TL;DR

MADation is the first framework to adapt large-scale Foundation Models (FMs) specifically for detecting face morphing attacks. By fine-tuning the CLIP architecture using efficient Low-Rank Adaptation (LoRA), the researchers created a system that significantly outperforms traditional vision transformers and achieves state-of-the-art results across multiple security benchmarks.

What Problem Does This Paper Address?

Face recognition (FR) systems are now ubiquitous, but they have a major Achilles' heel: morphing attacks (MA). A morphing attack involves blending the facial features of two different people into a single image. If successful, this "morphed" image can be used to verify the identity of both individuals, potentially allowing a criminal to travel using a legitimate passport belonging to someone else.

Detecting these attacks (Morphing Attack Detection, or MAD) is notoriously difficult because attackers constantly develop new ways to create morphs (e.g., using GANs or Diffusion models). Traditional AI models often struggle to generalize; a model trained to detect one type of morphing might completely miss another. This paper explores whether Foundation Models—which are pre-trained on massive, diverse datasets—can provide the "common sense" visual knowledge needed to spot these subtle digital forgeries more reliably.

Methods

The authors introduce MADation, a framework that leverages the CLIP (Contrastive Language-Image Pre-training) foundation model.

The core components of the MADation pipeline are:

  1. Foundation Model Base: They use CLIP (specifically ViT-B and ViT-L variants) as the backbone. CLIP is naturally good at understanding general visual features because it was trained on millions of image-text pairs.
  2. LoRA (Low-Rank Adaptation): Instead of fine-tuning the entire massive model (which is computationally expensive and risks "forgetting" general knowledge), they insert small, trainable "rank-decomposition matrices" into the transformer layers. This allows the model to adapt to the specific textures of face morphs while keeping the original weights frozen.
  3. Classification Head: A simple binary fully connected layer is added to the end to output a final prediction: "Bona-fide" (real) or "Morphing Attack."
Figure 1. Morphing attack generation and MADation’s pipeline. The left side of the figure depicts a morphing sample and the two bona- fide identities that were morphed to generate it, using [13]. Keep in mind that attackers commonly choose to morph faces with similar features for higher success [16]. The right side represents MADation’s pipeline, consisting of an adapted FM followed by a binary fully connected classification layer. The embedding space of the FM is adapted by fine-tuning the LoRA parameters and the classification layer is simultaneously trained to produce the MAD predictions. Better visualized in colour.

Datasets

To ensure privacy and robustness, the authors focused on synthetic data for training and diverse real-world benchmarks for testing:

  • Training: SMDD (Synthetic Morphing Attack Detection Development), which contains 25k synthetic bona-fide images and 15k morphs created via OpenCV.
  • Evaluation:
    • MAD22 & MorDIFF: Benchmarks containing morphs generated by five different techniques, including GAN-based and diffusion-based methods.
  • FRLL-Morphs: A benchmark based on the Face Research Lab London dataset, featuring five distinct morphing methods like Style-GAN2 and AMSL.

Key Insights and Ideas

  • Zero-Shot is Not Enough: The authors tested CLIP's "zero-shot" ability (asking it to identify morphs without any specific training). While it performed okay, it wasn't reliable enough for security applications. This proves that MAD is a highly domain-specific task that requires targeted adaptation.
  • The "Sweet Spot" of Adaptation: Training a Vision Transformer from scratch (ViT-FS) led to overfitting because the MAD datasets are relatively small. Conversely, using a frozen FM as a feature extractor (FE) was too rigid. MADation (using LoRA) hit the sweet spot—retaining general visual intelligence while aligning the model's "eyes" to the specific artifacts left behind by morphing tools.
  • Generalization is King: MADation showed a remarkable ability to detect morphing types it hadn't seen during training (e.g., detecting Diffusion-based morphs after being trained on OpenCV-based morphs).

Key Results

MADation demonstrated superior performance compared to both internal baselines and existing state-of-the-art (SOTA) solutions:

  • Vs. Baselines: For the CLIP ViT-L architecture, MADation reduced the average Equal Error Rate (EER) by 16.93 percentage points compared to training from scratch and by 8.10 percentage points compared to using a frozen feature extractor.
  • Vs. SOTA: In the MAD22 and MorDIFF benchmarks, MADation achieved the best or second-best performance in the majority of evaluated scenarios (23/21 out of 42).
  • Benchmark Success: On the FRLL-Morphs dataset, MADation (ViT-B) achieved the lowest EER for specific morphing types like WebMorph and AMSL, outperforming previous specialized models.

Limitations and Future Work

While MADation is a significant step forward, the authors note a few areas for improvement:

  • Multi-modal potential: Some competing models use 3D facial information to boost detection. While MADation is currently 2D-only to remain computationally efficient, incorporating 3D data could further improve accuracy.
  • Dataset Diversity: Performance still varies depending on the specific morphing generation tool used. Future work could explore training on even more diverse synthetic datasets to further harden the model against "unseen" attack types.

The code for MADation has been made publicly available to encourage further research in this critical security field: https://github.com/gurayozgur/MADation.

Summary updated

BibTeX
@misc{caldeira2025madation,
  author = {Eduarda Caldeira and Guray Ozgur and Tahar Chettaoui and Marija Ivanovska and Peter Peer and Fadi Boutros and Vitomir Struc and Naser Damer},
  title = {{MADation: Face Morphing Attack Detection with Foundation Models}},
  year = {2025},
  eprint = {2501.03800},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2501.03800},
}
Figure