Reconstruct Face from Features Using GAN Generator as a Distribution Constraint

Xingbo Dong, Zhihui Miao, Lan Ma, Jiajun Shen, Zhe Jin, Zhenhua Guo, Andrew Beng Jin TeoharXiv 2022

Abstract

Face recognition based on deep convolutional neural networks (CNN) shows superior accuracy performance attributed to the high discriminative features extracted. Yet, the security and privacy of the extracted features from deep learning models (deep features) have been often overlooked. This paper proposes the reconstruction of face images from deep features without accessing the CNN network configurations as a constrained optimization problem. Such optimization minimizes the distance between the features extracted from the original face image and the reconstructed face image. Instead of directly solving the optimization problem in the image space, we innovatively reformulate the problem by looking for a latent vector of a GAN generator, then use it to generate the face image. The GAN generator serves as a dual role in this novel framework, i.e., face distribution constraint of the optimization goal and a face generator. On top of the novel optimization task, we also propose an attack pipeline to impersonate the target user based on the generated face image. Our results show that the generated face images can achieve a state-of-the-art successful attack rate of 98.0% on LFW under type-I attack @ FAR of 0.1%. Our work sheds light on the biometric deployment to meet the privacy-preserving and security policies.

Introduction

Modern face recognition (FR) systems utilize Deep Convolutional Neural Networks (CNNs) to map facial images into high-dimensional "deep features" or templates. While these systems achieve remarkable accuracy, a pervasive assumption exists that these features are "one-way" representations—mathematically irreversible to the original source image. This paper challenges this assumption by addressing the "black-box" reconstruction problem. Specifically, the authors investigate whether an attacker with access to a database of stolen face templates, but lacking knowledge of the specific FR model's architecture or weights, can reconstruct recognizable, high-fidelity face images. Unlike previous attempts that often produced low-resolution or artifact-heavy images, this work aims for 1024x1024 reconstructions capable of deceiving both human observers and automated liveness detection systems.

Methodology

The researchers frame face reconstruction as a constrained optimization problem. The primary objective is to find an image $x$ such that the feature vector extracted from $x$ is as close as possible to the target stolen template.

GAN as a Distribution Constraint

Directly optimizing in the pixel space is computationally prohibitive and typically results in noisy, non-face-like images. To solve this, the authors search within the latent space of a pre-trained StyleGAN2 generator. In this framework, the GAN serves a dual purpose: it acts as a face generator and as a "distribution constraint," ensuring that the optimization process remains within the manifold of realistic human faces.

Genetic Algorithm Optimization

Rather than employing gradient-based methods like Stochastic Gradient Descent (SGD), which often converge to sub-optimal local minima in complex latent spaces, the authors utilize a Genetic Algorithm (GA). The GA maintains a population of latent vectors and evolves them through selection, crossover, and mutation. This population-based approach allows for a more robust exploration of the latent space, effectively navigating the non-linear mapping between latent vectors and deep features.

Experimental Results

The framework was evaluated using several standard benchmarks, including the FFHQ dataset for GAN pre-training and the LFW and colorFERET datasets for reconstruction testing. Three distinct InsightFace models (ResNet-50, Xception, and InceptionResNet) served as target feature extractors.

Comparison between original (bona fide) faces and faces reconstructed from deep features using the proposed GAN-constrained optimization. Red numbers indicate similarity scores; yellow numbers indicate liveness detection confidence.

Attack Success and Fidelity

On the LFW dataset, the reconstructed images achieved a 98.0% Success Attack Rate (SAR) for Type-I attacks at a False Accept Rate (FAR) of 0.1%. The visual fidelity of the results is significantly higher than prior art, producing high-definition 1024x1024 faces that closely resemble the original subjects.

Bypassing Liveness Detection

A critical finding is the vulnerability of commercial liveness detection systems. The reconstructed images successfully bypassed Commercial-Off-The-Shelf (COTS) APIs with pass rates reaching 98%. This suggests that static, single-photo liveness checks are insufficient against sophisticated GAN-based reconstruction attacks.

Discussion and Conclusion

The study reveals a significant cross-model vulnerability: faces reconstructed using one FR model can often successfully impersonate users on different architectures. This implies that deep features across various CNN models capture fundamentally similar semantic identity information.

However, some limitations remain. The reconstruction process can occasionally suffer from "generator bias," where the GA evolves a face toward a different demographic (e.g., age or gender) present in the GAN's training data. Additionally, the GA-based optimization is computationally more intensive than gradient-based alternatives.

In conclusion, this work demonstrates that deep features are not inherently private. The ability to reconstruct high-quality biometric data from mathematical templates underscores the urgent need for enhanced protection schemes, such as cancelable biometrics or homomorphic encryption, to secure future biometric deployments.

Summary updated

BibTeX
@misc{dong2022reconstruct,
  author = {Xingbo Dong and Zhihui Miao and Lan Ma and Jiajun Shen and Zhe Jin and Zhenhua Guo and Andrew Beng Jin Teoh},
  title = {{Reconstruct Face from Features Using GAN Generator as a Distribution Constraint}},
  year = {2022},
  eprint = {2206.04295},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2206.04295},
}
Figure