Fair Generative Models via Transfer Learning

Christopher T. H. Teo, Milad Abdollahzadeh, Ngai-Man Cheung

Abstract

This work addresses fair generative models. Dataset biases have been a major cause of unfairness in deep generative models. Previous work had proposed to augment large, biased datasets with small, unbiased reference datasets. Under this setup, a weakly-supervised approach has been proposed, which achieves state-of-the-art quality and fairness in generated samples. In our work, based on this setup, we propose a simple yet effective approach. Specifically, first, we propose fairTL, a transfer learning approach to learn fair generative models. Under fairTL, we pre-train the generative model with the available large, biased datasets and subsequently adapt the model using the small, unbiased reference dataset. We find that our fairTL can learn expressive sample generation during pre-training, thanks to the large (biased) dataset. This knowledge is then transferred to the target model during adaptation, which also learns to capture the underlying fair distribution of the small reference dataset. Second, we propose fairTL++, where we introduce two additional innovations to improve upon fairTL: (i) multiple feedback and (ii) Linear-Probing followed by Fine-Tuning (LP-FT). Taking one step further, we consider an alternative, challenging setup when only a pre-trained (potentially biased) model is available but the dataset that was used to pre-train the model is inaccessible. We demonstrate that our proposed fairTL and fairTL++ remain very effective under this setup. We note that previous work requires access to the large, biased datasets and is incapable of handling this more challenging setup. Extensive experiments show that fairTL and fairTL++ achieve state-of-the-art in both quality and fairness of generated samples. The code and additional resources can be found at bearwithchris.github.io/fairTL/.

Introduction

Deep generative models like Generative Adversarial Networks (GANs) often act as "mirrors" of their training data. If a dataset contains significant skews—such as a 90/10 split between sensitive attributes—the model will likely replicate this bias in its generated samples. This is a major issue for high-stakes applications like facial profiling or healthcare.

Standard solutions often require collecting large, balanced datasets, which is frequently unscalable. Previous state-of-the-art methods attempted to "re-weight" biased datasets using a small fair reference set, but these methods are computationally expensive and require access to the original massive biased dataset. This paper introduces fairTL and fairTL++, a transfer learning framework designed to inject fairness into generative models using only a tiny fraction of unbiased data, even when the original training data is inaccessible.

Methodology

The authors propose a two-stage approach based on transfer learning to debias generative models:

  1. fairTL (Fair Transfer Learning): A GAN is pre-trained on a large, biased dataset to learn expressive features (e.g., how to generate a realistic face). The model is then fine-tuned on a very small, fair reference dataset ($D_{ref}$) to learn the correct, unbiased distribution of sensitive attributes (SAs).
  2. fairTL++: To prevent the model from "forgetting" quality features when fine-tuning on tiny datasets, two innovations are added:
  3. Multiple Feedback: During adaptation, the generator receives feedback from both a new discriminator (learning fairness) and a frozen version of the pre-trained discriminator (preserving image quality).
  4. LP-FT (Linear Probing then Fine-Tuning): The early layers of the discriminator are initially frozen to identify SA-specific features before allowing the entire network to update.
Overview of the fairTL and fairTL++ training pipelines, illustrating the pre-training and adaptation stages.

Experimental Results

The researchers evaluated their methods on standard facial datasets including CelebA, UTKFace, and FFHQ.

Superior Quality and Fairness

On CelebA, fairTL++ achieved a Fairness Discrepancy (FD) of 0.010 (where 0 is perfect fairness) compared to 0.090 for previous state-of-the-art methods, while simultaneously improving image quality (lower FID).

Robustness to Data Scarcity

A significant finding is the framework's robustness to extremely small reference sets. Even when the fair reference set was only 2.5% the size of the biased set, fairTL++ maintained high performance, whereas previous methods saw significant degradation in both quality and fairness.

Quantitative comparison showing FID and FD metrics across different ratios of fair reference data.

Model-Only Debiasing

The authors also tackled a "model-only" setup where the original biased dataset is inaccessible. In StyleGAN2/FFHQ experiments, they successfully reduced bias in attributes like "Moustache" and "Age" using only the pre-trained weights and a small fair set, proving the method's utility for fixing "black box" models.

Conclusion

Transfer learning proves to be a powerful baseline for fair generative modeling. By leveraging expressive features from biased pre-training and carefully adapting with small fair datasets, fairTL and fairTL++ achieve state-of-the-art results. Future work may explore applying these techniques to other architectures, such as Diffusion Models, to further advance practical AI ethics.

Summary updated

BibTeX
@inproceedings{teo2023fair,
  author = {Christopher T. H. Teo and Milad Abdollahzadeh and Ngai-Man Cheung},
  title = {{Fair Generative Models via Transfer Learning}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2023},
  doi = {10.1609/aaai.v37i2.25339},
}
Figure