Large-scale identity-labeled face datasets are essential for training modern face recognition models, yet collecting and annotating such data is costly and raises privacy and ethical concerns. Existing synthetic face generation methods typically derive identities from predefined class labels, unconditional image generation, or predefined latent sampling strategies, without explicitly modeling the underlying distribution of facial identities. In this paper, we propose IDPrior, a two-stage framework that decouples identity generation from image synthesis. We first learn a diffusion prior in the embedding space of a pretrained face recognition model to model the distribution of facial identities and generate novel identity embeddings. These embeddings are then used to condition a pretrained identity-conditioned diffusion model (DM), enabling the synthesis of multiple images of the same identity. This modular design provides a scalable approach to identity generation while remaining compatible with existing and future identity-conditioned DMs. Experiments indicate that IDPrior generates diverse and well-separated identities while maintaining a closer correspondence to the distribution of authentic identities. Face recognition models trained on datasets generated using IDPrior-generated identities achieve competitive or improved performance compared with existing synthetic-data-based methods across multiple face verification benchmarks. Code and generated datasets are publicly available at https://github.com/fdbtrs/IDperturb.
Figures & tables
Figure 1: Overview of IDPrior, a dual diffusion framework that decouples identity generation from image synthesis. Stage 1: A diffusion prior is learned on FR embeddings to model the distribution of facial identities and generate novel identity embeddings. Stage 2: The sampled embeddings are subsequently used to condition a pretrained identity-guided image diffusion model, enabling the synthesis of multiple images per identity.
Figure 2: Identity uniqueness as a function of the cosine-similarity threshold. We report the percentage of unique identities among 10K generated identities. As the threshold becomes stricter, IDPrior (DDPM) consistently preserves a larger fraction of unique identities than existing approaches.
Figure 3: Number of well-separated identities as the total number of generated identities increases, using a threshold of 0.30.
Approach
#Identities
Unique in (%) @ r
0.25
0.3
0.4
Random (uniform)
10K
99.98
100.00
100.00
100K
99.98
100.00
100.00
500K
99.88
100.00
100.00
1M
99.77
100.00
100.00
VIGFace [ 24 ]
10K
100.00
100.00
100.00
Table 1: Scalability of identity generation from 10K to 1M identities. We report the percentage of unique identities at thresholds 0.25, 0.30, and 0.40. IDPrior (DDPM) maintains substantially higher uniqueness than PCA- and image-generation-based approaches across scales, while random sampling, VIGFace, and the flow-based prior achieve higher separation at the cost of poorer distribution fidelity, as detailed in Table 2 .
Unique
ID-FID
Novelty
Identity leakage ↓
Method
Unique @ 0.3 ↑
Unique @ 0.25 ↑
ID-FID ↓
U-ID-FID ↓
Train Sim. ↓
P95
P99
Leak @ 0.25 (%)
Leak @ 0.3 (%)
Leak @ 0.4 (%)
CW (Authentic)
61.50
16.67
-
0.0309
-
-
-
-
-
-
WF4M (Authentic)
70.83
22.68
-
0.0560
-
-
-
-
-
-
Random (Uniform)
100.00
99.98
0.6009
0.3210
0.1666
0.1932
0.2075
0.00
0.00
0.00
VIGFace
100.00
100.00
0.9166
0.9987
0.1605
0.1903
0.2052
0.00
0.00
0.00
Arc2Face /Vec2Face
99.15
74.35
0.6759
0.6967
0.1686
0.1936
0.2087
0.01
0.00
0.00
Table 2: Identity uniqueness, distribution fidelity, and potential identity leakage on 10K generated identities. We report uniqueness at thresholds of 0.30 and 0.25, ID-FID, unified ID-FID (U-ID-FID) using a common CelebA [ 30 ] reference distribution, and nearest-training-identity similarity statistics, including the 95 th and 99 th percentiles ( P95 and P99 ) and leakage rates at τ of 0.25, 0.3, and 0.4. Lower P95 , P99 , and leakage rates indicate lower similarity to training identities and therefore greater identity novelty, while lower ID-FID and U-ID-FID indicate better distributional fidelity.
Figure 4: Identity leakage at different thresholds. We report the percentage of leaked identities among 10K generated identities.
Face Embeddings
DGM
LFW
AgeDB-30
CFP-FP
CA-LFW
CP-LFW
Avg
Uncond. Samples
IDiff-Face [ 4 ]
98.75
88.85
91.61
90.90
86.15
91.25
Random (Uniform)
IDiff-Face [ 4 ]
98.00
87.30
90.97
91.25
86.01
90.71
VIGFace
IDiff-Face [ 4 ]
99.82
87.48
91.39
90.07
86.53
91.06
IDPrior(VAE)
IDiff-Face [ 4 ]
98.60
88.72
91.53
91.45
87.27
91.51
IDPrior (Flow-model)
IDiff-Face [ 4 ]
99.03
90.95
92.30
91.90
87.03
92.24
IDPrior (DDPM)
IDiff-Face [ 4 ]
98.82
90.80
92.67
91.95
87.07
92.26
Table 3: Comparison of identity generation strategies for training FR models. Verification accuracy (%) obtained using different identity sources with identity-conditioned DMs. Replacing the original identity sampling mechanisms with IDPrior generally improves downstream recognition performance across the evaluated identity-conditioned generators, with the largest gains observed for IDiff-Face and IP-Adapter-FaceID. Results marked with * are reproduced in this work.
IDs × imgs/ID
LFW
AgeDB-30
CFP-FP
CA-LFW
CP-LFW
Avg
IDPrior
50K (1k x 50)
94.83
79.82
79.07
84.20
73.80
82.34
IDPrior
0.5M (10k x 50)
98.82
90.80
92.67
91.95
87.07
92.26
IDPrior
1.0M (20k x 50)
99.27
92.28
94.03
92.98
88.90
93.49
IDPrior
2.0M (40k x 50)
99.40
93.72
94.79
93.93
90.20
94.41
IDPrior
4.0M (80k x 50)
99.52
94.83
95.83
94.48
90.98
95.13
Table 4: FR performance trained on IDPrior (DDPM)-generated datasets of increasing scale. Performance generally improves, approaching the accuracy achieved using authentic training data.
Method
#imgs (IDs × imgs/ID)
LFW
AgeDB-30
CFP-FP
CA-LFW
CP-LFW
Avg
CW [ 49 , 4 ]
0.49M( ∼ 10.5k IDs)
99.55
94.55
95.31
93.78
89.95
94.63
WF4M [ 52 ]
4M( ∼ 206K IDs)
99.80
97.80
99.03
96.03
94.27
97.39
DigiFace [ 1 ] WACV’22
0.5M(10k × 50)
95.40
76.97
87.40
78.62
78.87
83.45
IDnet [ 27 ] CVPRW’23
0.53M(10.5k × 50)
92.58
73.53
75.40
79.90
74.25
79.13
SFace [ 3 ] IJCB’22
0.63M(10.5k × 60)
91.87
71.68
73.86
77.93
73.20
77.71
SFace2+ [ 8 ] TBIOM’24
0.63M(10.5k × 60)
95.60
77.37
77.11
83.40
74.60
81.62
Table 5: FR verification accuracies of IDPrior and existing synthetic-data-based approaches. At 0.5M and 1M images, IDPrior achieves competitive or SOTA performance among the compared methods. The first and second rows report authentic CW and WF4M as references. Under each setup, the best results are in bold and the second-best ones are underlined . Results in the last block are obtained by augmenting authentic CW [ 49 ] with synthetic data, following VIGFace [ 24 ] . Results marked with †are obtained from [ 24 ] .
IJCB - TPR@FPR
1e-5
1e-4
1e-3
1e-2
CW
61.41
85.32
92.71
96.73
DigiFace
-
-
30.01
44.78
IDNet
-
-
38.85
83.25
ExFaceGAN
-
-
12.92
73.28
IDiff-Face
-
-
23.44
69.69
Table 6: Verification results on the IJC-B benchmark.
Figure 5: Scalability analysis under different training configurations. The number of well-separated identities vs. the total number of generated identities increases. We compare IDPrior trained on embeddings extracted by ArcFace and ElasticFace, as well as IDPrior trained on embeddings from WebFace4M, CASIA-WebFace, and FFHQ. ArcFace consistently produces more well-separated identities than ElasticFace. Among the training datasets, FFHQ and WebFace4M achieve comparable scalability and substantially outperform CASIA-WebFace..
Z={zi=f(xi)}i=1N
Algorithm 1 Training IDPrior
zi∼pθ(z)
Algorithm 2 Sampling Synthetic Face Dataset with IDPrior
Figure 6: Identity uniqueness under different training configurations. Percentage of unique identities as the cosine-similarity threshold varies from 0 to 1. We compare IDPrior trained using ArcFace and ElasticFace embeddings, as well as IDPrior trained on WebFace4M, CASIA-WebFace, and FFHQ. ArcFace consistently achieves slightly higher identity uniqueness than ElasticFace, while FFHQ and WebFace4M produce comparable results and substantially outperform CASIA-WebFace.
Figure 8: Sample images of novel identities generated by different DM models and using different identity generation approaches. Images are generated from different reference identities.
Figure 9: Effect of the sampling strategy on scalability. Number of well-separated identities as the number of generated identities increases for DDPM (1000 steps) and DDIM with 25, 50, and 100 denoising steps. DDIM closely matches the scalability of DDPM while requiring substantially fewer denoising steps. All results are reported using IDPrior trained on embeddings extracted from the ArcFace model of the WebFace4M dataset.
Figure 10: Effect of the sampling strategy on identity uniqueness. Percentage of unique identities as the cosine-similarity threshold varies from 0 to 1 for DDPM (1000 steps) and DDIM with 25, 50, and 100 denoising steps. All sampling strategies produce nearly identical identity uniqueness across the full range of thresholds. All results are reported using IDPrior trained on embeddings extracted from the ArcFace model of the WebFace4M dataset.
Figure 11: Scalability evaluation, including unconditional IP-Adapter-FaceID. The number of well-separated identities vs. the total number of generated identities increases. Unconditional sampling from IP-Adapter-FaceID quickly saturates, producing fewer than 3% well-separated identities due to severe identity collisions. These results justify the use of a PCA-based baseline for IP-Adapter-FaceID in the main paper.
Figure 12: Identity uniqueness including unconditional IP-Adapter-FaceID. Percentage of unique identities as the cosine-similarity threshold varies from 0 to 1. Unconditional sampling from IP-Adapter-FaceID produces fewer than 3% unique identities across most thresholds, substantially underperforming other approaches.
Table 7: Scalability of identity generation from 1K to 1M identities, which extends the results of the main submission. We report the percentage of unique identities at thresholds 0.25, 0.30, and 0.40. IDPrior consistently maintains the highest uniqueness across all scales, substantially outperforming image-generation-based and PCA-based approaches. We additionally reported results of authentic datasets, CASIA-WebFace (10K identities) and WebFace4M (206K identities). Identities of unconditional IP-Adapter-FaceID sampling saturated at 10K identities. Given the page size, the other models’ results are provided in Table 8 .
Table 8: Scalability of identity generation from 1K to 1M identities, which extends the results of the main submission. This table is complementary to Table 7 .
Figure 13: Histogram of the maximum cosine similarity between each generated identity embedding and all other generated identities within each dataset. Lower similarity indicates better inter-class separation and fewer identity collisions. IDPrior shifts the distribution toward lower similarities compared with image-generation-based and PCA-based approaches, demonstrating its ability to generate more distinct identities.
Synthetic data has emerged as a practical alternative to authentic face datasets for training face recognition (FR) systems, especially as privacy and legal concerns increasingly restrict the use of real biometric data. Recent advances in identity-conditional diffusion models have enabled the generation of photorealistic and identity-consistent face images. However, many of these models suffer from limited intra-class variation, an essential property for training robust and generalizable FR models. In this work, we propose IDPERTURB, a simple yet effective geometric-driven sampling strategy to enhance diversity in synthetic face generation. IDPERTURB perturbs identity embeddings within a constrained angular region of the unit hyper-sphere, producing a diverse set of embeddings without modifying the underlying generative model. Each perturbed embedding serves as a conditioning vector for a pre-trained diffusion model, enabling the synthesis of visually varied yet identity-coherent face images suitable for training generalizable FR systems. Empirical results demonstrate that training FR on datasets generated using IDPERTURB yields improved performance across multiple FR benchmarks, compared to existing synthetic data generation approaches.
Diffusion models have achieved strong results in high-fidelity image synthesis, but their iterative sampling process makes large-scale generation computationally expensive. This limitation is especially relevant when generating synthetic face datasets for face recognition, where a large number of subjects with many samples in different poses, expressions, ages, etc., are required. In this work, we show that identity-conditioned face synthesis can be performed at a substantially lower computational cost by a latent Consistency Model with few iterations, without compromising image quality. For training, we distill knowledge from the foundation Diffusion Model Arc2Face (teacher) by adapting its original text-to-image pipeline to an embedding-to-face setting, replacing textual prompts with ArcFace identity embeddings. Our distilled model (student) generates identity-conditioned face images with an average inference time of 0.4819 seconds per image, compared with 2.102 seconds for Arc2Face, resulting in a 4.36× speed-up. Quantitative results, based on FID scores, show that the distilled model remains competitive with Arc2Face across all evaluation protocols. On 100k generated images, it achieves near-parity on CelebA (13.921 vs. 12.928) and outperforms the teacher on WebFace42M (9.317 vs. 9.802). Further evaluations on Synth-500 and AgeDB show a moderate performance gap for the former but comparable results for the latter. These results indicate that Arc2Face can be accelerated through task-specific latent consistency distillation while preserving high image quality for large-scale synthetic face generation. Our proposal is publicly available at https://github.com/UFPR-IPASP-PR/FaceRec-IdentityConsistency.
Tiago Kienen Chaves, Bernardo Biesseck, David Menotti
Department of Informatics, Federal University of Paraná, Curitiba, Brazil · Federal Institute of Mato Grosso (IFMT), Pontes e Lacerda, MT, Brazil
The pursuit of fair and equitable AI in human-centric tasks is critically hindered by the inherent biases and privacy risks of real-world datasets, which offer imbalanced representations of identity and often contain sensitive personal information. Consequently, state-of-the-art generative models trained on this skewed data exhibit unfair performance, particularly in identity-preserving generation. In this work we propose a pipeline for controllable generation of dataset with diverse faces for generative models training and finetuning. We achieve this by expanding foundational Arc2Face diffusion model with a flow matching generative model in the manifold of identity embeddings. We demonstrate that such approach achieves both goals of generative fidelity and label diversity not present in real human-centric datasets. As a result we collect and further contextualize a highly balanced identity-centric dataset of humans named SynthFaces. By design, our released images and identities are synthetic, reducing direct reliance on real personal images; we empirically check identity separation with a nearest-neighbor non-leakage metric. We purpose it for training and tuning of fair models for various downstream tasks, and showcase its usability in finetuning an existing adapter-based method for personalized generation.
Sergey Karpukhin, Denis Bobkov, Kirill Morozov +1
FusionBrain Lab, AXXX Moscow, Russia · HSE University Moscow, Russia · MSU Moscow, Russia