Abstract
Face Recognition (FR) systems typically function as feature extractors, mapping images to a high-dimensional embedding space where identity is determined by similarity metrics like k-Nearest Neighbors (kNN). Traditional adversarial attacks, designed to fool classification layers, often fail to sufficiently perturb these underlying embeddings. This paper introduces a kNN-guided adversarial attack that directly targets the feature space. By optimizing perturbations to move source embeddings toward the centroid of a target identity, the proposed method achieves near-total success in impersonation tasks, exposing a critical vulnerability in similarity-based biometric systems.
Introduction
Adversarial attacks—small, often imperceptible perturbations to input data—have long been used to expose vulnerabilities in deep learning models. Most research in this domain focuses on misclassification, where an attacker aims to flip the predicted label of a classifier (e.g., changing a "Stop" sign to a "Speed Limit" sign).
However, modern Face Recognition (FR) systems do not operate as simple classifiers. Instead, they act as feature extractors that transform facial images into mathematical vectors, or embeddings. Recognition is then performed by calculating the similarity (e.g., Euclidean distance) between a query embedding and known identities in a database. Standard attacks may trick a final classification layer while failing to move the embedding far enough to fool a similarity check. This paper addresses this gap by proposing an attack specifically tailored for the similarity-based pipeline.
Methodology: Targeting the Feature Space
The authors contrast two primary attack philosophies:
- Misclassification Baseline: Using a state-of-the-art SeNet-50 model with an added classification layer, standard algorithms like Projected Gradient Descent (PGD) and Momentum Iterative FGSM (MI-FGSM) were employed to force incorrect labeling.
- kNN-Guided Approach: This method ignores labels and targets the feature space directly. Using the L-BFGS optimization algorithm, the attack generates perturbations designed to minimize the Euclidean distance between the source image’s feature vector and the centroid (the average feature vector) of a target identity.
By targeting the centroid rather than a single instance, the attack aims for the "mathematical heart" of the target identity, making the impersonation more robust across different similarity thresholds. To maintain imperceptibility, pixel-level changes were strictly constrained ($\delta \le 7$).
Experimental Results
The study utilized a subset of 500 identities from the VGGFace2 dataset. The results demonstrate a significant disparity between label-based and feature-based attacks when evaluated against similarity thresholds:
- Targeted Impersonation: In scenarios where the goal was to be recognized as a specific target, standard PGD achieved a success rate of only 2.7%. The kNN-guided attack, however, reached a 97.3% success rate.
- Untargeted Evasion: When attempting to be recognized as any identity other than the source, the kNN-guided method maintained an 88.7% success rate, compared to roughly 17% for standard methods.
- Embedding Analysis: Visualizations confirmed that kNN-guided attacks successfully moved adversarial features deep into the clusters of target identities, whereas standard attacks often only nudged them slightly past the decision boundary of the classification layer.
Discussion and Future Work
The findings suggest that "robust" models may only possess surface-level resilience if they are not trained to defend the integrity of their feature embeddings. While the kNN-guided attack is highly effective against recognition logic, the authors note that such attacks might still be detectable by specialized adversarial detectors.
Future research should focus on:
- Detection Evasion: Developing attacks where adversarial features mimic "natural" feature distributions to bypass detection systems.
- Defense Mechanisms: Creating training regimes that harden the feature space itself against targeted shifts.
- Parameter Sensitivity: Investigating how varying the 'k' in kNN-guided attacks influences success and robustness.
Conclusion
This work highlights a major vulnerability in modern Face Recognition systems. By shifting the focus from labels to feature embeddings, the kNN-guided attack demonstrates that similarity-based systems are highly susceptible to targeted manipulation, necessitating new approaches to biometric security and model robustness.
Summary updated