FG 2026 — International Conference on Automatic Face and Gesture Recognition
Oral Presentation

NullFace: Training-Free Localized Face Anonymization

Han-Wei Kung1,  Tuomas Varanka2,  Terence Sim3,  Nicu Sebe1

1University of Trento, Italy  •  2University of Oulu, Finland  •  3National University of Singapore, Singapore

Original
Original face 1
Original face 2
Full facial anonymization
Inpainting 1 Ours 1
Inpainting 2 Ours 2
Inpainting Ours
Localized facial anonymization
Keep eyes 1 Keep nose 1 Keep mouth 1
Keep eyes 2 Keep nose 2 Keep mouth 2
Keep eyes Keep nose Keep mouth

Our method obscures identity while preserving attributes such as gaze, expressions, and head pose (in contrast to Stable Diffusion Inpainting) and enables selective anonymization of specific facial regions.

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 github.com/hanweikung/nullface.

Method

Our anonymization framework integrates diffusion model inversion, a dual-path denoising structure, and modified face embeddings. Given a facial image, we perform DDPM inversion to retrieve the initial noise map xT and a sequence of noise maps {zt}. Face embeddings extracted via a face recognition model are negated with a hyperparameter λid, creating negative identity guides that steer generation away from the original identity during denoising.

The denoising combines conditional and unconditional paths: the conditional path uses negated identity embeddings to obscure identifying features, while the unconditional path preserves non-identifying attributes. Outputs are merged via classifier-free guidance. For localized control, segmentation maps selectively anonymize specific facial regions while preserving others.

Pipeline schematic

Experiments

Controlling Image Alignment via Tskip

Increasing Tskip makes the generated face align more closely with the original image structure and pose.

T_skip effect CelebA T_skip effect FFHQ
Tskip=0 Tskip=29 Tskip=59 Tskip=89 Original

Identity Change with Anonymization Parameter λid

Increasing λid controls how far the anonymized identity drifts from the source.

Lambda_id effect CelebA Lambda_id effect FFHQ
Original λid=0.0 λid=0.33 λid=0.67 λid=1.0

Effect of Guidance Scale λcfg

Higher guidance scale values yield anonymized identities that are more distinct from the originals. However, excessive guidance reduces photorealism.

cfg scale CelebA cfg scale FFHQ
Original λcfg=5 λcfg=10 λcfg=15 λcfg=20

Localized Anonymization via Segmentation Masks

Segmentation masks make it possible to anonymize the full face or keep specific regions visible, such as the eyes, nose, or mouth.

Mask CelebA Mask FFHQ
Original Change whole face Keep eyes Keep nose Keep mouth

Comparison with Baselines

Quantitative Results

Quantitative results on CelebA-HQ (CHQ) and FFHQ (FHQ). Best results are bold, second-best are underlined.

Method Re-ID (%) ↓ Attribute Distance ↓ Image Quality ↓
AdaFace FaceNet Expression Gaze Pose FID
CHQFHQ CHQFHQ CHQFHQ CHQFHQ CHQFHQ CHQFHQ
Ours 0.2080.343 0.2890.383 10.0349.852 0.1650.186 0.0530.056 8.2238.779
FAMS 3.13114.152 0.8665.570 10.0018.823 0.1640.176 0.0530.047 17.12811.215
FALCO 0.104 0.100 10.208 0.277 0.088 39.168
RiDDLE 0.510 0.042 10.038 0.215 0.081 69.259
LDFA 10.28411.152 4.2754.925 8.64710.387 0.2600.353 0.0920.113 8.0589.946
DP2 0.8351.881 0.7221.186 9.91210.183 0.2620.299 0.1610.163 16.93518.632

Privacy–Utility Trade-off

Privacy–Utility Trade-off Evaluation. The green gradient highlights the optimal zone (lower-left) where both privacy (low Re-ID) and utility (low metric values) are achieved. Our method offers the best balance across all metrics.

Expression tradeoff FFHQ
Gaze tradeoff FFHQ
Pose tradeoff FFHQ
FID tradeoff FFHQ
Expression tradeoff CelebA
Gaze tradeoff CelebA
Pose tradeoff CelebA
FID tradeoff CelebA
Legend

Qualitative Results — CelebA-HQ

Comparison CelebA 1 Comparison CelebA 2 Comparison CelebA 3 Comparison CelebA 4
Original Ours FAMS FALCO LDFA DP2

Qualitative Results — FFHQ

Comparison FFHQ 1 Comparison FFHQ 2 Comparison FFHQ 3 Comparison FFHQ 4
Original Ours FAMS RiDDLE LDFA DP2

Localized Anonymization Applications

Localized anonymization enables practitioners to share case studies while maintaining patient confidentiality. The example below shows facial identity being anonymized while preserving dermatological symptoms (acne on the cheeks).

Application original
Original
Application mask
Mask (keep cheek)
Application anonymized
Anonymized

BibTeX

@inproceedings{kung2026nullface, title = {NullFace: Training-Free Localized Face Anonymization}, author = {Kung, Han-Wei and Varanka, Tuomas and Sim, Terence and Sebe, Nicu}, booktitle = {2026 IEEE 20th International Conference on Automatic Face and Gesture Recognition (FG)}, year = {2026} }