NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

MCAE: Masked Contrastive Autoencoder for Face Anti-Spoofing

Tianyi ZhengarXiv 2023

TL;DR

This paper introduces EnfoMax, a novel framework for domain-generalized face anti-spoofing (FAS) that leverages information theory to learn robust, domain-invariant features. By maximizing domain entropy and mutual information of live samples, EnfoMax achieves state-of-the-art performance on cross-domain FAS tasks without relying on unstable adversarial training.

What Problem Does This Paper Address?

Face anti-spoofing (FAS) systems are crucial for securing facial recognition technologies against presentation attacks (e.g., photos, videos). While current FAS methods perform well within a specific domain (e.g., trained on one dataset and tested on a similar one), they often fail dramatically when encountering unseen domains. This "domain generalization" challenge is critical for real-world deployment. Existing domain generalization approaches for FAS often use heuristic objectives without a strong theoretical foundation, leading to instability, particularly with adversarial training methods. Furthermore, the very definition of "domain-invariant features" in this context has been unclear, making it difficult to design principled training strategies.

Methods

EnfoMax tackles the domain generalization problem in FAS by employing an information-theoretic approach. Instead of relying on adversarial training to remove domain-specific information, EnfoMax uses:

  • Domain Entropy Maximization: This technique aims to maximize the entropy of the domain classifier's output for live samples. The intuition is that if a domain classifier cannot confidently predict the domain of a live sample, the features are likely domain-invariant. This is achieved through a dedicated domain classification module.
  • Mutual Information Maximization: This component focuses on maximizing the mutual information between the extracted features and the live/spoof labels. This ensures that the features retain crucial task-relevant information for distinguishing live faces from spoofs. The paper proposes a reconstruction task (using a Masked Image Modeling approach) as a proxy for maximizing this mutual information, providing a theoretical lower bound.
  • Theoretical Guarantees: The framework is grounded in information theory, specifically by analyzing the domain gap between live samples in seen and unseen domains. This analysis provides theoretical justification for the proposed optimization objectives.

The EnfoMax framework combines these components into a unified objective function, aiming to learn features that are both informative for the FAS task and invariant across different domains.

Datasets

The paper evaluates EnfoMax on four widely-used public datasets for cross-dataset testing:

  • CASIA-MFSD (C)
  • Replay-Attack (I)
  • MSU-MFSD (M)
  • OULU-NPU (O)

The experiments are conducted using a Leave-One-Out (LOO) cross-domain setting, where the model is trained on three datasets and tested on the remaining one. This rigorous evaluation strategy assesses the model's generalization capabilities across diverse and challenging domain shifts.

Key Insights and Ideas

  • Information Theory as a Foundation: The paper demonstrates that information theory (domain entropy and mutual information) provides a robust theoretical framework for understanding and addressing domain generalization in FAS, moving beyond heuristic approaches.
  • Domain Entropy for Invariance: Using domain entropy to measure and minimize domain-specific information is a novel and effective way to achieve domain invariance, offering better stability than adversarial methods.
  • Reconstruction as a Proxy for Mutual Information: Employing a masked image modeling (reconstruction) task as a proxy for maximizing mutual information offers a practical and theoretically grounded approach to learning task-relevant features.
  • Synergy of Components: The combination of domain entropy maximization and mutual information maximization leads to significant performance gains, highlighting the complementary nature of these information-theoretic objectives.

Key Results

  • State-of-the-Art Performance: EnfoMax consistently outperforms existing state-of-the-art methods on extensive cross-dataset FAS benchmarks, achieving the best overall performance in most tested protocols.
  • Improved Generalization: The framework shows strong generalization capabilities, even in limited source domain scenarios (e.g., training on only two datasets).
  • Enhanced Stability: By avoiding adversarial training, EnfoMax exhibits better training stability, as evidenced by its consistent performance even when models converge.
  • Effectiveness of Components: Ablation studies confirm the significant contribution of both the supervised contrastive module (for mutual information) and the domain classification module (for domain entropy) to the overall performance.

Limitations and Future Work

  • Proxy Task Choice: While the reconstruction task is shown to be effective, the paper acknowledges that other proxy tasks for estimating mutual information exist and could potentially be explored to further enhance performance.
  • Theoretical Analysis Independence: The authors note that their information-theoretic analysis is independent of the specific proxy tasks employed, suggesting that future work could focus on designing additional or improved proxy tasks to further boost performance.
  • Backbone Agnosticism: The paper demonstrates EnfoMax's applicability across different Vision Transformer (ViT) backbones, indicating its potential for integration with various architectures. Future work could explore its effectiveness with other backbone types.

Summary updated

BibTeX
@misc{zheng2023mcae,
  author = {Tianyi Zheng},
  title = {{MCAE: Masked Contrastive Autoencoder for Face Anti-Spoofing}},
  year = {2023},
  eprint = {2302.08674},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2302.08674},
}
Figure