DADM: Dual Alignment of Domain and Modality for Face Anti-spoofing

Jingyi Yang, Xun Lin, Zitong Yu, Liepiao Zhang, Xin Liu, Hui Li, Xiaochen Yuan, Xiaochun Cao · DOI

TL;DR

This paper introduces DADM, a novel multi-modal face anti-spoofing (FAS) framework that tackles the critical challenges of modality misalignment in domain generalization scenarios. By adaptively aligning modalities using mutual information and jointly optimizing domain hyperplanes and modality angle margins, DADM achieves state-of-the-art performance, making face recognition systems more robust against sophisticated spoofing attacks across diverse conditions.

What Problem Does This Paper Address?

Face recognition (FR) systems are increasingly vulnerable to sophisticated presentation attacks (e.g., 3D masks, video replays). Multi-modal FAS, which leverages data from multiple sensors like RGB, Depth, and Infrared, offers a promising solution by capturing more intrinsic spoofing traces. However, a significant challenge arises from misalignment:

  1. Intra-domain modality misalignment: The effectiveness of each sensor modality can vary drastically depending on the specific attack. For instance, Depth sensors might be less effective against 3D mask attacks. Simple fusion strategies can fail to account for these varying strengths and weaknesses.
  2. Inter-domain modality misalignment: When combining multiple modalities, especially in domain generalization (DG) settings where the model must perform well on unseen data distributions, the introduction of additional modalities can exacerbate existing domain shifts, potentially negating the benefits of multi-modal fusion.

The paper aims to address these misalignments to build more robust and generalizable multi-modal FAS systems.

Methods

The proposed DADM framework introduces two key novel components:

  • Mutual Information Mask (MIM) Module: To combat intra-domain modality misalignment, MIM leverages mutual information maximization. It adaptively learns to emphasize informative regions within reliable modalities and suppress unreliable ones. The intuition is that observing one modality can reduce uncertainty about others, allowing the model to focus on the most discriminative cues for a given attack. This is implemented by generating masks that reweight feature maps.
  • Dual Alignment Optimization Strategy: To address inter-domain modality misalignment, DADM employs a dual alignment approach. This involves:
  • Domain Alignment: Aligning the classification hyperplanes across different domains to ensure consistent decision boundaries. This is achieved using a Projected Gradient IRM (PG-IRM) algorithm.
  • Modality Alignment: Constraining the angle margins of modalities within each domain to be consistent. This helps to mitigate domain shifts that can arise from differing modality representations and ensures that the relative orientation between modalities is stable across domains.

The overall architecture builds upon Vision Transformers (ViT) and incorporates CDC-Adapters for fine-grained local feature integration.

Datasets

The authors evaluate their method on four widely-used multi-modal datasets:

  • CASIA-CeFA (C)
  • PADISI-USC (P)
  • CASIA-SURF (S)
  • WMCA (W)

These datasets each comprise RGB, Depth, and Infrared modalities. The experiments are conducted across four challenging protocols:

  1. Fixed-Modal Scenarios: Standard cross-dataset testing.
  2. Missing-Modal Scenarios: Evaluating performance when one or more modalities are absent during testing.
  3. Flexible-Modal Scenarios: Modalities can be missing during both training and testing.
  4. Limited Source Domains: Testing generalization with fewer source domains.

Key Insights and Ideas

  • Modality importance is dynamic: The paper highlights that no single modality is universally superior. Their effectiveness is highly dependent on the specific attack, making adaptive weighting crucial.
  • Mutual information as a guide for alignment: Using mutual information to learn masks allows the model to dynamically focus on the most informative parts of each modality, effectively suppressing noise or irrelevant features.
  • Dual alignment is key for robust generalization: Simply fusing modalities or applying standard domain generalization techniques isn't enough. Aligning both the overall domain decision boundaries and the relative angles between modalities is essential for robust performance across diverse and unseen conditions.
  • CDC-Adapters offer improved robustness: The use of Central Difference Convolutional (CDC) adapters, compared to vanilla convolutional adapters, leads to better performance and robustness, likely due to their ability to capture both intensity and gradient information.

Key Results

DADM achieves state-of-the-art performance across the evaluated protocols:

  • Protocol 1 (Fixed-Modal): DADM shows significant improvements over existing methods, with an average HTER improvement of 15.52% and AUC improvement of 15.74% compared to SSAN, and 11.82% HTER and 11.88% AUC over VP-FAS. It also outperforms the previous SOTA MMDG by a notable margin.
  • Protocol 2 (Missing-Modal): DADM outperforms all other methods when modalities are missing during testing, demonstrating its robustness to incomplete sensor data.
  • Protocol 3 (Flexible-Modal): DADM achieves an average HTER improvement of 9.18% and AUC improvement of 11.22% compared to ViT+AMA in scenarios where modalities can be missing during both training and testing.
  • Protocol 4 (Limited Source Domains): DADM maintains robust performance even with limited source domains, showcasing its superior generalization capabilities.

Limitations and Future Work

  • Computational Cost: While achieving SOTA, the complexity of multi-modal fusion and advanced alignment strategies can increase computational demands.
  • Hyperparameter Tuning: The paper mentions empirical studies for hyperparameter tuning (e.g., coefficients for loss terms, temperature coefficients), suggesting that optimal performance might require careful tuning.
  • Future Work: The authors implicitly suggest that further exploration into more efficient alignment strategies and potentially novel adapter designs could lead to even greater improvements. The visualization of attention maps also suggests that understanding how different modalities contribute to detecting specific attack types could be a fruitful area for future research.

Summary updated

Abstract

With the availability of diverse sensor modalities (i.e., RGB, Depth, Infrared) and the success of multi-modal learning, multi-modal face anti-spoofing (FAS) has emerged as a prominent research focus. The intuition behind it is that leveraging multiple modalities can uncover more intrinsic spoofing traces. However, this approach presents more risk of misalignment. We identify two main types of misalignment: (1) \textbf{Intra-domain modality misalignment}, where the importance of each modality varies across different attacks. For instance, certain modalities (e.g., Depth) may be non-defensive against specific attacks (e.g., 3D mask), indicating that each modality has unique strengths and weaknesses in countering particular attacks. Consequently, simple fusion strategies may fall short. (2) \textbf{Inter-domain modality misalignment}, where the introduction of additional modalities exacerbates domain shifts, potentially overshadowing the benefits of complementary fusion. To tackle (1), we propose a alignment module between modalities based on mutual information, which adaptively enhances favorable modalities while suppressing unfavorable ones. To address (2), we employ a dual alignment optimization method that aligns both sub-domain hyperplanes and modality angle margins, thereby mitigating domain gaps. Our method, dubbed \textbf{D}ual \textbf{A}lignment of \textbf{D}omain and \textbf{M}odality (DADM), achieves state-of-the-art performance in extensive experiments across four challenging protocols demonstrating its robustness in multi-modal domain generalization scenarios. The codes will be released soon.
BibTeX
@inproceedings{yang2025dadm,
  author = {Jingyi Yang and Xun Lin and Zitong Yu and Liepiao Zhang and Xin Liu and Hui Li and Xiaochen Yuan and Xiaochun Cao},
  title = {{DADM: Dual Alignment of Domain and Modality for Face Anti-spoofing}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2025},
}
Figure