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

Artificial Immune System of Secure Face Recognition Against Adversarial Attacks

Min Ren, Yunlong Wang, Yuhao Zhu, Yongzhen Huang, Zhenan Sun, Qi Li, Tieniu Tan

Abstract

Deep learning-based face recognition (FR) systems are increasingly vulnerable to adversarial attacks—imperceptible perturbations designed to cause misidentification. Traditional defenses often struggle with the "open-set" nature of FR and the high specificity of adversarial noise. This paper presents an Artificial Immune System (AIS) for FR that treats adversarial noise as biological antigens and generates customized "antibodies" to neutralize them. By utilizing image-specific eigenvector reconstructions and a memory-guided defense architecture, the AIS achieves state-of-the-art robustness against diverse attacks while maintaining high fidelity on clean images.

Introduction

Face recognition (FR) technology has become ubiquitous in security and authentication. However, these systems are notoriously fragile when faced with adversarial examples: images modified by precisely calculated noise that triggers incorrect classification. Defending FR systems is particularly challenging because they operate in an open-set environment, where the model must identify individuals not seen during the initial training phase.

Existing defenses, such as standard denoising or global adversarial training, often suffer from two main drawbacks: they lack the specificity required to counter bespoke adversarial noise, and they frequently degrade the model's performance on clean, non-adversarial images. This research proposes a novel framework inspired by the biological immune system to provide a dynamic, individualized defense for every input image.

Methodology

The Antibody Mechanism

In the proposed AIS framework, adversarial noise is conceptualized as an antigen, while the defense mechanism acts as an antibody. Rather than applying a static filter, the system defines an antibody as a specific combination of eigenvectors derived from the EigenFace method.

When an image is processed, the system selects a subset of essential eigenvectors to reconstruct the face. By focusing on the most critical facial features ("self") and discarding the components associated with adversarial noise ("non-self"), the system effectively purifies the input before it reaches the recognition model.

AIS Architecture

The architecture consists of three integrated components designed to emulate an immune response:

  1. Antigen Analyzer: Utilizing a ResNet-18 backbone, this module extracts noise features from the input image to identify the nature of the threat.
  2. Memory Module: This component stores patterns of previously encountered adversarial attacks. Using a soft-attention mechanism, it retrieves relevant historical data to guide the generation of an effective defense, acting as a form of "digital vaccination."
  3. Antibody Generator: Emulating biological cloning and mutation, this module generates multiple candidate eigenvector sets. It evaluates their "affinity"—the ability to remove noise while preserving identity—and selects the optimal reconstruction for final processing.

Self-supervised Adversarial Training (SSAT)

To ensure the system can generalize to new threats without requiring massive labeled attack datasets, the authors implemented Self-supervised Adversarial Training. Using a siamese network structure, the model practices against "on-the-fly" adversarial samples. This continuous rehearsal allows the model to learn a sparse representation, using fewer but more robust eigenvectors to ignore noise as training progresses.

Experimental Results

The AIS model was evaluated against several benchmark datasets, including CelebA for training and LFW (Labeled Faces in the Wild), MegaFace, and TALFW for testing. The system was tested against common attack vectors such as FGSM, PGD, and DeepFool.

Robustness and Fidelity

The AIS demonstrated significant improvements over existing state-of-the-art (SOTA) defenses:

  • Adversarial Robustness: Under heavy PGD attacks on the LFW dataset, the AIS achieved an Equal Error Rate (EER) of 14.19%. In comparison, an unprotected model reached an EER of 99.71%, and previous SOTA methods like PIN hovered around 30%.
  • Clean Image Performance: A common pitfall of adversarial defense is the "utility tax"—a drop in accuracy on normal images. The AIS maintained a clean-image EER of 1.01%, nearly identical to the performance of unprotected models.
  • Physical World Application: The model was tested against "sticker attacks," where physical patches are placed on a subject's face. The AIS maintained 98.4% accuracy, whereas the unprotected model's accuracy plummeted to 25.6%.

Discussion and Limitations

The primary innovation of this research lies in its individualized defense strategy. By treating defense as a dynamic selection process rather than a static architectural constraint, the AIS can adapt to the high diversity of adversarial noise. The memory module further ensures that the system does not "forget" how to handle older attack patterns while adapting to new ones.

However, limitations remain. The current model is sensitive to extreme head tilts and heavy occlusions (such as medical masks), as the underlying eigenvectors are primarily trained on frontal face distributions (CelebA). Additionally, the iterative "cloning" process in the antibody generator introduces higher computational costs during the training phase.

Conclusion

The Artificial Immune System represents a significant step forward in securing face recognition systems. By mimicking the adaptive nature of biological immunity, the framework provides a robust defense against sophisticated adversarial attacks without sacrificing the accuracy of daily operations. Future work will explore the application of this AIS framework to other domains, such as DeepFake detection and preventing physical presentation attacks.

Summary updated

BibTeX
@article{ren2024artificial,
  author = {Min Ren and Yunlong Wang and Yuhao Zhu and Yongzhen Huang and Zhenan Sun and Qi Li and Tieniu Tan},
  title = {{Artificial Immune System of Secure Face Recognition Against Adversarial Attacks}},
  journal = {Int. J. Comput. Vis.},
  year = {2024},
  doi = {10.1007/s11263-024-02153-0},
}
Figure