Fair Attribute Classification Through Latent Space De-Biasing

Vikram V. Ramaswamy, Sunnie S. Y. Kim, Olga Russakovsky

Introduction: The Problem of Spurious Correlations

Machine learning models are inherently statistical "shortcut" seekers. When a training dataset contains strong correlations between a target label (e.g., "wearing a hat") and a protected attribute (e.g., "gender"), the model may learn to use the protected attribute as a proxy for the target. For instance, if the majority of individuals wearing hats in a dataset are men, a classifier might fail to recognize a hat on a woman, leading to significant algorithmic bias.

Breaking spurious correlations through paired augmentation.

While the ideal solution is a perfectly balanced dataset, collecting such data in the real world is often logistically impossible or prohibitively expensive. This paper addresses the challenge by generating "counterfactual" synthetic data to break these statistical ties.

Methodology: Latent Space De-biasing

The authors propose a framework called Latent Space De-biasing. Instead of sourcing new real-world images, they leverage Generative Adversarial Networks (GANs) to "hallucinate" missing data combinations.

The Perturbation Mechanism

The core of the method lies in manipulating the GAN's latent space $Z$. By identifying hyperplanes that correspond to specific attributes, the researchers can perform a "perturbation trick":

  1. Latent Mapping: Using a pre-trained GAN (such as ProGAN), they identify directions in the latent space that represent target and protected attributes.
  2. Paired Generation: For any random latent vector $z$, they calculate a complementary vector $z'$. This vector is mathematically designed to preserve the score of the target attribute while negating the score of the protected attribute.
  3. Augmentation: The resulting image pairs—$G(z)$ and $G(z')$—are added to the training set. This ensures the classifier receives a balanced signal where the target attribute is no longer statistically tied to the protected one.
Latent space manipulation using attribute hyperplanes to generate counterfactual pairs.

Key Insights and Experimental Results

The researchers evaluated their approach using the CelebA dataset, focusing on "Male" as the protected attribute across 26 target labels.

Relative Discriminability

A critical finding is that bias is most prevalent when the protected attribute is "easier" for the model to learn than the target attribute. If a model can easily identify gender, it will use it as a crutch to predict more visually complex attributes like "Goatee."

Fairness Gains

The method demonstrated significant improvements in fairness metrics, such as Difference in Equality of Opportunity (DEO) and Bias Amplification (BA). For gender-independent attributes (like eyeglasses), the method improved DEO from 16.7 to 13.9 and reduced Bias Amplification to zero, all while maintaining high classification accuracy (Average Precision).

Efficiency

Unlike previous approaches that required training a separate GAN for every attribute pair, this method utilizes a single, pre-trained GAN to de-bias multiple target labels simultaneously, making it significantly more scalable.

Limitations and Future Outlook

While effective, the method's success is tied to the quality of the underlying GAN. If a GAN cannot realistically generate certain demographic groups or rare accessories, the de-biasing effect is diminished. Furthermore, the approach currently assumes that attributes are linearly separable in the latent space.

Future work may involve exploring GAN-inversion to perturb real-world images directly, potentially bypassing the need for purely synthetic data and further improving the robustness of fair visual classifiers.

Summary updated

BibTeX
@inproceedings{ramaswamy2021fair,
  author = {Vikram V. Ramaswamy and Sunnie S. Y. Kim and Olga Russakovsky},
  title = {{Fair Attribute Classification Through Latent Space De-Biasing}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2021},
  doi = {10.1109/cvpr46437.2021.00918},
}
Figure