Manuscript Offprint

arXiv:2608.29802

Foundation and Multimodal Large Language Models for Face Presentation and Morph Attack Detection

Hatef Otroshi Shahreza, Asif Hussain Khan, Peter Lorenz, Alain Komaty, Sébastien Marcel

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Hatef Otroshi Shahreza, Asif Hussain Khan, Peter Lorenz, Alain Komaty, Sébastien Marcel

Abstract—Face recognition systems are increasingly deployed in security-critical applications, yet they remain vulnerable to presentation and morph attacks. Presentation attack detection (PAD) and morphing attack detection (MAD) are therefore essential components of trustworthy face biometrics. Despite advancements in PAD and MAD methods, existing detectors suffer from limited generalization and degrade in cross-dataset evaluation. In this paper, we systematically investigate whether general-purpose foundation models (FMs) and multimodal large language models (MLLMs) encode PAD-relevant and MAD-relevant information, and how such models can best be deployed for both tasks. We study five approaches with increasing access to the internal information of the model: (i) zero-shot prompting of off-the-shelf MLLMs; (ii) training a shallow model on the next-token logit probabilities at the output of the MLLM; (iii) parameter-efficient fine-tuning on task-specific question-answer data, yielding two specialized MLLMs, called PADLLM and MADLLM, which additionally provide textual reasoning for their decisions; (iv) linear probing of frozen vision encoders; and (v) fine-tuning of vision encoders of FMs and MLLMs. We benchmark 16 open-weight MLLMs and 30 vision encoder backbones on four PAD datasets (MSU-MFSD, CASIA-FASD, Replay-Attack, and OULU-NPU) and four MAD datasets (FFHQ, FRGC, FRLL, and FERET). Our experiments show that FMs and MLLMs can achieve significant performance for PAD and MAD. In addition, the fine-tuned models achieve state-of-the-art detection performance in cross-dataset evaluation, indicating that general-purpose pretrained representations carry substantial attack-relevant information. Source code of all our experiments will be publicly released.

Index Terms—Foundation Model, Multimodal Large Language Model (MLLM), Vision-Encoder, Face Recognition, Presentation Attack Detection (PAD), Morph Attack Detection (MAD).

I. INTRODUCTION

Face recognition systems are increasingly used in security-critical applications such as border control, digital identity verification, and physical access control. Despite their high recognition accuracy, these systems remain vulnerable to biometric attacks, which undermine their reliability. Two threats dominate this landscape: 1) presentation attacks, which appears in the acquisition stage by presenting artificial samples (such as printed photographs, replayed videos, or physical masks, etc.), to impersonate a genuine user [1], [2]; 2) morphing attacks, which exploit the enrollment stage by combining the facial characteristics of multiple identities into a single image so that a matcher can accept as either individual [3]–[6].

All authors are affiliated with Idiap Research Institute, Switzerland. Sébastien Marcel is also affiliated with Université de Lausanne, Switzerland.

Hatef Otroshi Shahreza, Asif Hussain Khan, and Peter Lorenz contributed equally to this work.

Correspondence: Hatef Otroshi Shahreza (hatef.otroshi@idiap.ch).

This work was funded by the European Union projects CarMen (Grant Agreement No. 101168325) and ORION (Grant Agreement No. 101225611).

The corresponding defense mechanisms, i.e., presentation attack detection (PAD) and morph attack detection (MAD), have therefore become essential components for trustworthy face biometrics.

Both attack families have evolved substantially over recent years. Presentation attacks have evolved from relatively simple printed photographs and screen replays to high-quality displays, 3D masks, and other physical presentation attack instruments capable of reproducing increasingly realistic facial appearance [7]–[9]. Correspondingly, PAD methods have evolved from handcrafted texture and motion cues toward deep neural networks designed to capture richer spatial, temporal, and physiological evidence [10]–[13].

Morphing also began with landmark-based image warping [4] and has since moved to generative adversarial networks [14]–[16] and diffusion models [17], each generation leaving fewer visible artifacts than the last. This arms-race dynamic means PAD and MAD systems validated on one generation of attacks routinely underperform on the next, motivating detectors that generalize from broad visual and semantic cues rather than artifacts specific to a single attack generator. Along the same vein, deep neural networks trained for PAD can achieve strong performance when trained and tested on the same dataset, but degrade under cross-dataset shifts in sensors, illumination, and attack types [18]–[23]. Despite differences in presentation attacks and morph attacks, PAD and MAD can be similarly formulated as a binary classification problem (i.e., to distinguish bonafide vs attack).

Recently, foundation models (FMs) and multimodal large language models (MLLMs) have been shown to achieve strong performance in different applications [24]–[26]. Vision FMs and MLLMs pretrained on large-scale image or image-text data offer an alternative by providing generic representations that may already encode cues relevant for PAD [27]–[31] or MAD [32]–[34]. Latest works explored the use of FMs for PAD through multimodal architectures (e.g., FLIP [27], I-FAS [35], InstructFLIP [28]), fine-tuning (e.g., CLIP [36] in FoundPAD [29], and on DINOv2 with Registers [30]), and self-supervised pre-training without labels, i.e., FSFM [31] for PAD. Similar approaches have also been explored for MAD, such as multimodal architecture studies [37], fine-tuning [38], etc. Each method uses different approaches to deploy FMs and MLLMs for PAD or MAD tasks.

In this paper, we systematically explore whether general-purpose foundation models and multimodal large language models contain sufficient PAD-relevant and MAD-relevant representations, and what the best approach is to deploy FMs or MLLMs for PAD and MAD. To this end, we consider five different approaches with increasing access to a model's

Figure

Fig. 1. MLLM-based presentation and morph attack detection pipeline and key contributions (as referred to Section III A-E).

internal information (Figure 1). In the first approach, we focus on zero-shot evaluation of 16 open-weight general-purpose MLLMs as off-the-shelf models and assess their performance for PAD and MAD tasks. We provide each model with an input image and a textual prompt asking it to provide a score indicating whether the image is bonafide or an attack. In the second approach, we focus on the next-token probability at the output of MLLMs and train a shallow model to predict PAD or MAD scores based on token logit probabilities. In our third approach, we adapt general-purpose MLLMs for PAD and MAD with parameter-efficient fine-tuning. We generate separate question-answer datasets for PAD and MAD tasks, and then fine-tune an MLLM for each task. The resulting models (PADLLM and MADLLM) improve performance compared to pretrained baselines. In the next approaches, we focus on vision-encoders in MLLMs and FMs and use them as feature extractors. We first evaluate the performance of 30 different vision-encoders when used as frozen feature extractors with a linear-probing protocol (our fourth approach). Finally, as our fifth approach, we fine-tune and adapt the vision-encoders and train them for PAD and MAD. We evaluate the models on various datasets, including MSU-MFSD, CASIA-FASD, Replay-Attack, and OULU-NPU presentation-attack datasets for PAD, and the FFHQ, FRGC, FRLL, and FERET datasets for MAD. In summary, our contributions are as follows:

  • We present a comprehensive study of using foundation models and multimodal large language models for presentation and morph attack detection.
  • We present two new specialized MLLMs, called PADLLM and MADLLM. The trained models achieve state-of-the-art performance and provide reasoning for attack detection.
  • We improve the performance of MLLMs based on next-token probability.
  • We fine-tune vision-encoders of FMs and MLLMs. The

resulting models achieve strong detection performance.

  • We benchmark 16 open-weight MLLMs and 30 frozen vision-encoder backbones, and explore which pretraining can better represent PAD-related and MAD-relevant information.

References (100)

Couldn't load all references. Reload the page to try again.