Domain-generalizable Face Anti-Spoofing with Patch-based Multi-tasking and Artifact Pattern Conversion

Seungjin Jung, Yonghyun Jeong, Minha Kim, Jimin Min, Youngjoon Yoo, Jongwon ChoiarXiv 2026 · DOI

TL;DR

This paper introduces a novel framework for domain-generalizable Face Anti-Spoofing (FAS) that combines a Pattern Conversion GAN (PCGAN) with a Patch-based Multi-tasking Network (PMN). By explicitly disentangling and manipulating spoof artifacts from facial content, the method generates highly diverse synthetic training data and significantly improves robustness against unseen domains and partial spoofing attacks.

What Problem Does This Paper Address?

Face recognition systems are widely deployed but remain highly vulnerable to presentation attacks, such as printed photos or replayed videos. While existing Face Anti-Spoofing (FAS) models perform well in controlled environments, their performance degrades drastically when exposed to unseen capturing conditions (e.g., new camera brands, irregular lighting) or novel spoofing techniques.

The core issue is a lack of diversity in existing training datasets, which typically contain fewer than 100 identities. Furthermore, models often overfit to global facial structures rather than learning the actual physical artifacts of a spoof, making them blind to "partial attacks" where only a portion of the face is compromised.

Methods

The authors tackle these challenges using a two-pronged framework:

  1. Pattern Conversion GAN (PCGAN): Built on a swapping autoencoder architecture, PCGAN explicitly disentangles an input image into two separate latent vectors: artifact patterns ($z_{pat}$) and facial content ($z_{con}$). Unlike standard encoders that aggressively downsample images—subsequently destroying fine-grained spoofing textures—PCGAN minimizes downsampling to preserve high-frequency details like moiré patterns or halftone dots. A specialized blurred reconstruction loss ensures that facial structure remains intact during artifact manipulation, allowing the model to cleanly remove artifacts from spoofs or inject them into live images.
  2. Patch-based Multi-tasking Network (PMN): Using a vision-language CLIP backbone, the detector is trained jointly on both full face-cropped images and randomly cropped local patches. This patch-level supervision forces the network to catch localized spoofing cues and prevents it from overfitting to identity-specific facial features. Center loss is also integrated to promote feature compactness across different domains.
Figure 1: Overall framework. (a) shows the disentanglement and conversion of artifact

Datasets

The framework was evaluated on several widely recognized benchmarks:

  • Small-scale DG-FAS Benchmarks: OULU-NPU (O), MSU-MFSD (M), Idiap REPLAY-ATTACK (I), and CASIA-FASD (C).
  • Large-scale Cross-Domain/Cross-Ethnicity Benchmarks (CSW): CASIA-SURF CeFA (C), CASIA-SURF (S), and WMCA (W).

Key Insights and Ideas

  • Asymmetric Difficulty in Synthesis: The authors discovered that removing artifacts from a spoof image to create a "synthetic live" image yields much better training stability than injecting artifacts into a live image. This suggests that removing high-frequency noise preserves semantic facial integrity better than trying to artificially simulate complex physical spoofing mediums.
  • Less Downsampling is More: Traditional computer vision backbones downsample images rapidly to extract high-level semantics. However, for FAS, the critical indicators of fraud exist in the highest frequencies (e.g., screen pixel grids). Keeping the spatial resolution high in the early layers of the generator is vital.
  • Identity Overfitting Mitigation: By forcing the CLIP-based detector to look at random patches (ranging from 20% to 100% of the face size), the model is prevented from using facial geometry as a shortcut for liveness detection.

Key Results

  • State-of-the-Art Generalization: On the classic four-domain benchmark, the proposed method achieved a top-tier average ACER of 2.79% and an AUC of 99.22%, outperforming competitive baselines—even those trained with massive external datasets like CelebA-Spoof.
  • Superior Learning Stability: When evaluating performance averaged over the final 10 epochs (to test convergence stability), the model consistently maintained an ACER below 10% across all cross-domain protocols.
  • Zero Inference Overhead: Because the PCGAN generator is used exclusively during the training phase for data augmentation, it is completely discarded at inference time. The runtime cost remains identical to a standard CLIP detector backbone, making it highly practical for real-world deployment.

Limitations and Future Work

While PCGAN successfully enriches data diversity, the variety of its synthesized images is ultimately bounded by the artifact types present in the initial training sets. Additionally, the generator is designed for offline data augmentation rather than real-time synthesis.

The authors note that future work will focus on exploring advanced generative models (such as diffusion models) for richer artifact generation, finer-grained spatial modeling, and expanding the framework to handle video-based or multimodal FAS systems.

Summary updated

BibTeX
@misc{jung2026domain,
  author = {Seungjin Jung and Yonghyun Jeong and Minha Kim and Jimin Min and Youngjoon Yoo and Jongwon Choi},
  title = {{Domain-generalizable Face Anti-Spoofing with Patch-based Multi-tasking and Artifact Pattern Conversion}},
  year = {2026},
  eprint = {2604.09018},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2604.09018},
}
Figure