TL;DR
TabFairGAN is a novel generative framework designed to produce synthetic tabular data that is both high-quality and ethically "fair." By utilizing a two-phase Wasserstein GAN (WGAN) training process, the model successfully generates datasets that maintain the statistical utility of the original data while significantly reducing biases related to protected attributes like race or gender.
What Problem Does This Paper Address?
As machine learning systems increasingly automate life-altering decisions—from insurance premiums to criminal recidivism risk—the "garbage in, garbage out" rule has taken on a social dimension. Historical datasets often contain deep-seated biases. If a model is trained on biased data, it will produce biased outcomes.
While synthetic data generation is a popular way to share data while preserving privacy, most existing methods (like TGAN or CTGAN) focus solely on accuracy, inadvertently replicating or even amplifying the biases found in the source data. The authors of TabFairGAN aim to bridge this gap: creating a system that generates data that is statistically similar to the real world but "repaired" to meet fairness standards.
Methods
TabFairGAN is built on the Wasserstein GAN with Gradient Penalty (WGAN-GP) architecture, chosen for its superior training stability compared to vanilla GANs. The approach features two distinct innovations:
- Data Transformation:
- Numerical Data: Uses a quantile transformation to map features to a uniform distribution, which helps the model handle complex, multi-modal distributions.
- Categorical Data: Employs the Gumbel-Softmax activation. This is a crucial "trick" that allows the model to generate discrete categories while remaining differentiable, enabling the use of standard backpropagation.
- Two-Phase Training:
- Phase I (Accuracy): The generator and critic are trained to match the joint probability distribution of the reference dataset.
- Phase II (Fairness): The generator's loss function is updated to include a fairness constraint. This constraint penalizes the model based on the Demographic Parity metric—essentially, it discourages the model from creating a correlation between "favorable outcomes" (like getting a loan) and "protected attributes" (like gender).
Unlike previous "fair" GANs that required multiple discriminators (which can be notoriously difficult to balance), TabFairGAN achieves its goals using a single critic.
Datasets
The authors evaluated the model on four standard benchmarks in the algorithmic fairness literature:
- UCI Adult Income: Predicting if an individual earns >$50k (Protected attribute: Sex).
- Bank Marketing: Predicting term deposit subscriptions (Protected attribute: Age).
- ProPublica COMPAS: Predicting recidivism risk (Protected attribute: Ethnicity).
- Law School Admission Council: Predicting first-year average grades (Protected attribute: Race).
Key Insights and Ideas
- The Fairness-Utility Trade-off: The paper explicitly explores the tension between accuracy and fairness. By adjusting a hyperparameter ($\lambda_f$), researchers can decide how much "utility" (accuracy) they are willing to sacrifice to achieve a "fairer" dataset.
- Beating the Specialists: In "Phase I" (no fairness constraints), TabFairGAN actually outperformed state-of-the-art tabular GANs (TGAN and CTGAN) in terms of data utility. This suggests that the WGAN-GP and quantile transformation approach is inherently robust for tabular data.
- The Proxy Problem: The results on the COMPAS dataset highlighted a persistent challenge: even when the model tries to be fair regarding a protected attribute (like race), "proxy" attributes (other features highly correlated with race) can still leak bias into the synthetic data.
Key Results
- Superior Accuracy: When tested with Decision Tree, Logistic Regression, and MLP classifiers, synthetic data from TabFairGAN consistently yielded higher accuracy and F1 scores than TGAN or CTGAN.
- Significant Bias Reduction: In Phase II, the model drastically reduced the Discrimination Score (DS). For the Adult dataset, the DS dropped from 0.195 in the original data to just 0.009 in the synthetic data.
- Competitive with Pre-processing: Compared to CRDI (a standard non-generative data repair method), TabFairGAN produced datasets with significantly higher accuracy (up to 8% higher in some cases) while achieving comparable or better fairness levels.
Limitations and Future Work
The authors acknowledge a few areas for growth:
- Metric Diversity: The current model focuses on Demographic Parity. Future iterations could incorporate other fairness definitions, such as "Equality of Odds" or "Equality of Opportunity."
- Beyond Tabular: While this paper focuses on rows and columns, the authors suggest exploring similar fairness-constrained GANs for unstructured data like text and images.
- Privacy Integration: A promising future direction is combining these fairness constraints with Differential Privacy (DP) to create a "holy grail" of synthetic data: accurate, fair, and private.
Summary updated