Abstract
Face anonymization requires a delicate balance between obscuring identity and preserving non-identity attributes such as expression and pose. Traditional diffusion-based methods rely on inference-time interventions, which often lead to distribution shifts and feature entanglement. We present ID$^2$Face, a training-centric framework that explicitly decouples identity from other attributes using a structured latent space. By incorporating an Identity-Decoupled Latent Recomposer (IDLR), an Identity-Guided Latent Harmonizer (IGLH), and Orthogonal Identity Mapping (OIM), ID$^2$Face achieves state-of-the-art privacy protection and visual utility.
Introduction
The proliferation of facial data in public and private sectors has made face anonymization a critical task for privacy preservation. The goal is to generate a synthetic face that retains the utility of the original image—such as head pose, facial expression, and background—while ensuring the original identity cannot be recovered.
Recent advancements in Latent Diffusion Models (LDMs) have shown promise in this area. However, most existing methods treat anonymization as a post-hoc steering problem. They utilize "inference-time interventions," such as negative guidance or iterative optimization, to push the generated image away from the source identity. These approaches suffer from two primary drawbacks. First, they often cause a "distribution shift," where the model is forced into regions of the latent space it wasn't trained for, resulting in visual artifacts. Second, because identity and attributes are entangled in the model's weights, attempting to erase identity often inadvertently alters the person's expression or face shape.
Methodology: The ID$^2$Face Framework
To overcome these limitations, ID$^2$Face shifts the focus from inference-time manipulation to architectural design and supervised training. The framework is built upon three core components that work together to decouple and then harmonize identity and non-identity features.
Identity-Decoupled Latent Recomposer (IDLR)
The IDLR is responsible for extracting and separating features. It uses a pre-trained ArcFace model to extract identity embeddings, which are then processed by an ID-VAE to learn a compact, reconstructible identity representation. For non-identity attributes, the model uses a masked version of the source image and facial landmarks. Landmarks are encoded using Fourier embeddings to provide a geometric "anchor" for the face's structure, while CLIP features capture broader context like lighting and background.
Identity-Guided Latent Harmonizer (IGLH)
Merging decoupled features into a coherent image is a non-trivial task. Simple concatenation often leads to artifacts where the new identity does not align with the original head pose. The IGLH addresses this using a dual-branch attention mechanism within the diffusion UNet. It employs a learnable "soft-gating" mask that adaptively fuses identity and structure, ensuring the anonymized face looks natural and maintains the original geometry.
Orthogonal Identity Mapping (OIM)
During inference, a new identity is typically sampled from a random distribution. However, there is a statistical chance that a random sample might be too similar to the original identity. To prevent this "identity leakage," the authors introduce Orthogonal Identity Mapping (OIM). This mathematical constraint ensures that the sampled identity vector is strictly orthogonal to the source identity vector, maximizing the distance between the two in the identity space.
Experimental Results
The model was trained on high-quality datasets including VGGFace2-HQ and FFHQ, using same-identity pairs to supervise the disentanglement process. Evaluation was conducted on CelebA-HQ and FFHQ.
Quantitative Performance
ID$^2$Face demonstrates superior performance across both privacy and utility metrics. On the CelebA-HQ dataset, it achieved a 0.0000 Top-1 retrieval accuracy using ArcFace, indicating that the anonymized faces are unrecognizable to state-of-the-art face recognition systems. Furthermore, it maintained high visual fidelity with an FID score of 11.24, significantly outperforming previous diffusion-based methods like DiffPrivacy.
Qualitative Comparison
As shown in the comparison below, ID$^2$Face produces more natural results than simple feature concatenation, which often results in misaligned features or "ghosting" artifacts.
Discussion and Conclusion
ID$^2$Face represents a significant step forward in face anonymization by moving away from the "struggle" of inference-time intervention. By teaching the model to understand the components of a face during training, anonymization becomes a robust and high-fidelity process.
Despite its strengths, the model has limitations. It can struggle with demographic groups underrepresented in the training data, such as infants, and sometimes fails to perfectly reconstruct accessories like glasses due to the identity-masking strategy. Additionally, while it avoids the overhead of iterative optimization, the diffusion process remains computationally intensive, taking approximately 4.5 seconds per image. Future research focusing on accelerated sampling and broader dataset diversity will be essential for real-world deployment.
Summary updated