Controllable Localized Face Anonymization Via Diffusion Inpainting

Ali Salar, Qing Liu, Guoying Zhao
9/18/2025
cs.CV

No official code found. Best implementation: parham1998/Face-Anonymization (7 stars, last commit 2026-01-19).

Abstract

The growing use of portrait images in computer vision highlights the need to protect personal identities. At the same time, anonymized images must remain useful for downstream computer vision tasks. In this work, we propose a unified framework that leverages the inpainting ability of latent diffusion models to generate realistic anonymized images. Unlike prior approaches, we have complete control over the anonymization process by designing an adaptive attribute-guidance module that applies gradient correction during the reverse denoising process, aligning the facial attributes of the generated image with those of the synthesized target image. Our framework also supports localized anonymization, allowing users to specify which facial regions are left unchanged. Extensive experiments conducted on the public CelebA-HQ and FFHQ datasets show that our method outperforms state-of-the-art approaches while requiring no additional model training. The source code is available on our page.

View on arXivView PDF

Code Implementations(1)

Official Implementation of the Paper "Controllable Localized Face Anonymization via Diffusion Inpainting"

70PythonSep 8, 20259 months ago
controllable-anonymizationdiffusion-inpaintingdiffusion-modelsface-anonymizationicassp+2 more

Cite this paper

@article{salar2025controllable,
  title  = {Controllable Localized Face Anonymization Via Diffusion Inpainting},
  author = {Ali Salar and Qing Liu and Guoying Zhao},
  year   = {2025},
  eprint = {2509.14866},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2509.14866v2}
}

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/2509.14866.svg)](https://codeofpaper.com/paper/2509.14866)

Discussion