FairSkin: Fair Diffusion for Skin Disease Image Geneartion

Ruichen Zhang, Yuguang Yao, Zhen Tan, Zhimin Li, Pan Wang, huan liu, Jingtong Hu, Sijia Liu, Tianlong Chen · Submission to ICLR 2025 · Withdrawn

TL;DR

Diffusion models used for medical data augmentation suffer from severe demographic disparities, generating significantly worse images for darker skin tones and passing these performance gaps onto downstream diagnostic classifiers. FairSkin mitigates this twofold bias using a three-level framework: training-data resampling, class-diversity regularized diffusion training, and imbalance-aware augmentation coupled with dynamic validation reweighting. This pipeline drastically cuts generational quality disparity across racial groups while markedly improving diagnostic fairness in skin disease classification.

What Problem Does This Paper Address?

Artificial intelligence in dermatology holds immense potential for expanding access to care, but deep models frequently fail on underrepresented patient groups. When practitioners turn to diffusion models (DMs) to synthesize clinical images for rare conditions and minority demographics, they run into a compounding "twofold bias":

  1. Generative quality disparity: Synthetic images generated for darker skin tones (e.g., African individuals) exhibit significantly worse fidelity and higher Fréchet Inception Distance (FID) than those generated for Caucasian individuals due to severe data skew in training datasets.
  2. Downstream diagnostic disparity: Classifiers fine-tuned on skewed or low-fidelity synthetic augmentations learn features unevenly across skin tones, reinforcing diagnostic inequities and misdiagnosis risks.

Standard generative techniques optimize for overall image realism while ignoring how data skews across demographic and disease intersections propagate into clinical decision systems.

Methods

FairSkin tackles bias across the generative pipeline through a three-level resampling mechanism:

[Level 1: Training Data Resampling] ──> [Level 2: Balanced DM Training] ──> [Level 3: Downstream Balancing]
   (CBRS / SQRS Weighting)                  (CBDM Diversity Loss)           (Imbalance Aug + Dynamic Reweighting)
  1. Level 1 — Training Data Resampling: Before training the generative model, the dataset is reweighted across race $r$ and disease $d$ pairs using either Class Balanced Random Sampling (CBRS) ($w_{r,d} = 1/N_{r,d}$) or Square Root Random Sampling (SQRS) ($w_{r,d} = 1/\sqrt{N_{r,d}}$) to counter majority dominance without discarding minority data.
  2. Level 2 — Balanced DM Training: In addition to the standard latent diffusion loss, the authors introduce a Class-Balancing Diffusion Model (CBDM) regularization loss. This penalty encourages the denoiser to remain consistent between predictions under the true class condition versus randomly swapped class conditions, preventing mode collapse onto dominant classes.
  3. Level 3 — Downstream Balancing:
  4. Imbalance-Aware Augmentation: The fine-tuned diffusion model synthesizes targeted sample volumes for underrepresented (race, disease) subcategories to balance the downstream training set.
  5. Dynamic Reweighting: During downstream classifier training, the loss contribution for each racial group is dynamically updated epoch-by-epoch based on the inverse of its validation accuracy ($w_r = 1/A_r$), giving higher gradient focus to underperforming demographics.

Implementation Setup: The generative backbone is Stable Diffusion v1-4; the downstream diagnostic model is a Vision Transformer (ViT-Base-Patch16-224).

Datasets

The authors use Fitzpatrick17k, a clinical dermatological dataset annotated with Fitzpatrick skin phototypes. They isolate the top 5 disease classes across 3 racial groups (Asian, African, Caucasian), yielding 15 distinct sub-classes:

  • Diseases: Allergic Contact Dermatitis, Basal Cell Carcinoma, Lichen Planus, Psoriasis, and Squamous Cell Carcinoma.
  • Class Imbalance: Highly skewed distributions—ranging from 412 images for Caucasian psoriasis to just 12 images for African basal cell carcinoma. Each sub-class is partitioned 8:1:1 into training, validation, and test splits.

Key Insights and Ideas

  • More synthetic data is not always better for fairness: Sweeping augmentation volumes (500 to 900 images per class) revealed that over-generating synthetic samples causes downstream accuracy to plateau while amplifying demographic disparities. Fairness requires calibrating both the volume and the demographic ratios of synthetic images.
  • Generative fidelity directly impacts diagnostic parity: Improving the representation and image quality for the African subgroup (reducing African FID from 126.22 to 114.50) directly contributed to a massive drop in downstream demographic disparity.
  • Validation feedback stabilizes classifier fairness: Static generation ratios alone struggle to ensure uniform performance. Incorporating dynamic loss reweighting based on epoch validation accuracy ($1/A_r$) consistently elevates lagging groups without heavily degrading overall classification accuracy.

Key Results

  • Generation Fairness and Quality: FairSkin reduced the FID Variance across demographic groups to 327.11 (compared to 603.74 for vanilla Stable Diffusion and 345.74 for CBDM). African FID improved from 126.22 to 114.50, and Inception Score (IS) rose to 2.52 ± 0.38 (vs. 2.39 ± 0.47 for vanilla).
  • Downstream Diagnostic Fairness:
  • Demographic Parity (DP) dropped dramatically from 25.04 (vanilla augmentation) and 18.22 (no augmentation baseline) down to 9.95 with FairSkin (lower is fairer).
  • Equity-Scaled Performance (ESSP) rose from 3.76 (vanilla) to 7.78 (higher is better).
  • Feature Clustering: t-SNE visualizations demonstrated that FairSkin eliminates distinct, segregated demographic clusters while tightening disease-specific clusters, indicating improved diagnostic distinguishability across skin tones.

Limitations and Future Work

  • Coarse Demographic Annotations: Racial groupings are collapsed into three broad categories (Asian, African, Caucasian) derived from Fitzpatrick phototypes, which does not capture the full, continuous spectrum of human skin pigmentation.
  • Disease Scope: The evaluation is restricted to 5 conditions and a single benchmark dataset (Fitzpatrick17k).
  • Clinical Translation: The study lacks real-world, prospective clinical validation and dermatologist-in-the-loop assessments of synthetic artifact safety.
  • Future Work: The authors propose extending FairSkin to multi-modal imaging settings (such as radiology and ophthalmology) and optimizing diversity loss formulations for finer demographic subgroups.

Summary updated

BibTeX
@misc{zhang2024fairskin,
  author = {Ruichen Zhang and Yuguang Yao and Zhen Tan and Zhimin Li and Pan Wang and huan liu and Jingtong Hu and Sijia Liu and Tianlong Chen},
  title = {{FairSkin: Fair Diffusion for Skin Disease Image Geneartion}},
  year = {2024},
  eprint = {2410.22551},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2410.22551},
}

Loading related content...

Figure