To sample a distribution of synthetic identities we propose a new method, we call Langevin, that iteratively improves a set of latent vectors so that the resulting identities are optimally distributed. We first choose a Generative Adversarial Network (GAN) and a reference off-the-shelf Face Recognition (FR) network. After randomly sampling a collection of latent vectors, we generate their image representation and extract their face embeddings. We then introduce two quadratic loss functions, the first one, inspired by granular mechanics, repulse embeddings up to a certain arbitrary threshold while the second pulls latent vectors towards the generator's average latent vector. The effect of this algorithm is to iteratively increase the inter-class pairwise embedding distance while maintaining a compact distribution in the latent space to keep latent vectors that yield the best quality pictures.
To generate intra-class variations, i.e. to generate several samples of a given synthetic identity, we propose a second algorithm, called Dispersion. It works similarly to Langevin, but the granular repulsion loss function now acts on the latent space. Another quadratic loss function is added in embedding space to keep the embeddings of the variations as close as possible to the embedding of the reference identity (created with Langevin). We further enhance this algorithm by changing the initialization procedure, adding a random linear combination of Covariate vectors before the first iteration. These Covariate vectors are obtained by fitting a linear Support Vector Machine (SVM) on latent space projection of the MultiPIE dataset. We call the resulting algorithm DisCo and show that, in combination with Langevin, it yields synthetic datasets of excellent quality.
For evaluation, we train FR models from scratch using the synthetic datasets created with the above-mentioned algorithms. The figure below shows the ROC curve of our best performing dataset compared to other existing synthetic datasets as well as common genuine datasets.
The source code of our experiments as well as part of the generated data are available at the following links. For data volume reasons only part of the generated data are published, we can share additional data for interested researchers upon reasonable request.
@article{geissbuhler2024synthetic,
title={Synthetic Face Datasets Generation via Latent Space Exploration from Brownian Identity Diffusion},
author={Geissb{\"u}hler, David and Shahreza, Hatef Otroshi and Marcel, S{\'e}bastien},
journal={arXiv preprint arXiv:2405.00228},
year={2024}
}