Gender Privacy: An Ensemble of Semi Adversarial Networks for Confounding Arbitrary Gender Classifiers

Vahid Mirjalili, Sebastian Raschka, Arun Ross

Abstract

Recent research has proposed the use of Semi Adversarial Networks (SAN) for imparting privacy to face images. SANs are convolutional autoencoders that perturb face images such that the perturbed images cannot be reliably used by an attribute classifier (e.g., a gender classifier) but can still be used by a face matcher for matching purposes. However, the generalizability of SANs across multiple arbitrary gender classifiers has not been demonstrated in the literature. In this work, we tackle the generalization issue by designing an ensemble SAN model that generates a diverse set of perturbed outputs for a given input face image. This is accomplished by enforcing diversity among the individual models in the ensemble through the use of different data augmentation techniques. The goal is to ensure that at least one of the perturbed output faces will confound an arbitrary, previously unseen gender classifier. Extensive experiments using different unseen gender classifiers and face matchers are performed to demonstrate the efficacy of the proposed paradigm in imparting gender privacy to face images.

Introduction

In the era of big data and stringent privacy regulations like GDPR, biometric privacy has become a critical concern. Face images shared for specific purposes—such as authentication or access control—often contain "soft biometrics" like age, gender, and race that users may not wish to disclose. While previous research into Semi Adversarial Networks (SANs) demonstrated the feasibility of perturbing images to hide these attributes, these early models lacked generalizability. A SAN optimized to fool a specific classifier often failed against others. This paper addresses the challenge of "arbitrary" privacy: creating perturbations that remain effective against gender classifiers the system has never encountered during training.

Methodology

Semi Adversarial Networks (SAN)

The foundation of the proposed approach is the SAN, a convolutional autoencoder designed with a dual-purpose loss function. The network is trained to minimize two competing objectives:

  1. Gender Prediction Loss: Maximizing the failure rate of a gender classifier.
  2. Identity Loss: Ensuring a face matcher can still accurately recognize the individual.
Architecture of a single Semi Adversarial Network (SAN). It consists of a convolutional autoencoder (Subnetwork I) and two auxiliary networks: a face matcher (Subnetwork II) and a gender predictor (Subnetwork III).

To guide the perturbation process, the model utilizes Face Prototypes. Rather than simply flipping a binary gender label, the model uses average face templates (e.g., "Young-White-Female") to ensure that while gender is confounded, other attributes like age and race are preserved, maintaining the image's natural appearance.

Ensemble of SANs for Generalization

To solve the generalization problem, the authors transition from a single SAN to an ensemble. The core hypothesis is that diversity within the ensemble ensures that at least one perturbed image will fall into the "blind spot" of an arbitrary, unseen classifier. Diversity is enforced through three distinct training schemes:

  • E1 (Regular): Five SANs trained with different random initial weights.
  • E2 (Subject-based oversampling): Training on datasets where a subset of subjects is duplicated to create variance.
  • E3 (Race-based oversampling): Specifically designed to counter algorithmic bias by oversampling underrepresented racial groups (e.g., Black subjects) to balance the training distribution.
Ensemble training schemes (E1, E2, E3) using different oversampling strategies to enforce diversity among the models.

Experimental Setup

The study utilized five major face image datasets for comprehensive evaluation:

  • CelebA: Used for training auxiliary classifiers and SAN models.
  • MORPH: A large-scale, demographically diverse dataset used for evaluation.
  • LFW (Labeled Faces in the Wild): Used to construct unseen gender classifiers.
  • MUCT & RaFD: Used for additional cross-environment performance evaluation.

Key Results and Discussion

Generalization and Privacy

The ensemble successfully confounded 9 different "unseen" gender classifiers, including commercial-off-the-shelf (COTS) systems and various CNN architectures. A key finding was the superiority of the Race-based oversampling (E3) scheme. On the MORPH dataset, E3 significantly outperformed the standard ensemble (E1), reducing gender classification accuracy to near-random levels and proving that privacy technology must be demographically aware to be truly effective.

Utility Retention

Crucially, the perturbations did not destroy the biometric utility of the images. Using matchers like FaceNet and OpenFace, the True Match Rate (TMR) on perturbed images closely tracked the performance on original, unaltered images. This demonstrates that identity and gender features occupy different subspaces in deep neural networks, allowing one to be modified without compromising the other.

Conclusion

This work demonstrates that an ensemble of diverse SANs can effectively impart gender privacy against arbitrary classifiers while maintaining face recognition utility. While the AI is successfully confounded, future work will explore the impact on human perception and the extension of this framework to hide multiple attributes simultaneously, such as age and race. Additionally, optimizing the computational overhead of running multiple models remains a priority for real-time applications.

Summary updated

BibTeX
@inproceedings{mirjalili2018gender,
  author = {Vahid Mirjalili and Sebastian Raschka and Arun Ross},
  title = {{Gender Privacy: An Ensemble of Semi Adversarial Networks for Confounding Arbitrary Gender Classifiers}},
  booktitle = {Btas},
  year = {2018},
  doi = {10.1109/btas.2018.8698605},
}
Figure