Makeup-Guided Facial Privacy Protection via Untrained Neural Network Priors

Fahad Shamshad, Muzammal Naseer, Karthik Nandakumar · DOI

Abstract

Facial recognition (FR) systems are increasingly deployed in public and private sectors, often without explicit user consent. While adversarial attacks can mitigate privacy risks by "cloaking" identities, traditional methods often introduce conspicuous digital noise or suffer from demographic biases due to limited training data. This paper discusses Deep Facial Privacy Prior (DFPP), a novel framework that utilizes untrained neural network priors to apply adversarial makeup. By optimizing a randomly initialized network at test-time, DFPP achieves high-fidelity makeup transfer that effectively fools FR systems while maintaining natural visual quality and eliminating gender-based performance disparities.

Introduction

The proliferation of face recognition technology has led to a growing demand for privacy-preserving tools. Adversarial attacks—perturbations designed to mislead AI models—offer a technical solution. However, early iterations often resulted in "noisy" images that were easily detectable by humans. Adversarial makeup emerged as a more subtle alternative, digitally applying cosmetic styles to mask identity.

Despite their promise, existing makeup-based methods are hindered by two primary factors: a heavy reliance on large, curated datasets of makeup-wearing faces and a significant gender bias. Because most makeup datasets are predominantly female, models trained on them often fail to generalize to male subjects, producing artifacts or failing to provide adequate protection. DFPP addresses these issues by bypassing the training phase entirely.

Methodology

Untrained Neural Network Priors

DFPP is built on the principle that the architecture of a convolutional neural network (CNN) itself acts as a "prior" that favors the generation of natural-looking images. Instead of using a pre-trained generator (e.g., StyleGAN), DFPP employs an untrained, randomly initialized network. This network is optimized specifically for a single pair of images: the source face (to be protected) and a reference makeup style.

Key Technical Components

To ensure the adversarial makeup is both effective and visually convincing, the framework incorporates several specialized modules:

  • Robust Correspondence Module (RCM): Utilizing facial parsing masks, the RCM ensures precise spatial alignment. This prevents "makeup bleed" by ensuring that cosmetic features like lipstick or eyeshadow are mapped correctly to the corresponding facial landmarks on the source image.
  • Structural Consistency Loss via DINO-ViT: To maintain the user's perceived identity to human observers, the authors utilize features from a pre-trained DINO-ViT model. By focusing on the "keys" in self-attention layers, the system preserves the underlying facial geometry and structural integrity while allowing for color and texture modifications.
  • Adversarial Loss: This component drives the "cloaking" process. It optimizes the image to either move the digital signature away from the true identity (dodging) or toward a different identity (impersonation) within the feature space of target FR models.
  • Video Optimization: For temporal consistency in video applications, DFPP uses a "warm-start" strategy. The optimized weights from a preceding frame serve as the initialization for the current frame, resulting in a 10x speedup compared to frame-by-frame optimization.

Experimental Results

The researchers evaluated DFPP against several benchmarks, including CelebA-HQ, LADN, and LFW, and tested its efficacy against commercial systems such as Face++ and Tencent Yunshentu.

Performance and Protection

DFPP demonstrated a superior Protection Success Rate (PSR), outperforming state-of-the-art methods like AMT-GAN and TIP-IM by approximately 10-12%. When tested against commercial APIs, the protected images consistently returned low confidence scores, indicating successful identity concealment.

Mitigating Demographic Bias

A significant finding of the study is DFPP’s gender neutrality. While previous GAN-based models showed a 1.41 performance ratio favoring female faces, DFPP achieved a near-perfect 1.02 ratio. Because the model is not trained on biased datasets, it treats all facial structures with mathematical objectivity, providing equitable protection across demographics.

Discussion and Limitations

While DFPP offers a robust and bias-free approach to facial privacy, it is currently limited by its computational demands. Because the model requires test-time optimization for every new image, it is slower than "one-shot" generative models. Additionally, the effectiveness of the protection remains somewhat dependent on the chosen reference makeup style.

Conclusion

Deep Facial Privacy Prior (DFPP) represents a significant advancement in adversarial makeup. By leveraging untrained neural network priors and structural consistency losses, the method provides a high-fidelity, gender-neutral solution for facial privacy. This approach demonstrates that sophisticated privacy protection can be achieved without the need for massive, potentially biased datasets, paving the way for more inclusive and accessible privacy tools.

Summary updated

BibTeX
@inproceedings{shamshad2024makeup,
  author = {Fahad Shamshad and Muzammal Naseer and Karthik Nandakumar},
  title = {{Makeup-Guided Facial Privacy Protection via Untrained Neural Network Priors}},
  booktitle = {Workshops @ ECCV},
  year = {2024},
  doi = {10.1007/978-3-031-92089-9\_15},
}
Figure