Abstract
We show that several leading pretrained facial recognition systems exhibit a variance dichotomy in their feature space. In other words, the feature vectors approximately lie in a lower dimensional linear subspace. We demonstrate that this variance dichotomy degrades the performance of an otherwise powerful scheme for anonymity/unlinkability and confusion attacks on facial recognition system devised by Zehavi et al. (2024), which is based on simple weight manipulations in only the last hidden layer. Lastly, we propose a method for the attacker to overcome this intrinsic defense of these pretrained facial recognition systems.
Introduction
Modern facial recognition systems (FRS) typically employ "Siamese" neural networks to map facial images into high-dimensional embedding spaces. Verification is performed by calculating the cosine similarity between these feature vectors. Recent work by Zehavi et al. (2024) introduced a "weight surgery" attack targeting the final hidden layer of these networks. By projecting the weight matrix onto specific subspaces, an attacker can induce targeted misclassifications—such as making a specific identity "invisible" (anonymity) or causing two distinct identities to be perceived as a match (confusion).
However, a significant hurdle for such attacks is the resulting drop in "benign accuracy"—the system's performance on non-targeted users. This paper investigates the root cause of this performance degradation and proposes a method to circumvent it.
The Variance Dichotomy
Through Principal Component Analysis (PCA) of embeddings from state-of-the-art models like FaceNet, ArcFace, and AdaFace, we identify a property termed variance dichotomy. Despite having high-dimensional output spaces (e.g., 512 dimensions), these models concentrate the vast majority of their informational signal into a small subset of "dominant" dimensions. For example, in FaceNet512, a sharp drop in logarithmic variance occurs after approximately the first 50 principal components.
This concentration acts as an accidental defense mechanism. When an attacker performs weight surgery, they risk projecting out these high-variance dimensions, which leads to a catastrophic loss of the model's discriminative power for benign users.
The Double Descent Phenomenon
A surprising discovery in our analysis is the "double descent" of benign accuracy as the number of installed backdoors ($k$) increases. As shown in Figure 1, accuracy initially crashes as the attack disrupts the dominant feature dimensions. However, as $k$ continues to increase, accuracy often begins to recover.
This recovery suggests that facial features are redundantly encoded. Even when the primary dimensions are compromised, the "low-variance" or "junk" dimensions still contain sufficient semantic information to maintain a baseline level of recognition (often around 80% accuracy).
Overcoming the Defense: Weight Flattening
To bypass the intrinsic defense provided by the variance dichotomy, we propose a revised attack strategy. Before performing the subspace projection, the attacker applies a preprocessing step using Singular Value Decomposition (SVD) on the weights of the final layer. By replacing all singular values with their mean, the attacker "flattens" the variance dichotomy.
This flattening ensures that the "damage" caused by installing a backdoor is distributed evenly across all dimensions rather than concentrated on the most critical ones. As a result, hundreds of backdoors can be installed in models like AdaFace and ArcFace without the steep initial dip in benign accuracy that would otherwise alert system administrators.
Conclusion
The variance dichotomy in FRS feature spaces provides a fragile, accidental defense against weight manipulation. By understanding the geometric distribution of information in these embeddings, attackers can utilize weight flattening to maintain stealth. Defenders should consider monitoring the rank and variance distribution of their models' final layers as a more robust means of detecting unauthorized fine-tuning or weight surgery.
Summary updated