Face Anonymization Made Simple

Han-Wei Kung, Tuomas Varanka, Sanjay Saha, Terence Sim, Nicu Sebe

Introduction

As facial recognition technology becomes ubiquitous, protecting privacy in photos and videos is increasingly critical. Traditional methods like blurring or pixelation are "destructive"—they protect identity but render the image useless for tasks like expression analysis or high-quality media production.

Existing deep-learning approaches, primarily based on Generative Adversarial Networks (GANs), face several hurdles. They often require a complex array of loss functions that are difficult to balance and frequently depend on auxiliary data like pre-computed facial landmarks or segmentation masks. Furthermore, many rely on pre-trained face recognition models to calculate "identity loss," which can introduce biases. Finally, GAN-based methods often struggle to blend the new face into the original background, leading to visible seams or loss of detail in hair and accessories.

Methodology

This paper introduces a streamlined framework for face anonymization based on Latent Diffusion Models (LDM). The core innovation treats anonymization as a specialized case of face swapping, utilizing a Dual ReferenceNet architecture alongside a main denoising UNet. One ReferenceNet handles the source identity, while the other manages the driving image (pose, expression, and background).

Unlike competing models, this system is trained using only a single reconstruction loss. It learns to reconstruct a target image by "swapping" a source face onto a driving frame. To anonymize a face, the user provides the same image as both source and driving. By adjusting a single parameter, $d$, the model interpolates between the original identity's features and a generic "unconditional" state. As $d$ increases, the original identity is gradually replaced by a synthetic one. Feature injection via self-attention and cross-attention ensures that the generated face matches the lighting and texture of the original scene perfectly.

Results and Evaluation

The model was evaluated on standard high-resolution datasets including CelebRef-HQ, CelebA-HQ, and FFHQ. Evaluation metrics included FaceNet for re-identification (anonymity) and 3D Morphable Models (3DMM) to measure the preservation of facial shapes and expressions.

Comparison of the proposed face anonymization method against existing baselines (FALCO, DP2, RiDDLE).

Key findings include:

  • State-of-the-Art Anonymity: The model achieved significantly higher re-identification distances than baselines like DP2, FALCO, and RiDDLE, making it much harder for AI to "unmask" subjects.
  • Attribute Preservation: Despite high anonymity, the model maintained superior accuracy in preserving head pose, gaze direction, and complex facial expressions.
  • Visual Quality: Qualitatively, the results are striking. Anonymized faces appear as real people, and fine details like stray hairs, hat textures, and background bokeh remain completely intact, avoiding the "pasted-on" look of earlier methods.
  • Simplified Training: The research demonstrates that an explicit "identity loss" is optional; a well-structured reconstruction task provides sufficient signal for the model to learn the manifold of human faces.

Discussion and Future Work

While the framework offers significant improvements in quality and simplicity, some limitations remain. Due to VRAM requirements, the current native resolution is capped at 512x512. Future work may involve scaling to architectures like SDXL for megapixel-scale output. Additionally, the authors noted slight performance variances across diverse demographic groups, highlighting the need for increased dataset diversity. Finally, while diffusion models provide high fidelity, their inference speed is currently slower than GANs, which may limit real-time applications without further optimization techniques like distillation.

Summary updated

BibTeX
@inproceedings{kung2025face,
  author = {Han-Wei Kung and Tuomas Varanka and Sanjay Saha and Terence Sim and Nicu Sebe},
  title = {{Face Anonymization Made Simple}},
  booktitle = {IEEE/CVF Winter Conference on Applications of Computer Vision},
  year = {2025},
  doi = {10.1109/wacv61041.2025.00110},
}
Figure