Papers
Topics
Authors
Recent
Search
2000 character limit reached

FairGAN: Fairness-Aware GAN Framework

Updated 21 February 2026
  • FairGAN is a framework for creating synthetic datasets that balance realistic data utility with enforced demographic parity.
  • Its dual-discriminator design and conditional MedGAN-inspired generator jointly optimize data utility, classification utility, and fairness.
  • Empirical tests on the UCI Adult dataset show a 75% reduction in risk difference with only a minimal drop in downstream classification accuracy.

FairGAN is a framework for learning generative models that produce synthetic datasets both statistically similar to the original data and free of discrimination under group fairness notions such as demographic parity. Unlike naive de-biasing or traditional generative adversarial networks (GANs), FairGAN jointly enforces data utility, data fairness, classification utility, and classifier fairness, ensuring that downstream classifiers trained on synthetic data do not reproduce historical disparities (Xu et al., 2018).

1. Formal Problem Setting and Fairness Criteria

Given a dataset D=(X,Y,S)PdataD = (X, Y, S) \sim P_{\text{data}}, with XRnX \in \mathbb{R}^n denoting unprotected features, S{0,1}S \in \{0,1\} a binary protected attribute (e.g., gender or race), and Y{0,1}Y \in \{0,1\} a binary outcome/label, FairGAN aims to learn a generator GG yielding a synthetic dataset D^=(X^,Y^,S^)PG\hat{D} = (\hat{X}, \hat{Y}, \hat{S}) \sim P_G that satisfies four desiderata:

  • Data Utility: PG(X^,Y^)Pdata(X,Y)P_G(\hat{X}, \hat{Y}) \approx P_{\text{data}}(X, Y).
  • Data Fairness: Statistical parity in the synthetic labels, i.e., P(Y^=1S^=1)=P(Y^=1S^=0)P(\hat{Y}=1 \mid \hat{S}=1) = P(\hat{Y}=1 \mid \hat{S}=0).
  • Classification Utility: A classifier η\eta trained on (X^,Y^)(\hat{X}, \hat{Y}) yields high accuracy on real XRnX \in \mathbb{R}^n0.
  • Classification Fairness: Classifier XRnX \in \mathbb{R}^n1 achieves XRnX \in \mathbb{R}^n2 on real XRnX \in \mathbb{R}^n3.

FairGAN explicitly removes disparate impact by ensuring XRnX \in \mathbb{R}^n4 does not encode XRnX \in \mathbb{R}^n5; in practice, this is measured by the balanced error rate (BER) of a predictor XRnX \in \mathbb{R}^n6, with BER close to 0.5 indicating minimal leakage.

2. Architecture and Learning Objectives

FairGAN uses a conditional MedGAN-inspired generator and two adversarial discriminators:

  • Generator (XRnX \in \mathbb{R}^n7): Accepts noise XRnX \in \mathbb{R}^n8 and protected attribute XRnX \in \mathbb{R}^n9. It first produces a latent embedding via S{0,1}S \in \{0,1\}0, then decodes to mixed discrete/continuous synthetic features S{0,1}S \in \{0,1\}1 using a pre-trained decoder (from an autoencoder). The output is S{0,1}S \in \{0,1\}2 with S{0,1}S \in \{0,1\}3.
  • Discriminator S{0,1}S \in \{0,1\}4 (Utility Critic): Receives S{0,1}S \in \{0,1\}5 and distinguishes real samples from generated.
  • Discriminator S{0,1}S \in \{0,1\}6 (Fairness Critic): Receives S{0,1}S \in \{0,1\}7 and predicts S{0,1}S \in \{0,1\}8. By minimizing S{0,1}S \in \{0,1\}9's ability to recover Y{0,1}Y \in \{0,1\}0, FairGAN forces Y{0,1}Y \in \{0,1\}1 to remove undesirable correlations.

The full training objective is a dual-minimax game:

Y{0,1}Y \in \{0,1\}2

where:

Y{0,1}Y \in \{0,1\}3

Y{0,1}Y \in \{0,1\}4

Y{0,1}Y \in \{0,1\}5 is a hyperparameter that trades off data fidelity and fairness. Y{0,1}Y \in \{0,1\}6 is the standard conditional GAN loss; Y{0,1}Y \in \{0,1\}7 regularizes for independence between Y{0,1}Y \in \{0,1\}8 and Y{0,1}Y \in \{0,1\}9 (Xu et al., 2018).

3. Training Procedure and Control of Fairness–Utility Trade-off

Training involves two phases:

  1. Pre-train an autoencoder GG0 on the real GG1 for efficient mixed-type reconstruction.
  2. Alternately update GG2, GG3, GG4, and again GG5 using minibatch stochastic gradient descent with Adam, sequentially applying the GG6 and GG7-scaled GG8 losses to optimize for data utility and fairness.

Adjustment of GG9 interpolates between near-perfect data utility (D^=(X^,Y^,S^)PG\hat{D} = (\hat{X}, \hat{Y}, \hat{S}) \sim P_G0, equivalent to a standard conditional GAN) and strong fairness (D^=(X^,Y^,S^)PG\hat{D} = (\hat{X}, \hat{Y}, \hat{S}) \sim P_G1), allowing the practitioner to tune the fairness–utility trade-off according to application needs.

4. Empirical Evaluation and Results

Experiments on the UCI Adult dataset (48,842 instances, 57-dimensional one-hot encoded features, protected attribute: sex, label: income D^=(X^,Y^,S^)PG\hat{D} = (\hat{X}, \hat{Y}, \hat{S}) \sim P_G250K) compare FairGAN against:

  • SYN1-GAN: standard conditional GAN
  • SYN2-NFGAN-I: GAN on D^=(X^,Y^,S^)PG\hat{D} = (\hat{X}, \hat{Y}, \hat{S}) \sim P_G3 with random reassignment of D^=(X^,Y^,S^)PG\hat{D} = (\hat{X}, \hat{Y}, \hat{S}) \sim P_G4
  • SYN3-NFGAN-II: two-discriminator GAN for D^=(X^,Y^,S^)PG\hat{D} = (\hat{X}, \hat{Y}, \hat{S}) \sim P_G5, neglecting data matching
  • SYN4-FairGAN: full objective with D^=(X^,Y^,S^)PG\hat{D} = (\hat{X}, \hat{Y}, \hat{S}) \sim P_G6

Key metrics and representative results:

Metric Real SYN1-GAN SYN2-NFGAN-I SYN3-NFGAN-II SYN4-FairGAN
Risk diff D^=(X^,Y^,S^)PG\hat{D} = (\hat{X}, \hat{Y}, \hat{S}) \sim P_G7 0.1989 0.1798±0.0026 0.0025±0.0007 0.0062±0.0037 0.0411±0.0295
BER (predict D^=(X^,Y^,S^)PG\hat{D} = (\hat{X}, \hat{Y}, \hat{S}) \sim P_G8 from D^=(X^,Y^,S^)PG\hat{D} = (\hat{X}, \hat{Y}, \hat{S}) \sim P_G9) 0.1538 0.3862±0.0036
Data utility (PG(X^,Y^)Pdata(X,Y)P_G(\hat{X}, \hat{Y}) \approx P_{\text{data}}(X, Y)0 joint dist) 0.0198±0.0002 0.0208±0.0005
SVM-Lin SYN2REAL Accuracy 84.69% 83.63±1.08% 82.17±0.93%
SVM-Lin SYN2REAL Risk Diff 0.1784 0.1712±0.0062 0.0461±0.0424

FairGAN reduces the risk difference in classifier predictions by approximately 75% at a cost of roughly 2% absolute decrease in accuracy for downstream tasks (Xu et al., 2018).

5. Extensions: Transfer and Reprogramming

A VAE-based reprogramming of FairGAN facilitates adaptation to new tabular datasets and tasks without retraining the entire model. A variational autoencoder’s decoder, pre-trained on the source data, acts as a fixed front-end for a new task-specific encoder and adversarial heads. This modularity enables rapid, resource-light transfer while maintaining the original targets of utility, fairness, and classifier performance. Trade-offs associated with this approach include increased hyperparameter sensitivity and possible convergence challenges in aligning fairness and accuracy on new domains (Nobile et al., 2022).

6. Limitations, Failure Modes, and Theoretical Constraints

FairGAN, in its original formulation, enforces only demographic parity; further group fairness notions (e.g., equalized odds, calibration) are not guaranteed and would require modifications such as additional adversarial heads predicting PG(X^,Y^)Pdata(X,Y)P_G(\hat{X}, \hat{Y}) \approx P_{\text{data}}(X, Y)1 (Xu et al., 2018). Extension to multiple or non-binary protected attributes is not addressed in the initial proposal. Like other GAN-based approaches, FairGAN is prone to mode collapse and training instability, necessitating careful monitoring. Empirically, values of PG(X^,Y^)Pdata(X,Y)P_G(\hat{X}, \hat{Y}) \approx P_{\text{data}}(X, Y)2 provide effective fairness–utility balances, but extreme weighting can degrade performance on either axis. In reprogrammed FairGANs, attaining perfect independence (50% PG(X^,Y^)Pdata(X,Y)P_G(\hat{X}, \hat{Y}) \approx P_{\text{data}}(X, Y)3 accuracy) may not be achievable in all transfer scenarios without prohibitive utility loss, and the choice of latent dimensionality mediates a trade-off between representational capacity and privacy/sensitivity leakage (Nobile et al., 2022).

7. Significance and Impact on Fair Synthetic Data Generation

FairGAN is the first GAN-based approach for generating discrimination-free tabular data that effectively separates utility (realism) and fairness objectives via a dual-discriminator setup and a single interpretable trade-off parameter. It provides a pre-processing solution for de-biasing data such that both the generated datasets and the downstream classifiers inherit reduced disparate impact and disparate treatment. This has established FairGAN as a canonical reference point for subsequent fairness-aware generative modeling in structured data, with extensions such as VAE reprogramming further broadening its applicability (Xu et al., 2018, Nobile et al., 2022).

Definition Search Book Streamline Icon: https://streamlinehq.com
References (2)

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to FairGAN.