FairGen: Preference-Aligned Diffusion for Demographically Equitable Medical Image Synthesis

Zhimin Li, Ruichen Zhang, Zhen Tan, Howard J Aizenstein, Jingtong Hu, Tianlong ChenarXiv 2026

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:

  1. 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.
  2. 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.
  3. 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.
Figure 1. Overview of FairGen’s pipeline for mitigating bias through generation and AI-based diagnosis. (a), Data imbalance and task structure. Three panels highlight severe demographic disparities: long-tailed skin tone distributions and skewed age/gender ratios in MRI and radiography. (b), FairGen leverages diffusion-based synthesis with data balance, physician-aligned preference rewards, and class diversity to generate balanced images, reducing bias across underrepresented subgroups. (E: encoder transforms images into latent representations; D: decoder reconstructs images from latent representations.) (c), In the downstream stage, both real and generated data are combined to train classification models, with fairness improvements across sensitive attributes. This integrated workflow effectively addresses long-tail and skewed data problems, promoting fair performance for diverse underrepresented subpopulations.

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.
Downstream diagnostic fairness evaluation and quantitative generative fairness assessment.
  • 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

Abstract

Medical imaging is central to modern diagnostics, and artificial intelligence (AI) systems are increasingly used to support image-based analysis by improving efficiency, accuracy, and access to care. However, inequities in healthcare access and differential disease prevalence create severe demographic imbalances in clinical image data. Such imbalances are compounded by the fact that diseases can manifest with distinct features across demographic groups, rendering certain phenotypic presentations naturally rare. AI models trained on such imbalanced data risk perpetuating diagnostic bias and widening healthcare disparities. Here we introduce FairGen, a fairness-aware diffusion framework that synthesizes demographically balanced medical images while preserving pathology-relevant visual features. By embedding physician-aligned preferences into the generation process, FairGen improves subgroup coverage during synthesis and downstream classification. Applied to dermatology, radiology, and neuroimaging benchmark tasks, FairGen achieves fairness improvements of 95.9% for skin images, 80.0% for chest radiography, and 35.2% for brain MRI, while maintaining competitive diagnostic accuracy relative to models trained on original clinical data. Clinician-facing expert review and external validation on independent cohorts further support that these gains extend beyond standard fidelity metrics and are not confined to the original in-distribution datasets.
BibTeX
@misc{li2026fairgen,
  author = {Zhimin Li and Ruichen Zhang and Zhen Tan and Howard J Aizenstein and Jingtong Hu and Tianlong Chen},
  title = {{FairGen: Preference-Aligned Diffusion for Demographically Equitable Medical Image Synthesis}},
  year = {2026},
  eprint = {2606.14727},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2606.14727},
}

Loading related content...

Figure