Through a Fair Looking-Glass: Mitigating Bias in Image Datasets

Amirarsalan Rajabi, Mehdi Yazdani-Jahromi, Ozlem Ozmen Garibay, Gita Sukthankar

International Conference on Human-Computer Interaction (HCII 2023), Artificial Intelligence in HCI, 2023

TL;DR A U-Net learns small edits to each image that reduce the statistical dependence (HSIC) between the target attribute (Attractive) and gender. This de-biases the dataset itself, so classifiers trained on it are fairer.

Six CelebA test images The same six images after the de-biasing U-Net Original Reconstructed
CelebA test images before and after the trained U-Net. The changes are subtle, mostly texture and facial detail, and they are enough to reduce the statistical dependence between Attractive and Gender. Drag across the image to compare.

Abstract

With the recent growth in computer vision applications, the question of how fair and unbiased they are has yet to be explored. There is abundant evidence that the bias present in training data is reflected in the models, or even amplified. Many previous methods for image dataset de-biasing, including models based on augmenting datasets, are computationally expensive to implement. In this study, we present a fast and effective model to de-bias an image dataset through reconstruction and minimizing the statistical dependence between intended variables. Our architecture includes a U-net to reconstruct images, combined with a pre-trained classifier which penalizes the statistical dependence between target attribute and the protected attribute. We evaluate our proposed model on CelebA dataset, compare the results with a state-of-the-art de-biasing method, and show that the model achieves a promising fairness-accuracy combination.

Method

(a) Training: a U-Net reconstructs a batch of images. An MSE loss keeps the output close to the input, and a frozen two-headed ResNet predicts gender and the target attribute so that their statistical dependence (HSIC) can be penalized. (b) Use: the trained U-Net transforms the dataset, and downstream classifiers are trained on the result.
(a) Training: a U-Net reconstructs a batch of images. An MSE loss keeps the output close to the input, and a frozen two-headed ResNet predicts gender and the target attribute so that their statistical dependence (HSIC) can be penalized. (b) Use: the trained U-Net transforms the dataset, and downstream classifiers are trained on the result.

Results

Results on CelebA, using the attribute categories of Ramaswamy et al. (2021). Each value is the average over all attributes in that category.

AP ↑DP ↓DEO ↓
Incons.G-depG-indepIncons.G-depG-indepIncons.G-depG-indep
Baseline0.6670.7900.8430.1470.2550.1370.1860.2430.163
GAN debiasing0.6410.7630.8310.1060.2330.1190.1580.2400.142
Adversarial debiasing0.2430.3330.2180.0910.1690.1210.1360.1490.098
Ours0.6180.7320.8390.0970.1460.1180.1240.1720.114
How much the model changes each attribute (red: change in demographic parity of that attribute's classifier) compared with how strongly the attribute depends on Attractive in the original data (blue: HSIC). The model mostly edits attributes that are entangled with the target.
How much the model changes each attribute (red: change in demographic parity of that attribute’s classifier) compared with how strongly the attribute depends on Attractive in the original data (blue: HSIC). The model mostly edits attributes that are entangled with the target.
Increasing the fairness weight λ trades accuracy for fairness. Each point is the mean of three training runs. Shaded bands show one standard deviation.
Increasing the fairness weight λ trades accuracy for fairness. Each point is the mean of three training runs. Shaded bands show one standard deviation.

Citation

@inproceedings{rajabi2023looking,
  title     = {Through a Fair Looking-Glass: Mitigating Bias in Image Datasets},
  author    = {Rajabi, Amirarsalan and Yazdani-Jahromi, Mehdi and Ozmen Garibay, Ozlem and Sukthankar, Gita},
  booktitle = {Artificial Intelligence in HCI (HCII 2023)},
  series    = {Lecture Notes in Computer Science},
  pages     = {446--459},
  publisher = {Springer},
  year      = {2023},
  doi       = {10.1007/978-3-031-35891-3_27}
}