Exploring Task-Solving Paradigm for Generalized Cross-Domain Face Anti-Spoofing via Reinforcement Fine-Tuning

Fangling Jiang, Qi Li, Weining Wang, Gang Wang, Bing Liu, Zhenan SunarXiv 2025 · DOI

Introduction

Face anti-spoofing (FAS) is a critical component in securing facial recognition systems against presentation attacks, such as high-quality photos, video replays, or 3D masks. The primary challenge in FAS is cross-domain generalization, where models often fail when encountering new environments (covariate shift) or novel attack types (semantic shift). Traditional deep learning models typically rely on Supervised Fine-Tuning (SFT), which tends to result in the memorization of dataset-specific textures rather than learning robust, transferable features.

To address these limitations, this paper introduces a Reinforcement Fine-Tuning (RFT) approach. By shifting the paradigm from pattern memorization to task-solving, the model is trained to explore reasoning policies that generalize more effectively to unseen target domains.

Methodology

The proposed method leverages the Qwen2.5-VL-7B-Instruct Multimodal Large Language Model (MLLM) as a base. The optimization process utilizes Group Relative Policy Optimization (GRPO), a reinforcement learning algorithm that refines the model's policy by comparing multiple generated responses.

Verifiable Reward Functions

A key innovation is the implementation of three verifiable reward functions that guide the model's learning process without the need for human-annotated text explanations:

The RFT architecture and verifiable reward system for guiding policy reasoning.
  1. Format Reward: Ensures the model adheres to a specific output format, including a reasoning block (<think>) and a final classification (<answer>).
  2. Class Consistent Reward ($R_{cls}$): A binary reward assigned for correctly identifying the face as real or a spoof.
  3. Reasoning Consistent Reward ($R_{res}$): This function rewards longer, more detailed reasoning when the final answer is correct and penalizes long reasoning when the answer is incorrect. This encourages the model to develop logical justifications rather than "hallucinating" reasons for errors.

Experimental Results

The model was trained on source domains (CASIA-SURF, CeFa) and evaluated on unseen target domains (HQ-WMCA, SiW-Mv2) featuring diverse attack types like silicone masks and makeup.

Performance Gains

The RFT approach significantly outperformed standard SFT and base MLLM performance. In the "CeFa to HQ-WMCA" cross-domain evaluation, the proposed method achieved a Half Total Error Rate (HTER) of 15.75%, compared to 30.61% for the SFT version. This demonstrates the superior generalization capabilities of the reinforcement learning paradigm.

Interpretability

Beyond performance, the model demonstrated an inherent ability to provide human-readable reasoning for its decisions. By analyzing visual cues such as "unnatural lighting" or "artificial textures," the model offers transparency that is often missing in traditional "black-box" FAS systems. Ablation studies highlighted that the Reasoning Consistent Reward ($R_{res}$) is vital for this success, as its removal increased the HTER to 20.83%.

Conclusion

This research presents a novel RFT framework for face anti-spoofing that prioritizes policy reasoning over data memorization. The results show that guiding MLLMs through verifiable rewards leads to state-of-the-art generalization and interpretable decision-making. Future work will explore parameter-efficient training methods and the integration of additional modalities like infrared and depth data to further enhance security.

Summary updated

BibTeX
@misc{jiang2025exploring,
  author = {Fangling Jiang and Qi Li and Weining Wang and Gang Wang and Bing Liu and Zhenan Sun},
  title = {{Exploring Task-Solving Paradigm for Generalized Cross-Domain Face Anti-Spoofing via Reinforcement Fine-Tuning}},
  year = {2025},
  eprint = {2506.21895},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2506.21895},
}
Figure