Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

Finetuning Text-to-Image Diffusion Models for Fairness

About

The rapid adoption of text-to-image diffusion models in society underscores an urgent need to address their biases. Without interventions, these biases could propagate a skewed worldview and restrict opportunities for minority groups. In this work, we frame fairness as a distributional alignment problem. Our solution consists of two main technical contributions: (1) a distributional alignment loss that steers specific characteristics of the generated images towards a user-defined target distribution, and (2) adjusted direct finetuning of diffusion model's sampling process (adjusted DFT), which leverages an adjusted gradient to directly optimize losses defined on the generated images. Empirically, our method markedly reduces gender, racial, and their intersectional biases for occupational prompts. Gender bias is significantly reduced even when finetuning just five soft tokens. Crucially, our method supports diverse perspectives of fairness beyond absolute equality, which is demonstrated by controlling age to a $75\%$ young and $25\%$ old distribution while simultaneously debiasing gender and race. Finally, our method is scalable: it can debias multiple concepts at once by simply including these prompts in the finetuning data. We share code and various fair diffusion model adaptors at https://sail-sg.github.io/finetune-fair-diffusion/.

Xudong Shen, Chao Du, Tianyu Pang, Min Lin, Yongkang Wong, Mohan Kankanhalli• 2023

Related benchmarks

TaskDatasetResultRank
Bias discoveryFemale-biased prompts
Female Proportion69
42
White-biased prompt discoveryWhite-biased prompts
White Score77
18
Biased Prompt DiscoveryBlack-biased prompts
Black Bias Proportion10
18
Fairness-aware Image GenerationStable Diffusion Gender attributes v1.5
Bias-O0.38
17
Text-to-Image GenerationRace attributes prompts using Stable Diffusion 1.5
Bias-O0.2
17
Text-to-Image GenerationMS-COCO 2014
CLIP Score25.61
16
Bias EvaluationMale-biased prompts
Male Bias (Base)0.53
14
Text-to-Image GenerationSD Attribute-neutral prompts Gender-Profession 1.5
CEO19
7
Bias Mitigation (Text-to-Image)Stable Diffusion Gender
FD0.05
6
Bias Mitigation (Text-to-Image)Stable Diffusion Race
FD0.198
6
Showing 10 of 11 rows

Other info

Follow for update