Enhancing Generalization of Invisible Facial Privacy Cloak via Gradient Accumulation

Xuannan Liu, Yaoyao Zhong, Weihong Deng, Hongzhi Shi, Xingchen Cui, Yunfeng Yin, Dongchao Wen

Abstract

The blooming of social media and face recognition (FR) systems has increased people's concern about privacy and security. A new type of adversarial privacy cloak (class-universal) can be applied to all the images of regular users, to prevent malicious FR systems from acquiring their identity information. In this work, we discover the optimization dilemma in the existing methods -- the local optima problem in large-batch optimization and the gradient information elimination problem in small-batch optimization. To solve these problems, we propose Gradient Accumulation (GA) to aggregate multiple small-batch gradients into a one-step iterative gradient to enhance the gradient stability and reduce the usage of quantization operations. Experiments show that our proposed method achieves high performance on the Privacy-Commons dataset against black-box face recognition models.

Introduction

As face recognition (FR) technology becomes ubiquitous on social media, the risk of unauthorized identity tracking grows. While traditional obfuscation methods like blurring protect privacy, they significantly degrade visual quality. Adversarial privacy cloaks offer a more sophisticated alternative: imperceptible perturbations that deceive AI models without ruining the image for human viewers.

However, existing "person-specific" cloaks—designed to work across all photos of an individual—face a critical optimization dilemma. Large-batch optimization often converges to "sharp" local minima, which fail to generalize to unseen images. Conversely, small-batch optimization, while better at finding generalizable "flat" minima, suffers from "gradient information elimination" due to the frequent quantization (sign operations) required by adversarial attacks.

Methodology: GA-OPOM

To address these challenges, we introduce GA-OPOM (Gradient Accumulation One Person One Mask). This method decouples gradient calculation from mask updates through a dual-loop structure:

  1. Inner Loop (Accumulation): Instead of immediate updates, the algorithm performs multiple "pre-search" steps across small batches. It calculates raw gradients for different images and aggregates them into a single accumulated gradient ($g^{Accum}$).
  2. Outer Loop (Update): The actual privacy mask is updated only after this accumulation, applying the quantization (sign) operation to the stabilized gradient.
Conceptual overview of the optimization dilemma and the proposed GA-OPOM method for gradient stabilization.

This approach leverages the stochastic noise of small batches to escape sharp minima while using accumulation to preserve the "true" direction of the attack, minimizing the destructive impact of quantization.

Experimental Setup

We evaluated GA-OPOM using the Privacy-Commons dataset (derived from MegaFace), featuring 500 individuals with 15 images each (10 for training, 5 for testing). We tested transferability against several black-box target models, including ArcFace, CosFace, SFace, MobileNet, SENet, and Inception-ResNet.

Results and Discussion

Our experiments demonstrate that GA-OPOM significantly enhances the protection success rate (PSR) across various architectures. For instance, on the CosFace model, the average PSR increased from 67.1% with standard OPOM to 78.5% with our GA-enhanced version.

Performance analysis of Gradient Accumulation across different target models and varying accumulation steps (K).

Key insights from our study include:

  • Flat Minima Advantage: By nudging optimization toward flatter regions of the loss landscape, GA-OPOM ensures that the privacy cloak remains effective on new, unseen photos.
  • Quantization Resilience: Accumulating gradients before applying the sign() operation prevents useful signals from being canceled out by noise, a common failure mode in small-batch adversarial training.
  • Extensibility: GA-OPOM is highly compatible with other transferability techniques like momentum-based attacks, providing consistent performance boosts.

Conclusion and Future Work

GA-OPOM provides a robust framework for generating generalizable facial privacy cloaks. While highly effective in digital black-box scenarios, future research should address robustness in physical "print-and-capture" environments and evaluate performance against adaptive defenses specifically designed to mitigate adversarial noise.

Summary updated

BibTeX
@inproceedings{liu2024enhancing,
  author = {Xuannan Liu and Yaoyao Zhong and Weihong Deng and Hongzhi Shi and Xingchen Cui and Yunfeng Yin and Dongchao Wen},
  title = {{Enhancing Generalization of Invisible Facial Privacy Cloak via Gradient Accumulation}},
  booktitle = {IEEE International Conference on Acoustics, Speech and Signal Processing},
  year = {2024},
  url = {https://openreview.net/forum?id=RxCOzyeHVy},
}
Figure