Finetuning Text-to-Image Diffusion Models for Fairness

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Shen, Xudong, Du, Chao, Pang, Tianyu, Lin, Min, Wong, Yongkang, Kankanhalli, Mohan
Natura: Preprint
Pubblicazione: 2023
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866909137556733952
author Shen, Xudong
Du, Chao
Pang, Tianyu
Lin, Min
Wong, Yongkang
Kankanhalli, Mohan
author_facet Shen, Xudong
Du, Chao
Pang, Tianyu
Lin, Min
Wong, Yongkang
Kankanhalli, Mohan
contents 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/.
format Preprint
id arxiv_https___arxiv_org_abs_2311_07604
institution arXiv
publishDate 2023
record_format arxiv
spellingShingle Finetuning Text-to-Image Diffusion Models for Fairness
Shen, Xudong
Du, Chao
Pang, Tianyu
Lin, Min
Wong, Yongkang
Kankanhalli, Mohan
Machine Learning
Artificial Intelligence
Computer Vision and Pattern Recognition
Computers and Society
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/.
title Finetuning Text-to-Image Diffusion Models for Fairness
topic Machine Learning
Artificial Intelligence
Computer Vision and Pattern Recognition
Computers and Society
url https://arxiv.org/abs/2311.07604