TL;DR
FairGen is a fairness-aware generative framework that uses preference-aligned diffusion models to synthesize demographically balanced medical images. By embedding physician-guided clinical preferences directly into the generation loop, it mitigates data imbalances across skin tone, age, and gender without sacrificing diagnostic accuracy. When used to augment downstream AI diagnostic models, FairGen yields massive fairness improvements—up to 95.9% in dermatology—while maintaining high clinical fidelity.
What Problem Does This Paper Address?
Artificial intelligence holds incredible promise for medical diagnostics, but it suffers from a fundamental flaw: the data it learns from is deeply biased. Due to systemic inequities in healthcare access and varying disease prevalence, clinical datasets are heavily skewed toward majority demographics. For instance, in popular dermatology datasets, darker skin tones often make up less than 13% of the data.
When an AI model is trained on these imbalanced datasets, it struggles to recognize how diseases manifest in underrepresented groups (e.g., psoriasis appearing grayish/violaceous on dark skin rather than salmon-pink). Previous attempts to fix this using generative models like GANs or post-hoc adjustments either degraded image quality, required prohibitively expensive dataset curation, or inadvertently amplified biases.
Methods
FairGen tackles this problem at the source by modifying the training strategy of a latent diffusion model (specifically, a Stable Diffusion v1-4 backbone) through three core components:
- Gradient-Aware Resampling: The framework introduces adaptive versions of Class Balanced Random Sampling (CBRS) and Square Root Random Sampling (SQRS). By tracking the average gradient norm of the loss function for each subgroup, FairGen dynamically increases the sampling weight for minority groups that the model finds harder to learn.
- Class Diversity Loss: To prevent the model from collapsing into generating only majority-group features, a Class-Balancing Square Root (CBSQ) loss penalizes the model when its noise predictions across different demographic classes become indistinguishable.
- Physician-Aligned Preference Guidance (DPO): Borrowing Direct Preference Optimization (DPO) from large language models, the authors created a dataset of image pairs evaluated by clinicians. The model is explicitly rewarded for generating clinically accurate, pathology-relevant features (like cortical atrophy or specific lesion pigmentations) rather than just visually plausible, generic textures.
Following image generation, the synthetic data is combined with real data using an Adaptive Inverse-Performance Reweighting strategy to train downstream classifiers fairly.
Datasets
The framework was validated across three distinct imaging modalities using the following datasets:
- Dermatology: Fitzpatrick-17k (skewed toward light skin tones) for main training; ISIC used for external validation.
- Radiology: CheXpert combined with a COVID-19 dataset (skewed by gender and rare conditions like pleural effusion); MIMIC-CXR used for external validation.
- Neuroimaging: OASIS T1-weighted brain MRIs (underrepresenting older populations >75 years); IXI used for external validation.
Key Insights and Ideas
- Fidelity $\neq$ Clinical Utility: Standard generative metrics like Fréchet Inception Distance (FID) measure realism but miss clinical accuracy. By incorporating DPO, FairGen ensures that rare disease phenotypes are preserved rather than "washed out" by majority features.
- Dissolving Latent Boundaries: t-SNE and UMAP analyses revealed that baseline diffusion models naturally segregate demographic groups into isolated clusters (islands of bias). FairGen successfully blends these feature manifolds, forcing the generative process to be driven by pathology rather than demographic shortcuts.
- Fairness Without the "Accuracy Tax": A common assumption in machine learning is that optimizing for fairness degrades overall accuracy. FairGen breaks this trade-off, closing the performance gap between subgroups primarily by lifting the accuracy of the lagging minority groups.
Key Results
FairGen consistently outperformed state-of-the-art generative baselines (such as FairDiffusion and CBDM) across both image quality and downstream fairness metrics:
- Image Realism: FairGen achieved the lowest FID scores across all modalities, improving relative image quality over standard Stable Diffusion by 10.1% for skin images and 13.0% for chest radiographs. It also drastically reduced the variance in image quality between subgroups.
- Downstream Fairness Gains: When evaluating downstream Vision Transformer (ViT) classifiers, FairGen-augmented training led to dramatic fairness improvements across multiple metrics (Demographic Parity, Equal Opportunity, etc.):
- 95.9% improvement for skin images.
- 80.0% improvement for chest radiography.
- 35.2% improvement for brain MRIs.
- Expert Validation: In blinded, pairwise reviews, expert clinicians actually preferred FairGen-generated images over original clinical images in 85% of dermatology cases and 55% of chest X-rays when matching specific clinical prompts.
Limitations and Future Work
Despite its success, the authors note several limitations:
- Evaluation Constraints: The expert study was a pairwise qualitative review rather than a formal multi-rater agreement study, meaning inter-rater reliability (ICC) was not measured.
- Dimensionality: The current framework operates strictly in a 2D imaging space. Extending FairGen to handle 3D MRI volumes is a critical next step for neuroimaging.
- Clinical Translation: These results represent benchmark-level transferability across independent datasets, not prospective clinical validation. The authors caution that synthetic medical images still carry risks of hallucinated or unsupported pathologies and must be subject to rigorous human oversight before any real-world deployment.
Summary updated