Перейти к содержимому
Hub Nexus

Автора пока нетВзять себе

Версия 2Обновлено 3 мин чтения

Поддержка

Figure 3 from the paper: the method fits a Gaussian mixture model to the means of each attribute class in the reverse diffusion process

Figure 3 from Pal, Kannan, Kathirvel et al.: the method fits a Gaussian mixture model (GMM) to the means of each attribute class during the reverse diffusion process and uses the "bias-corrected" noise to generate an image of the chosen class (CC BY 4.0; reproduced unchanged).

A model that generates faces can be less balanced than the data it learned from. The authors of this 2023 paper show that diffusion models trained to generate faces amplify the imbalances in their training data in age, gender and race, and propose a fix that needs no retraining: fit Gaussian mixture models (GMMs) in the model's latent space and sample equally from each attribute class.

Why it matters

Fairness here means equal representation of sensitive attributes, so that, for example, a model is as likely to generate male as female faces. The authors point to uses where this matters: generative models have been used for suspect facial profiling, where bias risks wrongly incriminating people, and to produce training data for downstream models such as skin-lesion classifiers, which would inherit the bias. Earlier work on mitigating bias in generators concerned GANs and needed retraining; the authors say that, to their knowledge, no earlier work addressed diffusion-based face generation without retraining.

The method

Each sampling step of a diffusion model is Gaussian, so a GMM can pick out the part of the latent space responsible for a given attribute value. The method works in three stages.

  1. Generate faces unconditionally with a diffusion model.
  2. Cluster the latent codes with a GMM fitted by expectation-maximization, using two components for gender and age and three for race.
  3. Assign clusters to attributes by comparing Kullback-Leibler divergence between components, under the assumption that latent features are most expressive for age, then gender, then race.

At generation time the fitted means replace the usual noise means at the 350th step of the reverse process, so each class can be sampled equally.

Figure 1 from the paper: data distribution in the original unbalanced datasets

Figure 1 from the paper: distribution of the FairFace dataset by age, gender and race, and of the FFHQ dataset by age and gender (CC BY 4.0; reproduced unchanged).

The test

The team used two datasets. FFHQ has 70,000 aligned, cropped 1024 x 1024 images from Flickr; FairFace has 108,501 images covering seven racial and ethnic groups and ages from 0 to over 70. They reduced age to young (under 40) and old (40 and over), gender to two classes, and race to White, Black and other. One classifier, a multi-head ResNet-101, labeled all generated images to keep the classifier's own bias constant. The diffusion models were trained with Hugging Face Diffusers for 30 epochs on the full data and 50 on the smaller balanced subsets.

What they found

  • Amplification. Diffusion models trained on the complete FairFace data produced more male faces, fewer older faces and more White faces than the training distribution. Trained on FFHQ, a model leaned toward female and young faces.
  • Correction. Sampling from the separated GMM components reduced the bias in every attribute, in numbers of images per class. For FairFace the male skew fell and female output rose; for age, young faces fell and old rose; and the race distribution moved back in line with the training data.
  • Balanced training data. Training on balanced data did not stop the model from introducing bias, which agrees with an earlier study cited in the paper. The method reduced it there too.
  • Image quality. FID scores, where lower means better quality, were generally lower for models trained on the larger imbalanced data than on the balanced subsets.

Figure 4 from the paper: results on original data distribution

Figure 4 from the paper: original class percentages (purple), the diffusion model's amplified output (red) and the output with the authors' approach (green) (CC BY 4.0; reproduced unchanged).

The authors list conditional diffusion models and downstream-task performance as future work.

Sources

Комментарии

Spinner Logo

Ещё на тему «Наука»

Автор: Hub Nexus editors
Top 10 in AI, week of 12 October 2026
Автор: Hub Nexus editors
Top 10 in AI, week of 2 November 2026
Автор: Hub Nexus editors
Top 10 in AI, week of 26 October 2026
Автор: Hub Nexus editors
Top 10 in AI, week of 19 October 2026
CC0 1.0 (общественное достояние)
The STAMBP gene provides instructions for making a protein called STAM binding protein. Learn about this gene and related health conditions.
CC0 1.0 (общественное достояние)
Help NASA Design a Robot to Dig on the Moon