NullFace: Training-Free Localized Face Anonymization

Han-Wei Kung, Tuomas Varanka, Terence Sim, Nicu SebearXiv 2025 · DOI

Abstract

Facial anonymization is increasingly vital for privacy compliance, yet existing methods often struggle with the trade-off between identity removal and the preservation of data utility. We introduce NullFace, a training-free framework that leverages pre-trained diffusion models to achieve high-fidelity, localized face anonymization. By utilizing Diffusion Model Inversion and "negative identity" steering via IP-Adapters, NullFace allows for precise control over which facial attributes are modified. Our approach effectively obscures identity while meticulously preserving non-identifying features such as gaze, expression, and head pose. Experimental results on CelebA-HQ and FFHQ demonstrate that NullFace achieves state-of-the-art anonymization performance (0.34% Re-ID rate) and superior image quality without requiring any fine-tuning or optimization.

Introduction

As privacy regulations like GDPR and CCPA become more stringent, the demand for robust facial anonymization has grown across various sectors, including behavioral research and medical diagnostics. Traditional methods, such as blurring or pixelation, often render data useless for downstream analysis. While modern AI approaches like GANs offer better results, they frequently fail to maintain fine-grained attributes or require extensive training on specific datasets. NullFace addresses these challenges by providing a "plug-and-play" solution that removes identity while keeping essential non-identity attributes intact.

Methodology

NullFace departs from traditional generative paradigms by focusing on Diffusion Model Inversion and Identity Steering.

Diffusion Model Inversion

The process begins with DDPM Inversion, where an original image is mapped back to its initial noise state ($x_T$) and intermediate noise maps ($z_t$). This ensures that the reconstruction process can perfectly recover the original image's structural and textural details before any modifications are applied.

Identity Steering via IP-Adapter

To alter the subject's identity, NullFace employs an IP-Adapter conditioned on image features. Rather than providing a target identity, the framework extracts the original face's embedding and applies a negative scalar ($-\lambda_{id}$). This "negative identity" guide steers the denoising process away from the original person's unique features, effectively saying "be anyone except this person."

Localized Control and Dual-Path Denoising

The framework runs two parallel denoising paths: a conditional path using the negative identity and an unconditional path using a null embedding. These are merged using a guidance scale ($\lambda_{cfg}$) to balance identity change against structural preservation.

Localized segmentation mask applied to the eye region to guide identity steering.

A key innovation is the integration of segmentation masks, allowing users to specify regions that should remain untouched (e.g., clinical symptoms or specific gaze directions) while the rest of the face is anonymized. By skipping the first few steps of identity conditioning (the $T_{skip}$ parameter), the model ensures the overall geometry and lighting of the original image are locked in before the identity starts to shift.

Anonymized output demonstrating modified ocular identity while preserving global attributes like pose and expression.

Experimental Results

NullFace was evaluated on the CelebA-HQ and FFHQ datasets, using approximately 4,500 test subjects.

Anonymization and Utility

NullFace achieved a re-identification (Re-ID) rate of 0.34% on the FFHQ dataset, significantly outperforming GAN-based baselines such as FAMS (14.15%) and LDFA (11.15%). Crucially, it maintained high utility by preserving gaze and head pose; its "Pose Distance" (0.053) was nearly half that of LDFA (0.092).

Image Quality

Using the MUSIQ metric, NullFace scored 68.79, surpassing the quality of original input images in some instances by mitigating compression artifacts. In contrast, older methods like DP2 significantly degraded image quality (49.06).

Discussion: The "Nose Factor"

Supplementary experiments revealed an intuitive but critical insight: the nose plays a disproportionately large role in facial recognition. Keeping the nose visible has a significantly higher impact on re-identification risk than keeping the eyes and mouth combined. This finding underscores the importance of the localized control provided by NullFace in managing the privacy-utility trade-off.

Conclusion and Future Work

NullFace provides a powerful, training-free tool for localized face anonymization. While it offers superior fidelity and control, its reliance on iterative diffusion makes it slower than single-pass GAN methods. Future work will explore the use of distilled models like SDXL-Turbo to improve generation speed and investigate temporal consistency for video anonymization. Additionally, the potential for misuse in creating deepfakes necessitates the development of robust digital watermarking techniques in tandem with such technology.

Summary updated

BibTeX
@misc{kung2025nullface,
  author = {Han-Wei Kung and Tuomas Varanka and Terence Sim and Nicu Sebe},
  title = {{NullFace: Training-Free Localized Face Anonymization}},
  year = {2025},
  eprint = {2503.08478},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2503.08478},
}
Figure