arXiv:2611.02756cs.CVNov 2026

Manuscript Offprint

arXiv:2611.02756

DINOFAS: Bonafide-Centric Representation Learning for Face Anti-Spoofing

Shakeel Muhammad Ibrahim, Muhammad Sohail Ibrahim, Muhammad Shahid Jabbar, Shujaat Khan

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

Shakeel Muhammad Ibrahim, Muhammad Sohail Ibrahim, Muhammad Shahid Jabbar, and Shujaat Khan

Abstract—Face anti-spoofing (FAS) models often learn attack-and dataset-specific cues that degrade performance under unseen acquisition conditions and presentation attacks. We present DINOFAS, a DINov3-based framework that formulates FAS as bonafide-centric representation learning. The proposed framework combines parameter-efficient DINov3 adaptation using low-rank adaptation (LoRA), an attention style-content disentanglement (ASCD) module for reducing domain-specific appearance variations, and a dual-branch architecture that separates prototype-based liveness learning from attack-semantic supervision. The model is jointly optimized using a bonafide-centric prototype objective, an attack-semantic classification loss applied to detached features, and orthogonality regularization. DINOFAS achieves an average HTER of 9.09% under the standard OCIM leave-one-domain-out protocol, where training is performed on three source datasets and evaluation is conducted on the held-out unseen domain. We further evaluate synthetic-to-real generalization by training exclusively on SynthASpoof and testing on four unseen real-world datasets, where DINOFAS achieves the lowest average HTER of 21.41% and the highest average AUC of 86.14% among the compared methods. Evaluations on OULU-NPU and SiW-Mv2 additionally demonstrate robustness to variations in acquisition conditions, devices, and unseen presentation attacks.

Index Terms—Face anti-spoofing, Domain generalization, Bonafide-centric representation learning, Vision foundation models, Style-content disentanglement.

I. INTRODUCTION

FACE recognition (FR) systems have become an integral component of modern biometric authentication, enabling secure access to mobile devices, financial services, border control, and identity verification. Their remarkable progress over the past decade has largely been driven by advances in deep learning and large-scale training datasets [1]. Despite these advances, FR systems remain vulnerable to presentation attacks (PAs), in which an adversary attempts to impersonate a legitimate user using printed photographs, replayed videos, or three-dimensional masks [2], [3]. Successful presentation attacks can compromise the security of biometric systems, leading to identity theft, unauthorized access, and financial fraud. Consequently, face anti-spoofing (FAS) has become an indispensable component of practical biometric systems.

Deep learning-based FAS methods achieve strong performance when training and testing data originate from the same distribution. However, their performance degrades considerably under cross-dataset evaluation due to variations in acquisition devices, illumination, image quality, presentation attack instruments, and environmental conditions [2], [4]. Consequently, many methods learn dataset-specific spoof artifacts rather than intrinsic liveness characteristics, limiting their ability to generalize to unseen attacks. Moreover, collecting diverse FAS datasets remains expensive and constrained by privacy concerns, making robust representation learning increasingly important [3], [5].

Recent advances in foundation models have opened new opportunities for FAS by providing transferable visual representations learned from large-scale image collections. Recent studies have demonstrated the potential of foundation models and vision-language models for improving FAS robustness, while also highlighting the challenge of adapting these representations to domain-specific liveness cues [6]–[8].

Despite their strong representational capability, existing foundation-model-based approaches primarily optimize binary classification objectives, causing the learned representation to become entangled with attack-specific characteristics and dataset-dependent cues. Furthermore, treating all spoof samples as a single negative class overlooks the substantial intra-class variability of presentation attacks, whereas bonafide faces generally exhibit a more stable distribution across domains.

To address these limitations, we propose DINOFAS, a DINov3-based framework that formulates FAS as a bonafide-centric representation learning problem (Fig. 1). The proposed framework combines parameter-efficient adaptation of DINov3 using LoRA, an attention style-content disentanglement (ASCD) module for suppressing domain-specific appearance variations, and a dual-branch architecture comprising a prototype-based binary branch and a detached attack-semantic branch. Together, these components encourage the backbone to learn robust liveness representations while preventing attack-specific supervision from contaminating the shared feature space.

The main contributions of this work are summarized as follows:

  • A DINov3-based face anti-spoofing framework, termed DINOFAS, that formulates FAS as a bonafide-centric representation learning problem.

  • An attention style-content disentanglement (ASCD) module that suppresses domain-specific appearance variations through gated style-content decomposition and label-aware style borrowing.

S. M. Ibrahim is with Geomexsoft Co. Ltd., Chuncheon-si, Republic of Korea.

M.S. Jabbar and S. Khan are with SDAIA-KFUPM Joint Research Center for Artificial Intelligence (JRC-AI), King Fahd University of Petroleum & Minerals, Dhahran, 31261, Saudi Arabia.

M.S. Ibrahim is with Interdisciplinary Research Center for Intelligent Secure Systems (IRC-ISS), King Fahd University of Petroleum & Minerals, Dhahran, 31261, Saudi Arabia.

S. Khan is also with Department of Computer Engineering, College of Computing and Mathematics, King Fahd University of Petroleum & Minerals, Dhahran, 31261, Saudi Arabia.

Figure

Fig. 1. Conceptual overview of DINOFAS. The proposed framework replaces conventional binary classification with bonafide-centric representation learning, where a prototype-based liveness branch and a detached attack-semantic branch jointly learn robust and complementary representations.

  • A dual-branch learning framework comprising a prototype-based binary branch and a detached attack-semantic branch, enabling complementary representation learning while preventing attack-category supervision from contaminating the shared backbone representation.

  • Comprehensive experimental evaluation on multiple public FAS benchmarks, demonstrating the effectiveness of the proposed framework under cross-dataset, synthetic-to-real, and protocol-based evaluation settings.

References (50)