A Systematical Solution for Face De-identification

Songlin Yang, Wei Wang, Yuehua Cheng, Jing Dong

Abstract

This paper introduces a unified framework for face de-identification (De-ID) designed to protect privacy against both human and machine recognition. By utilizing StyleGAN’s latent space and attribute disentanglement, the proposed system offers two modes: complete identity swapping for human-facing privacy and subtle, "unrestricted" adversarial perturbations in the latent space to deceive face recognition models. Unlike traditional methods, this approach maintains high visual quality and ensures the generated images remain "on-manifold."

Introduction

As face recognition technology becomes ubiquitous, the risk to personal privacy grows. Traditional de-identification (De-ID) methods, such as blurring or pixelation, are effective at obscuring identity but often "destroy" the underlying data, rendering images unnatural and useless for research or social sharing. Existing AI-based solutions generally fall into two categories: face swapping and adversarial attacks. While face swapping often introduces visual artifacts, traditional pixel-level adversarial attacks (e.g., FGSM) frequently degrade image quality or lower face detection rates, making the AI fail to recognize a face at all rather than misidentifying it.

This paper proposes a unified framework that provides high-quality images suitable for both dataset desensitization (complete anonymization) and individual privacy protection (fooling AI while appearing normal to humans).

Methodology

The framework is built upon a StyleGAN backbone and consists of two primary components: attribute disentanglement and an adversarial vector mapping network.

Attribute Disentanglement and Generation

The system decomposes a face into two distinct components:

  1. Identity: Core facial features such as the mouth, nose, and eyes, extracted via a ResNet-50 encoder.
  2. Expression: This includes pose, expression, and illumination, extracted via an Inception-V3 encoder.

These components are encoded into a latent vector $z$, which is subsequently mapped to StyleGAN’s $w$ space. By combining the identity of one individual with the expression of another, the system can perform high-fidelity face swapping.

The proposed framework architecture featuring attribute disentanglement and adversarial vector mapping.

Adversarial Vector Mapping Network

To protect individual privacy without changing one's appearance to the human eye, the authors introduce an Adversarial Vector Mapping Network ($M_{adv}$). Unlike traditional methods that add noise to pixel space, $M_{adv}$ perturbs the latent vector $w$ to create $w_{adv}$. The objective is to maximize "inner-class distance"—causing AI models to misidentify the person—while minimizing perceptible visual changes. Because these perturbations occur within the latent space of a generative model, the output remains "on-manifold," appearing as a realistic, high-quality face rather than a noisy image.

Key Insights

A central contribution of this work is the shift from pixel-space to latent-space perturbations. This ensures that the output is always a "valid" face according to the generator, avoiding the grainy artifacts typical of traditional adversarial attacks. Furthermore, by utilizing a mapping network to identify adversarial patterns, the method moves toward "unrestricted" adversarial examples, which are more robust and harder to defend against than simple pixel-constrained attacks.

Visual comparison between traditional FGSM adversarial noise and the proposed latent-space adversarial perturbations.

Experimental Results

The system was pre-trained on the VGGFace2 dataset and evaluated using the FFHQ (Flickr-Faces-HQ) dataset. Notably, the models were not trained on FFHQ, demonstrating strong generalization capabilities.

  • Adversarial Performance: In tests, the proposed method achieved a significantly lower ID similarity (0.531) compared to FGSM (0.842), while maintaining a 100% face detection rate. This indicates that while the AI detects a face, it consistently misidentifies it.
  • Visual Quality: A human study revealed a much lower artifact rate for this method (0.144) compared to FGSM (0.99+). Additionally, the method achieved a Fréchet Inception Distance (FID) of 37.78, outperforming other generative models like ALAE and FSGAN in terms of image realism and attribute preservation.

Conclusion and Future Work

While the framework provides a robust solution for face De-ID, challenges remain in perfectly reconstructing regions outside the face, such as complex backgrounds or hair, due to the limited expressive capacity of StyleGAN's latent space in these areas. Additionally, the system's performance is tied to the quality of GAN inversion. Future research will focus on the internal mechanisms of GANs to enhance the efficiency of unrestricted adversarial attacks and improve the reconstruction of non-facial regions.

Summary updated

BibTeX
@inproceedings{yang2021systematical,
  author = {Songlin Yang and Wei Wang and Yuehua Cheng and Jing Dong},
  title = {{A Systematical Solution for Face De-identification}},
  booktitle = {CCBR},
  year = {2021},
  url = {https://openreview.net/forum?id=UkAoVWSEOh},
}
Figure