A Bag of Tricks for Defending Deep Learning-based Face Recognition Pipelines against Backdoor Attacks

Quentin Le Roux, Marti Jimenez, Yannick Teglia, Philippe Loubet MoundiarXiv 2026

TL;DR

This paper introduces a "bag of tricks"—three practical, easily deployable defenses—to protect multi-stage Face Recognition Systems (FRSs) from backdoor attacks. By combining a training-time monitor that catches fast-learning poisoned identities with inference-time cross-checks for detectors and feature extractors, the authors provide a robust framework for hardening real-world biometric pipelines against compromised supply chains.

What Problem Does This Paper Address?

Most research on deep learning backdoors focuses on single-model, closed-set image classification (e.g., "if the image has a sticker, label it as a toaster"). However, industrial Face Recognition Systems (FRSs) are far more complex. They are sequential pipelines consisting of face detectors, alignment modules, anti-spoofing filters, and feature extractors.

The authors identify two major gaps in current defenses:

  1. Open-set Metric Spaces: FRS extractors don't just flip a label; they manipulate high-dimensional embeddings. Standard label-centric defenses fail here.
  2. Pipeline Propagation: A backdoor in an upstream component (like a detector) can pass misaligned data downstream, amplifying the attack's success in ways a single-model defense can't see.

The paper assumes a realistic "compromised supply chain" threat model: a company trains its models in-house but sources its massive training datasets from potentially malicious third parties who may have injected poisoned samples.

Methods

The authors propose three distinct "tricks" to harden the pipeline:

  1. Early Poison Identification (Training-time): This method monitors the top-1 classification accuracy of identities during the very first batches of training. The intuition is that artificial triggers (like a checkerboard patch) are mathematically simpler than human faces, causing the model to learn the "backdoor identity" much faster than benign ones. Early Poison Identification monitors how quickly the model learns specific identities to spot outliers.
Figure 5: Representation of the Early Poison Identification defense. During training, the backdoor identity is learned faster than most benign identities. Capturing this behavior during early batches enables singling out backdoors.
  1. Detector-level Model Pairing (Inference-time): To defend against attacks that target the face detector (like hallucinating faces or shifting landmarks), the system runs a secondary, simpler, and trusted "buddy" detector (e.g., MTCNN) alongside the main one. If the two models disagree significantly on bounding boxes or landmark locations, the input is rejected. Model Pairing uses a trusted secondary detector to verify the main detector's output.
Figure 6: Representation of the Detector-Level Model Pairing defense. The outputs of the main, but possibly compromised face detector, are compared to a simpler counterpart to see if they agree: whether their predictions have similar bounding boxes; whether their landmark regressions fall within an acceptable difference range.
  1. Cut-and-Mix (Inference-time): This defense intercepts user submissions, cuts them into chunks, and pastes them onto a small set of known-clean validation images. If these "mixed" images still produce a high similarity match to the original submission, it indicates that a trigger—rather than the face itself—is dominating the embedding, signaling a backdoor activation.

Datasets

The authors evaluated their defenses using a variety of industry-standard datasets:

  • Detectors: Trained on WIDER-Face and validated on CelebA.
  • Feature Extractors: Trained on MS1Mv2.
  • Validation/Testing: Evaluated on LFW (Labeled Faces in the Wild), CFP-FF/FP, AgeDB, CALFW, CPLFW, and VGGFace2_FP.
  • Inference Benchmark: A subset of 2048 faces from CelebA-Spoof was used to test inference-time defenses against both bonafide and spoofed inputs.

Key Insights and Ideas

  • The "Simplicity" Bias: The most striking insight is that backdoors are "easy" for models to learn. Because triggers are often high-contrast or repetitive patterns, they reach high accuracy in the first few hundred training batches, long before the model has mastered the nuances of human facial features.
  • Pipeline Awareness: The paper emphasizes that defending an FRS requires looking at the entire chain. A detector that is slightly "off" due to a Landmark Shift Attack (LSA) can be just as dangerous as a compromised feature extractor.
  • Poison-label vs. Clean-label: The training-time defense is highly effective against "Poison-label" attacks (where images are relabeled to a target identity) but struggles with "Clean-label" attacks, where the model learns the trigger alongside the correct identity semantics.

Key Results

  • Early Poison Identification: Successfully identified and pruned 100% of All-to-One Poison-label backdoors during training. However, it failed to detect Clean-label attacks, which mimic benign learning trajectories more closely.
  • Detector-level Model Pairing: Extremely effective against detector-targeted attacks (FGA and LSA), achieving an average False Positive Rate (FPR) of 0.81% and a False Negative Rate (FNR) of 4.31%.
  • Cut-and-Mix: Proved highly effective for feature extractors, with most models showing an FNR below 1.0% for a low FPR (0.5%–1.1%). It even showed promise against adversarial examples like FIBA, catching them with less than 1% FPR.

Limitations and Future Work

  • Clean-label Vulnerability: The training-time defense currently cannot distinguish Clean-label poisoned identities because they don't exhibit the same "early learning" spike. The authors suggest future work should look at finer granularities than the identity level.
  • Computational Cost: The Early Poison Identification defense adds a roughly 1.5x slowdown during the first few epochs of training due to the overhead of tracking per-identity accuracy.
  • Adaptive Attacks: The authors note that while these "tricks" work against current common attacks, future research is needed to see how they hold up against stronger, adaptive backdoors specifically designed to evade these types of monitors.

Summary updated

BibTeX
@misc{roux2026bag,
  author = {Quentin Le Roux and Marti Jimenez and Yannick Teglia and Philippe Loubet Moundi},
  title = {{A Bag of Tricks for Defending Deep Learning-based Face Recognition Pipelines against Backdoor Attacks}},
  year = {2026},
  eprint = {2611.06412},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.06412},
}
Figure