Abstract
Learning generalized face anti-spoofing (FAS) models against presentation attacks is essential for the security of face recognition systems. Previous FAS methods usually encourage models to extract discriminative features, of which the distances within the same class (bonafide or attack) are pushed close while those between bonafide and attack are pulled away. However, these methods are designed based on Euclidean distance, which lacks generalization ability for unseen attack detection due to poor hierarchy embedding ability. According to the evidence that different spoofing attacks are intrinsically hierarchical, we propose to learn richer hierarchical and discriminative spoofing cues in hyperbolic space. Specifically, for unimodal FAS learning, the feature embeddings are projected into the Poincaré ball, and then the hyperbolic binary logistic regression layer is cascaded for classification. To further improve generalization, we conduct hyperbolic contrastive learning for the bonafide only while relaxing the constraints on diverse spoofing attacks. To alleviate the vanishing gradient problem in hyperbolic space, a new feature clipping method is proposed to enhance the training stability of hyperbolic models. Besides, we further design a multimodal FAS framework with Euclidean multimodal feature decomposition and hyperbolic multimodal feature fusion & classification. Extensive experiments on three benchmark datasets (i.e., WMCA, PADISI-Face, and SiW-M) with diverse attack types demonstrate that the proposed method can bring significant improvement compared to the Euclidean baselines on unseen attack detection.
Introduction
Face recognition systems are increasingly ubiquitous, yet they remain vulnerable to "presentation attacks"—spoofs ranging from simple printed photos to sophisticated 3D silicone masks. A primary challenge in Face Anti-Spoofing (FAS) is generalization: models often perform well on known attacks but fail when encountering "unseen" spoofing methods. Traditional FAS models typically treat this as a flat binary classification problem in Euclidean space, attempting to cluster all real faces together and push all attacks away. However, this approach ignores the intrinsic hierarchical relationships between different types of attacks.
The Geometry of Deception
Spoofing attacks are not a monolith; they are naturally hierarchical. For instance, a 2D print attack and a 3D mask attack are fundamentally different in shape, yet they might share common materials like paper. Euclidean space, being "flat," struggles to capture these tree-like relationships efficiently, often leading to overfitting on specific training samples.
To address this, the researchers propose projecting facial features into the Poincaré ball, a model of hyperbolic space. Because the volume of hyperbolic space grows exponentially with its radius, it is mathematically ideal for embedding hierarchical data. By using a geometry that "expects" hierarchy, the model learns more generalized spoofing cues rather than just memorizing pixel patterns.
Proposed Methodology
The framework introduces several key innovations to leverage hyperbolic geometry for FAS:
- Hyperbolic Embedding & Classification: Facial features are projected into hyperbolic space via exponential mapping. A specialized Hyperbolic Binary Logistic Regression (Hyp-BLR) layer is then used for classification to maintain geometric consistency.
- Hyperbolic Contrastive Learning (HCL): To boost generalization, the authors designed a loss function that tightly clusters "bonafide" (real) samples but remains relaxed about the distances between different attack types. This acknowledges that while real faces share high similarity, spoofs can be infinitely diverse.
- Feature Clipping: Training in hyperbolic space can be unstable due to vanishing gradients near the Poincaré ball's boundary. A novel feature clipping strategy ensures embeddings stay within a stable radius.
For systems using multiple sensors (e.g., RGB and Infrared), the authors also developed a multimodal framework that decomposes features in Euclidean space before fusing them in hyperbolic space for final classification.
Experimental Results
The model was evaluated on several rigorous benchmarks, including WMCA, PADISI-Face, and SiW-M, which feature complex attacks like makeup and silicone masks. The hyperbolic approach consistently outperformed standard Euclidean baselines, particularly in unseen attack detection:
- WMCA Dataset: The proposed model reduced the Average Classification Error Rate (ACER) from 14.83% (Euclidean) to 11.52%.
- PADISI-Face Dataset: The model achieved an ACER of 4.25%, a significant improvement over the baseline's 6.20%.
- Cross-Dataset Generalization: In tests where the model was trained on one dataset and tested on another, the hyperbolic models showed significantly higher Area Under the Curve (AUC) scores, demonstrating superior robustness to domain shifts.
Conclusion
By moving from flat Euclidean geometry to the hierarchical richness of hyperbolic space, this research provides a more effective mathematical map for detecting facial deception. While hyperbolic operations are currently more computationally demanding, the significant gains in generalization—especially against novel, unseen attacks—mark a vital step forward in securing biometric systems. Future work will likely focus on optimizing these operations for real-time performance on edge devices.
Reference: Han, S., et al. (2023). Hyperbolic Face Anti-Spoofing. arXiv:2308.09107v1 [cs.CV].
Summary updated