NullFace: Training-Free Localized Face Anonymization

Han-Wei Kung, Tuomas Varanka, Terence Sim, Nicu Sebe
3/11/2025
cs.CV

Official code: hanweikung/nullface (28 stars, AGPL-3.0, last commit 2026-04-28).

Abstract

Privacy concerns around ever increasing number of cameras are increasing in today's digital age. Although existing anonymization methods are able to obscure identity information, they often struggle to preserve the utility of the images. In this work, we introduce a training-free method for face anonymization that preserves key non-identity-related attributes. Our approach utilizes a pre-trained text-to-image diffusion model without requiring optimization or training. It begins by inverting the input image to recover its initial noise. The noise is then denoised through an identity-conditioned diffusion process, where modified identity embeddings ensure the anonymized face is distinct from the original identity. Our approach also supports localized anonymization, giving users control over which facial regions are anonymized or kept intact. Comprehensive evaluations against state-of-the-art methods show our approach excels in anonymization, attribute preservation, and image quality. Its flexibility, robustness, and practicality make it well-suited for real-world applications. Code and data can be found at https://github.com/hanweikung/nullface .

View on arXivView PDF

Code Implementations(1)

AGPL-3.0

[FG 2026] Official implementation of the paper "NullFace: Training-Free Localized Face Anonymization"

282PythonMar 10, 20255 months agoAGPL-3.0

Similar Papers

Cite this paper

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

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2503.08478.svg)](https://codeofpaper.com/paper/2503.08478)

Discussion