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

Generating Master Faces for Dictionary Attacks with a Network-Assisted Latent Space Evolution

Ron Shmelkin, Tomer Friedlander, Lior Wolf

Abstract

Biometric face recognition systems are increasingly used for secure authentication, yet they remain vulnerable to "dictionary attacks" using synthetic "Master Faces." This study introduces a novel approach to generate these faces by evolving StyleGAN latent vectors using a neural-network-assisted evolutionary algorithm. By leveraging a "Success Predictor" to guide the optimization, the method identifies a small set of synthetic images capable of impersonating a significant fraction of the population. Experimental results on the Labeled Faces in the Wild (LFW) dataset demonstrate that just nine master faces can cover up to 64% of identities across multiple state-of-the-art recognition systems.

Introduction

Face recognition systems typically operate by comparing a probe image to a stored template and calculating a similarity score. If the score exceeds a predefined threshold, access is granted. This probabilistic nature creates a vulnerability: the existence of "Master Faces"—analogous to master keys—that reside in high-density regions of the face embedding space.

Previous attempts to generate such faces often resulted in unrealistic "average" faces that failed modern detectors. This research addresses the challenge of generating high-quality, realistic synthetic faces that maximize impersonation success rates in a "black-box" setting where the underlying recognition model is non-differentiable.

Methodology

The proposed system combines generative modeling with black-box optimization to find optimal points in the face manifold.

Latent Space Optimization

Rather than manipulating pixels directly, the optimization targets vectors in the latent space of StyleGAN. This constraint ensures that every candidate generated is a realistic human face, staying within the natural distribution of facial features.

The optimization loop utilizes a Face Generator (StyleGAN) and a Face Descriptor to iteratively refine latent vectors based on matching scores.

Evolutionary Strategy and Success Prediction

The core of the optimization is the Limited-Memory Matrix Adaptation Evolution Strategy (LM-MA-ES), chosen for its effectiveness in high-dimensional spaces. To overcome the high computational cost of evaluating every candidate against a large identity database, a "Success Predictor" was introduced. This neural network is trained online during the evolution process to predict the likelihood of a latent vector succeeding as a master face. This surrogate model filters out low-potential candidates, significantly accelerating the search.

To maximize the total population coverage, a greedy algorithm is employed. After identifying the most effective master face, the identities it successfully "cracked" are removed from the target dataset. The process is then repeated to find subsequent faces that cover the remaining population.

Experimental Results

The method was evaluated against three prominent face recognition systems: FaceNet, SphereFace, and Dlib, using the LFW dataset (5,749 subjects).

High Identity Coverage

The results reveal a startling vulnerability in current biometric systems. A set of only nine master faces was found to cover between 42% and 64% of the LFW identities, depending on the recognition system attacked.

A set of nine generated master faces that collectively achieve high coverage across the target identity dataset.

Single Face Potency

In some configurations, a single synthetic face could successfully authenticate as over 20% of the entire dataset. These faces often exhibited demographic biases—frequently appearing as older, white males—reflecting the underlying distribution of the benchmark datasets and demonstrating how demographic clusters can be exploited for mass impersonation.

Discussion and Conclusion

The success of these "Master Faces" highlights a critical weakness in face-only biometric security. The ability to generate realistic, high-coverage synthetic identities suggests that dictionary attacks are a viable threat to facial authentication.

While these attacks currently utilize static 2D images, future iterations could incorporate DeepFake technology to bypass liveness detection (e.g., blinking or head movement). These findings underscore the urgent need for robust anti-spoofing measures and the adoption of multi-factor authentication to secure biometric systems against sophisticated synthetic threats.

Summary updated

BibTeX
@inproceedings{shmelkin2021generating,
  author = {Ron Shmelkin and Tomer Friedlander and Lior Wolf},
  title = {{Generating Master Faces for Dictionary Attacks with a Network-Assisted Latent Space Evolution}},
  booktitle = {FG},
  year = {2021},
  url = {https://openreview.net/forum?id=c0fXg9sfbvP},
}
Figure