Abstract
In an era where personal photos are easily leaked and collected, face de-identification is a crucial method for protecting identity privacy. However, current face de-identification techniques face challenges in preserving attribute details and often produce anonymized results with reduced authenticity. These shortcomings are particularly evident when handling occlusions, frequently resulting in noticeable editing artifacts. Our primary finding in this work is that simultaneous training of identity disentanglement and anonymization hinders their respective effectiveness. Therefore, we propose "Disentangle Before Anonymize", a novel two-stage Framework (DBAF) designed for attribute-preserved and occlusion-robust de-identification. This framework includes a Contrastive Identity Disentanglement (CID) module and a Key-authorized Reversible Identity Anonymization (KRIA) module, achieving faithful attribute preservation and high-quality identity anonymization edits. Additionally, we introduce a Multiscale Attentional Attribute Retention (MAAR) module to address the issue of reduced anonymization quality under occlusions. Extensive experiments demonstrate that our method outperforms state-of-the-art de-identification approaches, delivering superior quality, enhanced detail fidelity, improved attribute preservation performance, and greater robustness to occlusions.
Introduction: The Privacy-Utility Trade-off
Face de-identification is a fundamental balancing act in privacy research. The goal is to obscure a person's identity to prevent unauthorized recognition while maintaining the image's visual realism and utility for downstream tasks like face detection or expression analysis. Current Generative Adversarial Network (GAN)-based methods often struggle with three critical issues: visual artifacts that create an "uncanny valley" effect, failure to handle occlusions (such as hands or glasses), and the irreversibility of the process, which prevents authorized users from recovering original data.
We identify that the root cause of these failures is the attempt to learn identity disentanglement and anonymization simultaneously. This multitasking during training leads to "leakage" between identity and attribute features, resulting in blurry textures and lost context.
The DBAF Framework: Disentangle Before Anonymize
To address these limitations, we propose the Disentangle Before Anonymize Framework (DBAF). This approach splits the de-identification process into two distinct, sequential stages:
Stage 1: Contrastive Identity Disentanglement (CID)
Using a pre-trained encoder (E4E) and a StyleGAN2 backbone, the CID module learns to pull apart a face into two distinct latent codes: one representing identity and the other representing attributes (such as lighting, pose, and expression). By employing a specific contrastive loss function, we ensure that these components are strictly decoupled, preventing identity information from persisting in the attribute code.
Stage 2: Key-authorized Reversible Identity Anonymization (KRIA)
The KRIA module introduces a cryptographic approach to de-identification. The identity code is modified based on a randomly generated digital key. If an authorized user possesses the correct key, the original identity can be perfectly reconstructed. Without the key, the model generates a high-quality, realistic face belonging to a non-existent person, ensuring privacy while maintaining the original image's context.
Handling Occlusions with MAAR
To ensure robustness against real-world scenarios, we introduced the Multi-scale Attentional Attribute Retention (MAAR) module. This module analyzes the image at multiple resolutions to identify and preserve fine details—such as hair strands, glasses, or hands—that might be blocking the face. This prevents the model from "erasing" or smearing these occlusions during the anonymization process.
Experimental Results and Evaluation
Our framework was evaluated on the FFHQ and CelebA-HQ datasets, outperforming state-of-the-art (SotA) methods like RiDDLE and FALCO across several key metrics:
- Privacy Protection: DBAF achieved a remarkably low recognition rate of 0.012 on FaceNet, significantly outperforming competitors in hiding the original identity.
- Image Fidelity: The model achieved the highest PSNR (24.978) and the lowest FID (9.61) on CelebA-HQ, indicating superior visual realism and a lack of the artifacts common in other GAN-based methods.
- Detection Utility: Even after anonymization, the images remained highly useful for AI tasks, maintaining a 1.0 detection rate for face and landmark detection models (MtCNN and Dlib).
Qualitative analysis confirms that DBAF maintains crisp details even under heavy occlusion, where other models typically produce messy editing traces or blurry textures.
Conclusion
By decoupling identity disentanglement from the anonymization process, the DBAF framework provides a more robust and realistic solution for face de-identification. The inclusion of key-authorized reversibility and the MAAR module for occlusion robustness makes this framework a practical tool for secure cloud storage and privacy-conscious data sharing. Future work will focus on streamlining the architecture for real-time video applications and further compacting the identity latent space.
Summary updated