Supervised Contrastive Learning for Snapshot Spectral Imaging Face Anti-Spoofing

Chuanbiao Song, Yan Hong, Jun Lan, Huijia Zhu, Weiqiang Wang, Jianfu Zhang

Abstract

Face anti-spoofing (FAS) is critical for secure biometric systems, yet traditional RGB-based methods struggle against sophisticated 3D masks. This paper presents a novel approach using Snapshot Spectral Imaging (SSI) and a "Real-face Oriented Reweighting" (ROR) strategy. By leveraging 30 spectral bands and a supervised contrastive learning framework with Cross Batch Memory (XBM), the proposed system achieved a perfect 0.0000% error rate in the CVPR 2024 Chalearn Challenge. Our method effectively mitigates identity bias and handles significant dataset imbalances, setting a new benchmark for spectral FAS.

Introduction: The Challenge of Material Discrimination

Face recognition systems are increasingly targeted by presentation attacks using high-quality silicone or latex masks. Standard RGB cameras often fail to distinguish these materials from human skin due to limited spectral information. Snapshot Spectral Imaging (SSI) offers a robust alternative by capturing a "material signature" across dozens of spectral bands, providing information far beyond the visible spectrum.

However, SSI-based FAS faces two primary challenges: severe dataset imbalance and identity bias. Models often learn to recognize the individual's identity rather than the material of the face, especially when certain identities are overrepresented in spoofing samples. If a model associates a specific face with a "fake" label, it may fail to generalize to new users.

Methodology: Re-balanced Supervised Contrastive Learning

To address these hurdles, researchers from Ant Group and Shanghai Jiao Tong University proposed a multi-faceted pipeline designed to decouple identity from material cues.

Multi-Modal Feature Extraction

The backbone utilizes a Multi-Attention Network (MAT) integrated with Central Differential Convolution (CDC). This architecture is optimized to capture fine-grained texture patterns and local gradient changes, which are essential for identifying the subtle differences between human tissue and synthetic materials.

Real-face Oriented Reweighting (ROR)

The ROR strategy is the paper's most innovative contribution. Using a pre-trained ArcFace model, the system calculates the similarity between real and fake samples. Fake samples that closely resemble real identities are assigned higher weights during training. This forces the model to ignore identity-specific features and focus strictly on material-based discriminators.

Contrastive Learning with Cross Batch Memory (XBM)

The framework employs a supervised contrastive loss to cluster "real" embeddings and separate them from "fake" ones. To overcome small batch size constraints common in high-dimensional spectral data, Cross Batch Memory (XBM) acts as a large-scale memory bank, providing a rich context of thousands of historical embeddings for more effective contrastive training.

Dataset and Experimental Setup

The study utilizes the HySpeFAS dataset, the first of its kind for snapshot spectral face anti-spoofing. It consists of 6,760 hyperspectral images across 30 spectral channels. The training set is notably imbalanced, with a 6.5:1 ratio of fake to real samples (3,380 fake vs. 520 real).

The HySpeFAS dataset exhibits various challenges, including identity bias, facial orientation changes, and appearance variations.

To further augment the limited data, the researchers implemented Intra-class Mixup, interpolating between samples of the same class to increase diversity without introducing label noise.

Results: Achieving the Theoretical Limit

The proposed method dominated the Chalearn Snapshot Spectral Imaging Face Anti-spoofing Challenge at CVPR 2024. The model achieved a perfect score across all primary metrics on the test set:

  • ACER (Average Classification Error Rate): 0.0000%
  • APCER (Attack Presentation Error Rate): 0.0000%
  • BPCER (Bona Fide Presentation Error Rate): 0.0000%

This performance secured 1st place, significantly outperforming the second-place team (ACER 0.0310%). The results demonstrate that spectral information, when combined with identity-debiasing strategies, provides a near-impenetrable defense against current spoofing techniques.

Conclusion and Future Directions

While achieving a 0% error rate on the HySpeFAS benchmark is a milestone, practical deployment faces challenges. The computational cost of processing 33-channel inputs (RGB + 30 spectral bands) and the high price of SSI hardware currently limit mass-market adoption. Future research should focus on model compression for edge devices and testing generalization against novel, unseen spoofing materials like new types of hyper-realistic resins.

Summary updated

BibTeX
@inproceedings{song2024supervised,
  author = {Chuanbiao Song and Yan Hong and Jun Lan and Huijia Zhu and Weiqiang Wang and Jianfu Zhang},
  title = {{Supervised Contrastive Learning for Snapshot Spectral Imaging Face Anti-Spoofing}},
  booktitle = {Workshops @ CVPR},
  year = {2024},
}
Figure