ErasableMask: A Robust and Erasable Privacy Protection Scheme against Black-box Face Recognition Models

Sipeng Shen, Yunming Zhang, Dengpan Ye, Xiuwen Shi, Long Tang, Haoran Duan, Yueyun Shang, Zhihong Tian

Here is a concise, engaging summary of the paper "ErasableMask: A Robust and Erasable Privacy Protection Scheme against Black-box Face Recognition Models".

TL;DR

ErasableMask is a novel facial privacy protection framework that generates highly transferable semantic adversarial examples to fool black-box face recognition systems while remaining completely reversible ("erasable") by authorized parties. By combining a meta-auxiliary attack strategy with curriculum learning, it achieves state-of-the-art protection without permanently destroying the underlying biometric utility of the image.

What Problem Does This Paper Address?

Publicly shared photos on social media platforms are highly vulnerable to unauthorized scraping and malicious face recognition (FR) tracking. While adversarial perturbations can block these FR models by tricking them into misidentifying faces, current methods face two major hurdles:

  1. Weak Transferability: Most existing methods overfit the specific "white-box" surrogate models used during training, making them fail against real-world, black-box commercial FR systems.
  2. Permanent Damage: Traditional adversarial masks permanently distort facial features or inject irreversible pixel noise. This prevents legitimate, authorized uses of the images later on, such as forensic verification or secure authentication by trusted authorities (TAs).

ErasableMask bridges this gap by creating a protection mechanism that is robust against black-box systems, resilient to social media image compression, and fully reversible by a trusted authority.

ErasableMask protection scenario overview

Methods

ErasableMask is built on a conditional GAN architecture and introduces three key innovations to balance attack strength, image naturalness, and reversibility:

  • Meta-Auxiliary Attack: Instead of standard ensemble attacks that simply aggregate losses across multiple white-box surrogate models, ErasableMask splits surrogates into primary and auxiliary tasks. It uses a meta-learning approach with double gradients to find a balanced optimization direction, preventing easily attackable models from dominating the training process and significantly boosting generalization to unseen black-box systems.
  • Clean-Domain Information Injection: Because semantic attribute modifications (like altering facial expressions or features) inherently destroy original identity information, the authors introduce an additional branch during generation. This branch injects clean-domain features back into the network, acting as a hidden "blueprint" that allows a companion restorer network to accurately reconstruct the original face later.
  • Three-Stage Curriculum Learning: Generating a powerful attack and ensuring perfect image restoration are conflicting optimization goals. To mitigate this, the authors employ a progressive training curriculum:
  • Stage 1: Focuses purely on learning natural facial attribute manipulation.
  • Stage 2: Tightly couples the generator and restorer end-to-end while introducing a differentiable noise pool.
  • Stage 3: Independently fine-tunes the restorer to maximize its recovery performance from the adversarial domain back to the clean domain.
Fig. 2. Pipeline of ErasableMask: A three-stage curriculum learning is introduced to address optimization conflicts between adversarial and erasion performance. Stage 1: Gend and Gdec learn an attribute modification strategy. Stage 2: Eadv and R are tightly coupled and trained end-to-end. Stage 3: The robustness and erasion capabilities of R are further strengthened.

Datasets

The framework was trained and evaluated on two widely used, high-resolution facial datasets:

  • CelebA-HQ: A high-quality dataset containing approximately 30,000 celebrity facial images.
  • FFHQ (Flickr-Faces-HQ): A high-quality dataset containing over 70,000 real-world facial images with diverse ethnicities, ages, and backgrounds.

For computational feasibility, images were preprocessed using MTCNN to extract facial regions and downscaled to $256 \times 256$ resolution.

Key Insights and Ideas

  • Ensemble Attacks Suffer from Imbalance: In traditional ensemble attacks, optimization algorithms naturally prioritize fitting the easiest surrogate models first. This creates an optimization imbalance that leads to severe overfitting. Treating surrogate models as meta-tasks forces the generator to learn more robust, generalizable features.
  • Semantic vs. Pixel Perturbations: Pixel-level noise is fragile and easily wiped out by standard social media image processing (like JPEG compression or resizing). Semantic perturbations—which modify actual facial attributes—are inherently much more robust to real-world transmission standards.
  • The Reversibility Trade-off: Perfect restoration requires preserving source information, which inherently limits adversarial strength. By tuning the information injection weight ($\gamma$), users can dynamically balance how hard they want to trick unauthorized models versus how perfectly the trusted authority can restore the image.

Key Results

ErasableMask was evaluated against both offline models (like ArcFace, FaceNet, and CosFace) and commercial black-box APIs (Aliyun, Tencent, and Face++).

  • Commercial Black-Box Success: ErasableMask achieved an average confidence score of over 72% in impersonation attacks across commercial systems, outperforming the next best face-based method by a wide margin.
  • High Erasion Success Rate (ESR): In black-box scenarios, the authorized restorer successfully recovered clean faces with a success rate exceeding 90%, allowing accurate authorized face verification.
  • Image Processing Robustness: Thanks to the integrated noise pool, the protection and erasion capabilities remained highly stable even under aggressive JPEG compression ($QF=50$), Gaussian noise, resizing, and median filtering.
Visualization of protected and reconstructed faces compared to other schemes

Limitations and Future Work

The authors acknowledge a key limitation regarding evaluation metrics: current image quality assessment tools (such as LPIPS and FID) are optimized for pixel-level noise. They do not accurately capture the perceived "naturalness" or visual quality of semantic attribute modifications, making it difficult to purely quantify visual degradation.

Additionally, while the method is highly robust against compression and filtering, its erasion performance drops under severe spatial transformations like random rotation and central cropping—areas the authors target for future improvement.

Summary updated

Abstract

While face recognition (FR) models have brought remarkable convenience in face verification and identification, they also pose substantial privacy risks to the public. Existing facial privacy protection schemes usually adopt adversarial examples to disrupt face verification of FR models. However, these schemes often suffer from weak transferability against black-box FR models and permanently damage the identifiable information that cannot fulfill the requirements of authorized operations such as forensics and authentication. To address these limitations, we propose ErasableMask, a robust and erasable privacy protection scheme against black-box FR models. Specifically, via rethinking the inherent relationship between surrogate FR models, ErasableMask introduces a novel meta-auxiliary attack, which boosts black-box transferability by learning more general features in a stable and balancing optimization strategy. It also offers a perturbation erasion mechanism that supports the erasion of semantic perturbations in protected face without degrading image quality. To further improve performance, ErasableMask employs a curriculum learning strategy to mitigate optimization conflicts between adversarial attack and perturbation erasion. Extensive experiments on the CelebA-HQ and FFHQ datasets demonstrate that ErasableMask achieves the state-of-the-art performance in transferability, achieving over 72% confidence on average in commercial FR systems. Moreover, ErasableMask also exhibits outstanding perturbation erasion performance, achieving over 90% erasion success rate.
BibTeX
@article{shen2024erasablemask,
  author = {Sipeng Shen and Yunming Zhang and Dengpan Ye and Xiuwen Shi and Long Tang and Haoran Duan and Yueyun Shang and Zhihong Tian},
  title = {{ErasableMask: A Robust and Erasable Privacy Protection Scheme against Black-box Face Recognition Models}},
  journal = {IEEE Transactions on Multimedia},
  year = {2024},
}
Figure