Inverting Black-Box Face Recognition Systems via Zero-Order Optimization in Eigenface Space

Anton Razzhigaev, Matvey Mikhalchuk, Klim Kireev, Igor Udovichenko, Andrey Kuznetsov, Aleksandr PetiushkoarXiv 2025 · DOI

Introduction

Face recognition systems have become a standard security layer in modern digital infrastructure. However, these systems are vulnerable to model inversion attacks, where an adversary attempts to reconstruct the facial identity of a person enrolled in the system. While previous research has explored "white-box" (full model access) and "gray-box" (access to internal embeddings) attacks, real-world APIs often operate as "black boxes." These systems typically return only a single numerical similarity score indicating the match between a query and a target ID. This paper introduces DarkerBB, a novel method that proves high-quality facial reconstruction is possible even with this minimal feedback.

Methodology

DarkerBB operates by optimizing a facial representation within a constrained search space to maximize the similarity score returned by the target system. The approach relies on three core technical pillars:

  1. PCA-based Latent Space: To avoid the high dimensionality of raw pixel space, the authors utilize Principal Component Analysis (PCA) trained on the FFHQ dataset. By optimizing within a 1024-dimensional "eigenface" space, the algorithm ensures that all generated candidates remain within the manifold of plausible human faces.
  2. Zero-Order Optimization: Since gradients are unavailable in a black-box setting, the attack employs a 2-point gradient estimator. By perturbing a candidate face in random directions and observing the change in similarity scores, the system estimates the gradient required to move toward the target identity.
  3. Multi-Start Strategy: To prevent the optimization from converging on local optima, the algorithm initiates several short optimization phases from different points in the latent space, eventually proceeding with the most promising candidate.
Overview of the DarkerBB black-box face recovery framework, showing the iterative feedback loop between the recovery algorithm and the target recognition system.

Experimental Evaluation

The effectiveness of DarkerBB was evaluated across several standard benchmarks, including LFW (Labeled Faces in the Wild), AgeDB-30, and CFP-FP. The PCA prior was constructed using the FFHQ dataset to provide a robust facial manifold.

Key Results and Visual Fidelity

DarkerBB achieves state-of-the-art results in the similarity-only attack category. On the LFW benchmark, the method reached a verification accuracy of 99.78% when optimized against the ArcFace model.

One of the most significant findings is the transferability of the reconstructed faces. Images optimized against one model (e.g., ArcFace) were successfully recognized by independent, unseen models (e.g., FaceNet) with approximately 92% accuracy. This indicates that the attack recovers the actual visual identity of the subject rather than just exploiting specific mathematical artifacts of the target model.

Comparison of facial reconstructions across different methods. DarkerBB (Ours) demonstrates superior visual fidelity and higher similarity scores (ArcFace/FaceNet) compared to Gaussian sampling and NBNet.

Discussion and Privacy Implications

The success of DarkerBB highlights a critical privacy vulnerability: a single floating-point similarity score can leak a user's entire facial identity if queried repeatedly. While the attack requires a significant number of queries (approximately 40,000 per face), it remains feasible against many commercial APIs that lack aggressive rate-limiting or coarse-grained feedback mechanisms.

Limitations

The method's primary limitation lies in the expressivity of the PCA space. Unique facial features not well-represented in the training set (such as specific tattoos or rare accessories) may not be perfectly captured. Furthermore, while the reconstructions are highly effective for machine verification, they sometimes lack the fine-grained perceptual fidelity required to perfectly fool a human observer, often appearing as a "generic" version of the target individual.

Conclusion

DarkerBB demonstrates that black-box face recognition systems are not inherently secure against identity theft. By combining zero-order optimization with a strong facial prior, adversaries can reconstruct recognizable, high-fidelity color images from sparse feedback. This research underscores the need for more robust privacy-preserving measures in the deployment of biometric recognition APIs.

Summary updated

BibTeX
@misc{razzhigaev2025inverting,
  author = {Anton Razzhigaev and Matvey Mikhalchuk and Klim Kireev and Igor Udovichenko and Andrey Kuznetsov and Aleksandr Petiushko},
  title = {{Inverting Black-Box Face Recognition Systems via Zero-Order Optimization in Eigenface Space}},
  year = {2025},
  eprint = {2506.09777},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2506.09777},
}
Figure