Skip to main content
QUICK REVIEW

[Paper Review] Rethinking Domain Generalization for Face Anti-spoofing: Separability and Alignment

Yiyou Sun, Yaojie Liu|arXiv (Cornell University)|Mar 23, 2023
Biometric Identification and SecurityComputer Science3 citations
TL;DR

This paper proposes SA-FAS, a novel face anti-spoofing framework that enhances cross-domain generalization by promoting feature separability across domains and aligning live-to-spoof transitions across domains, rather than enforcing domain-invariant features. It formulates the problem via Invariant Risk Minimization and uses Supervised Contrastive Learning and a Projected Gradient-based IRM strategy, achieving state-of-the-art performance on challenging cross-domain FAS benchmarks.

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.

Motivation & Objective

  • To address the generalization failure of existing face anti-spoofing models under domain gaps such as resolution, blur, and sensor variations.
  • To challenge the assumption that domain-invariant features are necessary for robust FAS generalization.
  • To improve model generalization by explicitly preserving domain-specific signals while ensuring consistent decision boundaries across domains.
  • To develop a method that maintains domain signal while aligning spoofing transitions across environments.
  • To achieve state-of-the-art performance on cross-domain face anti-spoofing benchmarks through a new invariance-based learning framework.

Proposed method

  • Formulates the FAS problem as an Invariant Risk Minimization (IRM) task to learn a domain-variant feature representation with a domain-invariant classifier.
  • Employs Supervised Contrastive Learning (SupCon) to enforce feature separability by clustering samples of the same domain and label.
  • Introduces a novel Projected Gradient optimization strategy (PG-IRM) to align live-to-spoof transition directions across domains.
  • Uses a two-stage training process: first, train domain-specific hyperplanes via standard optimization; second, gradually align them using a weighted average with a learnable parameter α′.
  • Applies normalization to ensure stable and comparable feature representations across domains.
  • Employs a fair evaluation strategy using the average performance over the last 10 training epochs to avoid overfitting to early, unstable snapshots.

Experimental results

Research questions

  • RQ1Does enforcing domain-invariant features truly improve cross-domain face anti-spoofing generalization?
  • RQ2Can preserving domain-specific signals while aligning live-to-spoof transitions lead to better generalization than domain-agnostic feature learning?
  • RQ3Is the live-to-spoof transition direction consistent across different domains, and can it be effectively regularized?
  • RQ4How sensitive is the proposed method to hyperparameter choices such as learning rate, alignment start epoch, and alignment strength?
  • RQ5Can the proposed SA-FAS framework outperform existing domain generalization methods on standard cross-domain FAS benchmarks?

Key findings

  • The proposed SA-FAS framework achieves state-of-the-art performance on multiple challenging cross-domain face anti-spoofing benchmarks, including CASIA, Replay, and OULU datasets.
  • Empirical results show that domain-specific signals persist in the feature space even after domain-invariant training, undermining generalization.
  • The method successfully aligns live-to-spoof transition directions across domains, as confirmed by convergence of domain-specific classifiers to a shared boundary with cosine similarity approaching 1.
  • Sensitivity analysis reveals that the method is robust to hyperparameter variations, particularly when α is within a reasonable range, and requires minimal tuning.
  • The fair evaluation strategy—averaging performance over the last 10 epochs—leads to more stable and reliable model comparison than relying on the best single epoch.
  • The framework outperforms prior methods such as SSDG-R and other domain-invariant baselines, demonstrating the superiority of explicit domain signal retention with alignment.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.