Abstract
This paper presents a novel diffusion-based framework for secure and reversible face anonymization. By leveraging the deterministic properties of Denoising Diffusion Implicit Models (DDIM) and a secret-key-driven sign-flipping mechanism in the latent space, the proposed method generates high-fidelity anonymized faces. These faces preserve the original context—such as pose, lighting, and background—while effectively masking identity. Crucially, the process is mathematically reversible, allowing authorized recovery of the original identity with the correct cryptographic key. Evaluation on CelebA-HQ and LFW datasets demonstrates superior anonymization performance and reconstruction accuracy compared to existing GAN-based methods.
Introduction
Face anonymization is a critical balancing act between three competing requirements: privacy (effectively hiding identity), utility (maintaining image realism for downstream tasks), and reversibility (allowing authorized recovery for legal or investigative purposes).
Traditional methods like blurring or pixelation significantly destroy image utility. Recent AI-based approaches using Generative Adversarial Networks (GANs) produce realistic faces but often suffer from "mode collapse," where the model generates repetitive features. Furthermore, existing Diffusion Model (DM) approaches, while excellent at high-quality generation, have lacked a secure, key-based mechanism to "lock" and "unlock" original identities. This work addresses these gaps by introducing the first diffusion-based framework for secure and reversible anonymization.
Methods
The proposed pipeline is built upon Stable Diffusion and Denoising Diffusion Implicit Models (DDIM). The process follows three primary stages:
- Deterministic Mapping: Standard diffusion is stochastic. To ensure reversibility, the authors utilize DDIM to create a deterministic path between the original face and its representation as Gaussian noise in a latent space.
- Secret-Key Sign Flipping: This is the core innovation. A secret key $K$ generates a pseudo-random "Rademacher vector" (comprising 1s and -1s). This vector flips the signs of specific latent noise coordinates. Because flipping a sign twice returns it to the original state ($1 \times 1 = 1$ and $-1 \times -1 = 1$), the process is mathematically reversible.
- Facial Masking: To preserve the image context (hair, background, clothing), a face parser (BiSeNet) creates a mask ($M_z$). Only the pixels within the facial region undergo the sign-flipping process.
When the "anonymized" noise is decoded, the Diffusion Model interprets it as a valid set of Gaussian noise and generates a completely new, realistic face that matches the original's pose and lighting but possesses a different identity.
Key Results
The authors evaluated their method against state-of-the-art GAN and Transformer-based models, including RiDDLE, G2Face, and iFADIT, using the CelebA-HQ and LFW benchmarks.
- Superior Anonymization: On the CelebA-HQ dataset, the method achieved a lower cosine similarity (0.029 using ArcFace) between original and anonymized faces compared to competitors, indicating more effective identity masking.
- High-Fidelity Recovery: With the correct key, the method achieved a 70.5% True Acceptance Rate (TAR) at a strict False Acceptance Rate (0.1%) on the LFW dataset, significantly outperforming RiDDLE (29.8%) and iFADIT (1.0%).
- Visual Quality: Qualitative results (see Figure 2) show that the generated faces are more diverse and realistic than GAN-based approaches, which often produce repetitive or "ghostly" artifacts.
Discussion and Limitations
The system is highly sensitive to the secret key; even a single-bit difference results in a complete failure to recover the identity, a desirable trait for cryptographic security. However, some limitations remain. Diffusion models are computationally intensive, requiring approximately 50 timesteps, which may be too slow for real-time video applications. Additionally, the quality of anonymization depends on the accuracy of the face parser; failures in parsing (e.g., due to extreme profiles) can lead to unnatural boundaries. Future work may explore more efficient sampling techniques and robustness against adversarial identity-transfer attacks.
Summary updated