Suppress and Rebalance: Towards Generalized Multi-Modal Face Anti-Spoofing
- Publication
- CVPR 2024Conference
- First submitted to arXiv
- arXiv:2402.19298
Cite this paper · BibTeX
The citation identifies the linked source version. It cites the original paper and its authors.
@misc{faceantispoofingmmdg2024,
title = {{Suppress and Rebalance: Towards Generalized Multi-Modal Face Anti-Spoofing}},
author = {Xun Lin and Shuai Wang and Rizhao Cai and Yizhong Liu and Ying Fu and Wenzhong Tang and Zitong Yu and Alex Kot},
year = {2024},
eprint = {2402.19298},
archivePrefix = {arXiv},
url = {https://arxiv.org/abs/2402.19298}
}
At the time this paper was published, the field of computer vision had already embraced multi-modal architectures.
However, the problem of FAS (Face Anti-Spoofing) still exists, and cross-domain generalization remains a challenge.
Problem Definition
RGB models are fast and constructing datasets is relatively easy. Other modalities also provide valuable information, such as depth maps that reveal 3D structures and infrared that can sense temperature or material reflection, which are extremely useful for determining "whether this face is real or fake."
But why is multi-modality rarely used? Or when it is used, why does it often lead to worse generalization, making it almost impossible to find practical applications?
The authors pinpoint two key issues:
-
Modality Unreliability
A change in sensor or lighting conditions can drastically alter the domain. Particularly with infrared (IR) and depth, the information that should reinforce the model can instead mislead it.
When you use cross-modal fusion to combine all the modalities, the result is mixed—sometimes helpful, other times detrimental, as they drag each other down.
-
Modality Imbalance
During training, the model automatically selects the "fastest learning modality," which is usually RGB.
Information from other modalities does not get properly learned; it only appears useful on the surface, but the model hasn't learned it effectively. Once the target domain is encountered, RGB no longer works, and the slower modalities haven’t been properly trained either, causing the model to fail.
Thus, the difficulty in multi-modal FAS doesn’t just lie in "multi," but in the fact that these modalities are inherently unequal and unreliable.
Therefore, the authors propose:
We need to simultaneously address "unreliable signal sources" and train a "non-biased model."
This is the core of the problem definition in this paper.
Solution
To solve the problem of multi-modal FAS, the authors propose the MMDG (Multi-Modal Domain Generalized) framework, which emphasizes two main functionalities:
- Suppress (Suppress unreliable modalities): During cross-modal fusion, unreliable modalities are penalized to reduce their influence.
- Rebalance (Balance the learning speed of modalities): During training, gradients between modalities are adjusted to help each modality learn.
Looking at the architecture diagram, each modality (RGB, depth, infrared) has its own ViT backbone, connected to its own U-Adapter for cross-modal fusion.
During training, the ViT backbones stay frozen, while the U-Adapters and classifier are trainable. ReGrad adjusts the cross-modal gradients of the U-Adapters to reduce the tendency of a faster modality to dominate training.
U-Adapter
As shown in the diagram above, the U-Adapter is the core module of this method, attached to the MLP output path of a ViT block. The ViT weights remain frozen, while the adapter and final classifier participate in training. Its task is:
- Detect the "unreliable" tokens in each modality (using the Uncertainty Estimation Module, UEM);
- During cross-modal fusion, reduce the influence of these unreliable tokens so their information is less likely to mislead other modalities.
Uncertainty Estimation Module
Referring to the diagram above (b), in order to identify unreliable regions, the authors introduce the Uncertainty Estimation Module:
- Uncertainty Estimation Module (UEM).
After Multi-Head Self-Attention, this module repeatedly samples with Monte Carlo Dropout (MCD) and uses the variance of each token's features as an uncertainty estimate.
Let represent the MCD sampling results, and the uncertainty estimation is:
Cross-Modal Fusion Mechanism
Referring to the diagram (c) above, the U-Adapter doesn't just perform fusion but selectively fuses.
It suppresses "suspicious tokens" from other modalities to prevent the spread of misleading information.
For example, in the case of the depth modality, the fusion process of its U-Adapter is as follows:
- The query comes from another modality (e.g., RGB) denoted as ,
- The key and value come from its own modality, ,
- The fusion process is adjusted based on the uncertainty from the RGB modality, .
The formula for this is:
Where:
- , , are the query, key, and value linear projections.
- is the uncertainty penalty weight; the all-ones row vector expands the dimension, and a more uncertain query token has less influence.
- denotes the Hadamard product (element-wise multiplication).
- stands for Central Difference Convolution, used to enhance local differences between tokens, compensating for the lack of neighborhood sensitivity in ViT.
The outputs combine the permitted cross-modal fusions with each ViT block's own residual paths. RGB receives two such fusions; depth and infrared receive one each:
Where:
- : Output of the later LayerNorm in the ViT block for modality ,
- : Output of the MLP in the ViT block for modality ,
- : Uncertainty estimation for modality .
ReGrad
The goal of ReGrad is simple: Make slower modalities learn more, and faster modalities learn less.
In practice, the gradients of each modality may not be consistent and could even conflict with each other.
So the authors implemented this:
Based on the speed of each modality and whether the gradients conflict, we decide which part of the gradient to retain, which to suppress, and apply uncertainty penalties to control the influence.
Here are the handling methods for four different situations, corresponding to (b1), (b2), (c1), (c2) in Figure 4:
Where:
- , : Backpropagation gradient vectors for modalities and ,
- , : Batch means of the class-token uncertainty from the final ViT block for each modality,
- : Uncertainty penalty function, defined as , which suppresses the gradient influence of unstable modalities.
While the above formulas may seem complex, they are actually easy to understand:
- If is slower and the gradients do not conflict, retain the part of 's gradient in 's direction and discard its orthogonal component. If they conflict, discard the component of 's gradient that opposes .
- If is faster, the formula switches their roles; we cannot say that the slower modality always receives the faster one's gradient.
- The uncertainty penalty reduces the influence of the retained component according to the corresponding modality's uncertainty. The paper applies ReGrad only to gradients from the cross-entropy loss; SSP-loss gradients are not modulated.
SSP Loss
In addition to gradient adjustment, MMDG also introduces a loss that helps with the cohesion of each modality:
- Single-Side Prototypical Loss (SSP).
First, the authors treat all live samples from the source domains as one group, while the spoof samples from each source domain form a separate group. For each modality and group , the prototype is:
Next, the SSP Loss is defined as:
This loss pulls a sample toward the prototype of its own live/spoof group and away from other groups. The authors compare the SSP losses of the modalities to judge their convergence speeds, treating the lower loss as faster.
Overall, the complete loss function is:
Where is the cross-entropy loss for the classification task, and is used to adjust the impact of the SSP loss.
Discussion
Comparison with Other Methods
The horizontal axis in the table represents the test datasets (treated as unseen domains), and the vertical axis represents different methods, including:
- Traditional Domain Generalization methods (SSDG, SSAN, IADG...),
- Multi-modal methods (CMFL, MM-CDCN),
- Flexible-modal methods that can handle missing modalities (ViT+AMA, VP-FAS).
The test methods train on three datasets, testing each by leaving one out each time.
In Table 1, MMDG has the best HTER and AUC among the listed methods in all four cross-dataset tests. Compared with the flexible-modal method VP-FAS, its average HTER is 19.25% versus 25.45%, and its average AUC is 87.96% versus 81.08%: differences of 6.20 and 6.88 percentage points, respectively.
This is a clear signal:
Fusion quality depends on how modalities are combined. Only a fusion strategy that "knows which information to trust and which to suppress" allows the model to survive in the unseen world.
Ablation Studies
To demonstrate the contribution of each design component, the authors conducted several ablation experiments.
For the DG and multi-modal methods tested by the authors, switching to ViT + U-Adapter improves the reported average results:
- Comparison methods such as SSDG, SSAN, and IADG improve in the paper's Figure 5 comparison after the switch to ViT + U-Adapter. These methods did not all originally use ViT backbones.
- ViT + U-Adapter with only Cross Entropy achieves average HTER of 27.38% and AUC of 78.88% in Table 4. That is better than the ViT row without the adapter, though still behind 19.48% and 87.48% with full ReGrad.
Adding ReGrad improves both mean HTER and AUC further in Table 4. This suggests:
- U-Adapter helps the methods tested in Figure 5; the experiment does not cover every ViT architecture.
- It does more than fuse information: it reduces the weight of some information according to uncertainty. The observed benefit is limited to the tested protocols.
Finally, the authors also tested two ReGrad variants, activating it only for conflicting or only for non-conflicting gradients. Both trail the full version:
- Conflict-only ReGrad records 21.91% HTER and 85.65% AUC; non-conflict-only records 21.23% and 85.51%. Both beat no ReGrad at 27.38% and 78.88%, but trail full ReGrad at 19.48% and 87.48%.
- Under Table 4's conditions, this supports handling both gradient relationships. The table alone cannot show that learning speed is the sole key to every domain-generalization problem.
Effect of Uncertainty Mechanism
The authors isolated the uncertainty components in the two modules (U-Adapter and ReGrad) to test:
- Does the uncertainty estimation mechanism help?
The results are clear:
- If the uncertainty control in U-Adapter is removed, performance decreases.
- If the uncertainty weight in ReGrad is removed, performance also drops.
- With both mechanisms, average HTER of 19.48% and AUC of 87.48% are best in the table. Relative to uncertainty only in U-Adapter, HTER improves by 3.27 percentage points and AUC by 2.64 percentage points; both differences are not "over 3%."
These ablations support using uncertainty weights under the tested protocol. They measure classification results, not whether cross-modal information is completely free from interference.
As shown below, the depth and infrared examples contain regions with higher estimated uncertainty. The attention maps may still focus on those regions, while the U-Adapter reduces their weight during cross-modal fusion.
Conclusion
People might think the future of multi-modal systems will be an "all-inclusive" enhanced model.
Not enough RGB? Add IR; IR not enough? Add Depth; eventually, add a CLIP-style fusion! It seems like the more modalities, the safer.
But this paper tells us: When domain shift occurs, whether the model can correctly judge "which information is trustworthy and which should be questioned" is the key to its ability to generalize.
The value of MMDG lies in its integration of the concept of "uncertainty" into the model, and further designing a judgment and action process based on gradients and fusion mechanisms to determine "who to trust and who to suppress."