Rethinking Domain Generalization for Face Anti-spoofing: Separability and Alignment

Yiyou Sun, Yaojie Liu, Xiaoming Liu, Yixuan Li, Wen-Sheng Chu
2/14/2026

No official code found. Best implementation: sunyiyou/SAFAS (103 stars, last commit 2023-04-12).

Abstract

This work studies the generalization issue of face anti-spoofing (FAS) models on domain gaps, such as image resolution, blurriness and sensor variations. Most prior works regard domain-specific signals as a negative impact, and apply metric learning or adversarial losses to remove them from feature representation. Though learning a domain-invariant feature space is viable for the training data, we show that the feature shift still exists in an unseen test domain, which backfires on the generalizability of the classifier. In this work, instead of constructing a domain-invariant feature space, we encourage domain separability while aligning the live-to-spoof transition (i.e., the trajectory from live to spoof) to be the same for all domains. We formulate this FAS strategy of separability and alignment (SA-FAS) as a problem of invariant risk minimization (IRM), and learn domain-variant feature representation but domain-invariant classifier. We demonstrate the effectiveness of SA-FAS on challenging cross-domain FAS datasets and establish state-of-the-art performance. Code is available at https://github.com/sunyiyou/SAFAS.

View on arXivView PDF

Code Implementations(1)

sunyiyou/SAFASCommunity100%

Code for CVPR 2023 paper "Rethinking Domain Generalization for Face Anti-spoofing: Separability and Alignment"

10311PythonMar 20, 20233 years ago

Similar Papers

Cite this paper

@article{sun2026rethinking,
  title  = {Rethinking Domain Generalization for Face Anti-spoofing: Separability and Alignment},
  author = {Yiyou Sun and Yaojie Liu and Xiaoming Liu and Yixuan Li and Wen-Sheng Chu},
  year   = {2026},
  eprint = {2303.13662},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/pdf/2303.13662},
  journal = {CVPR 2023 2023}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2303.13662.svg)](https://codeofpaper.com/paper/2303.13662)

Discussion