Manuscript Offprint
arXiv:2610.26077Not All Similarity Is Leakage: Distribution-Aware Identity Leakage Assessment in Synthetic Face Datasets
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Pawel Borsukiewicz
University of Luxembourg
Luxembourg
Fadi Boutros
Fraunhofer IGD
Darmstadt, Germany
fadi.boutros@igd.fraunhofer.de
Daniele Lunghi
University of Luxembourg
Luxembourg
Jacques Klein
University of Luxembourg
Luxembourg
Wendkūuni C. Ouédraogo
University of Luxembourg
Luxembourg
Tegawendé F. Bissyandé
University of Luxembourg
Luxembourg
Abstract
Synthetic data provides the means for more ethical and less biased facial recognition. Nonetheless, the limitations of generative models and the conditioning process they rely on pose a risk of identity leakage, resulting in synthetic samples that are overly similar to those seen in a generator's training set, mitigating privacy benefits. In this work, we show that previously proposed approaches are affected by two key limitations: high classifier dependence and a tendency to identify leakage with respect to real datasets that were not used in training. To address these shortcomings, we propose a novel metric called Scaled Overlap (SO), which adapts a non-parametric data-copying test for facial recognition and extends it to the identity level. By leveraging a multi-model setup that compensates for errors in individual classifiers, it provides insights into the true strength of identity leakage. Our analysis identifies leaking datasets (CemiFace, SFace2, IDNet) with the most acute leakage introduced by generative model conditioning in CemiFace, demonstrates that real datasets do not contribute equally to generator training, and shows that the majority of synthetic images are drawn from multiple identities rather than relying on a single identity. Ultimately, our study provides new insights into the quality of synthetic datasets and gives more reliable techniques to help the community ensure the trustworthiness of synthetic data.
1. Introduction
Facial recognition is a morally ambiguous field. Some view it as a means to ensure safety and order, others scrutinize ethical and privacy aspects [41] of data collection and processing. In a search for privacy-preserving facial recognition solutions [36] that address concerns of the latter, one stands out: synthetic data. Given its ability to address biases, label noise, and the limitations in the availability of real data [3], the performance of the models trained on synthetic data has been one of the main factors preventing its use in the early days. Now, as fully synthetic models can compete with their real counterparts [10, 60], they are attracting increasing attention [4, 5, 8, 14, 49, 57].
Nonetheless, synthetic data is not free from limitations. One critical bottleneck is its reliance on real data for generative model training or conditioning. Namely, a generator may produce a sample that resembles an underlying image, leading to a phenomenon known as identity leakage [54]. Some of the works have incorporated methods to explicitly address this issue, such as removal of overly similar samples [43, 52, 58], but often with limited success [31].
While previous studies have highlighted the issue [3, 48], the analysis of its true extent has been limited, as it primarily focused on generator training and relied on a single pretrained facial recognition (FR) model for assessment. In this work, we propose a more comprehensive approach. First, we use five recognizers individually and as an ensemble to find that using previously proposed methods, leakage is observed in datasets unseen by the generator during training, a phenomenon we call Phantom Leakage. By showing its prevalence (100% leakage at FMR=0.1% across multiple FR models and dataset pairs), we call into question the faithfulness of the currently established methodology for measuring identity leakage. In search of more trustworthy metrics, we propose Scaled Overlap (SO), accounting for the natural similarity between distinct identities and dataset-specific distributional properties. Contrary to the similarity based approach, our experimental results demonstrate that SO is capable of localizing true instances of leakage. The main contributions of this work are as follows:
• Demonstration of the systematic failure of currently used leakage estimation methods.
• Scaled Overlap, an adaptation of the non-parametric data-copying test to face identity space, with an identity-level formulation absent from prior sample-level evaluations.
• Comprehensive identity leakage evaluation in 9 synthetic datasets, revealing strong identity-level and limited sample-level leakage in CemiFace, stemming from its generative model conditioning procedure.
• Publicly available replication package .
Our methodology and findings will help the community evaluate their datasets and, consequently, build trust in synthetic data for facial recognition.
2.1. Synthetic Facial Recognition Datasets
Facial recognition practitioners have, for a long time, faced criticism [51] regarding ethically questionable data acquisition practices, which have typically relied on mass scraping of web databases [55, 61]. Synthetic data has emerged as a compelling alternative [8], mitigating well-known shortcomings of real datasets [3], including label noise, class imbalance, and potential non-compliance with data protection regulations like the GDPR [19].
Early works, such as Syn-1M [34] and Syn-MultiPIE [12], have struggled to achieve reliable recognition accuracy, yet subsequent works have continued to push the performance boundaries. More recent methodologies and resulting datasets, including IDPERTURB [10] and VariFace [60], have shown remarkable improvements, with the derived models outperforming their counterparts trained on the real CASIA-WebFace [61] dataset.
While synthetic facial image generation techniques vary widely, there are three main categories of approaches [3]. First focuses on the use of GANs. SynFace [45] leveraged DiscoFaceGAN [16], while another set of works (IDNet [32] and SFace2 [9]) relied on a StyleGAN2-Ada. The second group concentrates on the use of conditioned DMs, and it includes datasets such as IDiff-Face [7], DCFace [30], CemiFace [52], UIFace [37], or ID [59]. Finally, the third approach used 3D modeling, either independently, as in DigiFace-1M [2], or in combination with DMs, as in Digi2Real [21], which supplemented it with Arc2Face [43].
With the ability to address the limitations of real data and deliver reliable performance, synthetic data is on track to become the new standard.
2.2. Identity Leakage
Generative models, both GANs and DMs, have been shown to reproduce samples seen in training [11, 56]. In our context, we seek samples in which the identities of the generated images are highly similar to those of the real images used to train or condition the corresponding generator, so that facial recognition models assign them sufficiently high similarity scores to be treated as the same identity. Current protective approaches [43, 52, 58] do not fully address this leakage issue, but rather minimize it. As such, identities in datasets used to train and/or condition generative models, such as commonly used CASIA-WebFace [61], FFHQ [28], variants of WebFace [62], or CelebA [38], are at risk.
Tinsley et al. [54] have drawn attention to the identity leakage in StyleGAN2 [29], trained on FFHQ. Through analysis encompassing 69,372 synthetic images and 57,094 real samples, they have measured two non-mated distributions: "Real-Real" (R-R) and "Real-Generated" (R-G) across five facial recognition models. Their findings highlighted existing yet limited identity leakage and pointed to disagreements among individual recognizers.
Singh et al. [50] have proposed SynthProv, a framework to evaluate identity leakage based on StyleGAN2 latent space, linking synthetic samples with the real identities they follow the most closely. By combining latent identity dissimilarity and facial recognizer embedding similarity, they computed image-specific provenance scores that indicated which images most influenced each synthetic sample. This approach, while highly interpretable at the individual level, relies on the assumption that the generator is publicly available, which may not hold in practice.
Shahreza and Marcel [48] have demonstrated that synthetic facial recognition datasets can expose underlying training identities. In their work, a variant of the Membership Inference Attack (MIA) was designed to identify generated samples across six synthetic facial recognition datasets that are overly similar to the generator's training sets. Using a pretrained ResNet-100 [24] model, they computed cosine similarity against the training data and identified multiple outliers with unnaturally high scores.
Borsukiewicz et al. [3] have used pre-trained IRes-
https://anonymous.4open.science/r/LeakageFinder-E6A3
Net100 [15] to simultaneously evaluate and quantify leakage across all publicly available datasets at the time. The study has found examples of visually similar images in IDNet [32], Vec2Face [58], and IDiff-Face [7]. Given that real datasets commonly overlap due to web scraping, the authors have focused only on comparisons involving faces in CASIA-WebFace [61]. This simplified approach has omitted potential identity leaks from the source training datasets.
2.3. Generator Conditioning
Conditioning is the process of supplying a generator with additional input that steers it toward a specific output rather than a random sample from the learned distribution [7, 30, 37]. It is what allows the generated samples to preserve a consistent identity while other attributes, such as style, vary.
The origin of this conditioning signal varies widely across the literature [3]. Some works sample identities from the latent space of a pretrained GAN [12], or from a disentangled 3DMM identity prior learned from real faces [45]. Others define identity in the embedding space of a pretrained face recognition model [7, 52], or condition the generator on real identity labels during training [9, 32]. Still others draw the identity from an unconditional generator and mix it with style references taken from real images [7, 30, 37, 59], or reuse synthetic identities from prior work, diluting dependence on real data [21]. Arc2Face [43] applies Principal Component Analysis (PCA) to the embedding space of a pretrained face recognition model, samples novel identity embeddings within the resulting PCA space, and then uses a pretrained identity-conditioned diffusion model to generate corresponding face images. VIGFace [31] further advances virtual identity generation in the embedding space by constructing virtual identity prototypes explicitly disentangled from real identities, which are used as conditioning signals for a diffusion-based face generator.
Prior studies on identity leakage (2.2) have focused primarily on the generator's training data, leaving the conditioning path largely implicit. We argue that conditioning constitutes a second, distinct channel, since the identity signal itself may be derived from, or defined by, real identities. To distinguish the two, we refer to them as training-data leakage and identity-space leakage, respectively.
3. Methodology and Experimental Setup
To ensure a more thorough analysis than the previous works [3, 48, 50, 54], we design our methodology to support a wide range of evaluation models and synthetic datasets. Through standardized analysis, rooted in distributional properties of real and synthetic data, we aim to demonstrate the true extent of the privacy leakage problem.
3.1. Classical Leakage Estimation
To estimate leakage in a classical way, we follow the approaches introduced in prior work [3, 48]. Our procedure can be briefly summarized as follows:
① Compute embeddings for real and synthetic datasets.
② For each model used in evaluation, find key decision thresholds based on real data.
③ For each synthetic image, find a closest real sample.
④ Compute a proportion of real-synthetic pairs with embedding similarity scores exceeding the decision threshold.
First, for each selected model and dataset (details in 3.3 and 3.4, respectively), we perform a forward pass to compute embeddings (1). We use non-mated LFW [26] pairs from its evaluation protocol to determine operational decision thresholds (2) based on fixed FMR values (we used Frontex-recommended [20] operational minimum of 0.1% in the main manuscript; an ablation study of alternative thresholds is provided in the supplementary material). Even if datasets contain a single image per identity (e.g., FFHQ [28]), we can still compute them, since we perform only distinct-identity comparisons. Subsequently, for each synthetic image embedding, we use FAISS [18] to efficiently find a real image embedding with the highest cosine similarity (3). This score is further used to measure leakage as the percentage of synthetic samples for which exists a pair that exceeds previously computed thresholds (4).
3.2. Scaled Overlap
We propose measuring identity leakage in a synthetic dataset S by examining distributional irregularities relative to a real dataset R in a multi-model setup. Our hypothesis is that leakage traces, which can be confused at the level of individual images, should remain consistently detectable at the dataset level with statistical measures.
First, we search for the closest sample in the dataset R for each sample in the datasets S and R, excluding mated (same identity) comparisons for real vs. real pairs. To reduce the impact of recognizer-related errors, we leverage an ensemble approach that averages similarity scores across a set of classifiers. The resulting distributions of similarity scores and reflect the natural identity-space diversity of the training dataset and indicate how closely the synthetic data mimics a real-life dataset, respectively. Said resemblance is, to a certain extent, intended, as the generator learns to draw from the real-life distribution it has seen during training. However, when it becomes excessive, we observe identity leakage. To quantify this, we adapt the Mann-Whitney U statistic [39], which underlies the data-copying test of Meehan et al. [40], by replacing their held-out reference sample, unavailable when generators are trained on the full corpus, with leave-one-identity-out nearest-neighbor similarity within the real dataset. We refer to the result as Scaled Overlap (SO):
Table 1. Synthetic datasets, their deep generative models' training datasets, and the real dataset shaping the identity space (i.e., the pretraining data of the FR encoder used for identity conditioning, or the label source when identities are used directly as classes).
| Synthetic dataset | Total images | Generator training data | Total images | Underlying identity space | Total images |
|---|---|---|---|---|---|
| SynFace [45] | 1M | FFHQ | 70k | 70k | |
| IDiff-Face [7] | 503k | FFHQ | 70k | 5.8M | |
| SynMulti-PIE [12] | 149k | FFHQ | 70k | 70k | |
| IDNet [32] | 1.06M | CASIA-WebFace | 494k | 494k | |
| CemiFace [52] | 550k | CASIA-WebFace | 494k | 4.2M | |
| SFace2 [9] | 1.05M | CASIA-WebFace | 494k | 494k | |
| DCFace [30] | 550k | FFHQ + CASIA-WebFace | 564k | 494k/4.2M | |
| HyperFace [42] | 640k | FFHQ + CelebA + WebFace4M | 4.5M | 5.8M/17.1M/42M | |
| Digi2Real [21] | 400k | FFHQ + CelebA + WebFace42M | 42.2M | 511 |
No identity encoder. Identity drawn from a learned prior over real faces. Inherited from a pretrained identity encoder. Identity used as a class label for the identity-conditioned generator. Identities from DigiFace-1M's [2].
Using the probability density function of mean similarity scores observed for a given synthetic dataset and the function that measures the percentile of real data distribution at , we quantify the synthetic distribution in the context of the natural distribution. As such, two perfectly overlapping distributions would result in a value of 50, meaning synthetic samples are no more similar to their closest real samples than the closest real samples are to each other. Values above 50 indicate that synthetic samples tend to be more similar to their nearest real counterpart than most similar real samples are to one another, signaling dataset-level leakage.
We can also apply SO at the identity level by computing identity centroids :
where is the set of embeddings belonging to the identity k. To project the newly obtained point on the hypersphere, is subsequently normalized.
3.3. Models
To assess the impact of model choice on the leakage analysis, we employ a combination of Convolutional Neural Networks (CNNs) [35] and Vision Transformers (ViTs) [17]. We deliberately select a diverse set of pre-trained models with varying capabilities: re-implementation [53] of FaceNet [47], version trained on CASIA-WebFace [61]; IResNet18 [15, 27] variant trained on Glint360K [1]; SwinFace [44]; base EdgeFace [22]; and Glint360K-trained S variant of TransFace [13]. Weights and sources are listed in our replication package. As facial-feature evaluators, these models should be sensitive to genuine instances of leakage, while differences in backbone architecture and training procedures are likely to produce model-specific errors to be partially rectified by an ensemble approach.
3.4. Datasets
We evaluate our methodology across a wide range of publicly available synthetic datasets (Table 1) for which generator training data are known. Due to the prevalence of CASIA-WebFace (C-WF) [61], FFHQ [28], CelebA [38], and WebFace4M (WF4M) [62] in generator training and their relatively compact size compared with other potential datasets, we primarily focus our analysis on datasets derived from them. Nevertheless, our methodology can be extended to any generative model, provided we have access to its training data and sufficient storage space.
4. Results
We designed our study to answer the following research questions:
① How reliable is the current SOTA leakage analysis?
② How does Scaled Overlap characterize identity leakage across synthetic face datasets?
③ How does identity leakage manifest in the distributional structure of embeddings?
We start by highlighting the limitations of previous approaches [3, 48, 54] and subsequently demonstrate that SO is a more reliable alternative for leakage estimation. Having established its fidelity, we conduct further statistical tests to analyze leakage across nine synthetic datasets.
4.1. Limitations of SOTA Leakage Analysis
We began by computing identity leakage at FMR = 0.1% as described in 3.1. (Table 2). A multi-model setup has provided us with very concerning findings. Leakage values are highly classifier-dependent: The same dataset, HyperFace, can achieve as low as 0.3 on CelebA, according to IResNet18, and as high as 97.4, according to EdgeFace. This variability demonstrates that a single-model approach with a dependence on a single FMR threshold is fundamentally unreliable and results are meaningless. We break down the dependence of leakage on the FMR threshold and model in the supplementary material. Leakage appears
| Dataset | IResNet18 | TransFace | EdgeFace | 5-model ensemble | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| C-WF | CelebA | FFHQ | WF4M | C-WF | CelebA | FFHQ | WF4M | C-WF | CelebA | FFHQ | WF4M | C-WF | CelebA | FFHQ | WF4M | |
| CemiFace | 100.0 | 100.0 | 100.0 | 100.0 | 100.0 | 100.0 | 100.0 | 100.0 | ||||||||
| DCFace | 100.0 | 1.2 | 100.0 | 100.0 | 85.5 | 100.0 | 100.0 | 99.1 | 100.0 | 100.0 | 26.2 | 100.0 | ||||
| Digi2Real | 0.7 | 3.6 | 100.0 | 86.4 | 91.2 | 100.0 | 98.3 | 99.4 | 100.0 | 11.8 | 33.0 | 100.0 | ||||
| HyperFace | 0.3 | 7.5 | 100.0 | 57.4 | 88.1 | 100.0 | 97.4 | 99.4 | 100.0 | 8.8 | 42.4 | 100.0 | ||||
| IDNet | 100.0 | 100.0 | 100.0 | 100.0 | ||||||||||||
| IDiffFace | 19.6 | 89.3 | 99.7 | 68.4 | ||||||||||||
| SFace2 | 100.0 | 100.0 | 100.0 | 100.0 | ||||||||||||
| SynFace | 9.1 | 98.7 | 100.0 | 76.9 | ||||||||||||
| SynMulti-PIE | 7.5 | 90.6 | 99.9 | 62.7 | ||||||||||||
† indicates evaluations where the real dataset was NOT used in either the generator training data or the underlying identity space.
Table 2. Percentage of synthetic samples exceeding FMR=0.1% threshold across real datasets. Extended table in supplementary material.
in datasets unseen during generator training and conditioning: We observe substantial leakage in the datasets where it should not exist, a phenomenon we call Phantom Leakage. Most notably, for each evaluated synthetic dataset, all or nearly all (99.9%+) samples are classified as too similar to C-WF and WF4M. Furthermore, the leakage can be deemed extremely high, but the closest non-mated real samples are still more similar than the synthetic samples (Figure 1), putting into question whether observed similarity is a true instance of leakage or simply a naturally occurring phenomenon.

Figure 1. Mated and non-mated similarity distributions of CASIA-WebFace compared with its closest non-mated samples and closest CemiFace samples according to EdgeFace. FMR=0.1% threshold (0.2316) is exceeded by both closest pair distributions.
Consequently, we highlight the need for alternative approaches to leakage detection, ones that are free from the limitations of facial recognizer-related inconsistencies and capable of distinguishing real leakage from the naturally occurring similarity between distinct identities.
4.2. Scaled Overlap
To showcase the fidelity of the SO metric, we intentionally introduced leakage ( ) into a synthetic dataset by mixing it with a specified percentage p of real samples from real datasets (Figure 2). These images simulate a scenario in which a generator creates a picture of an identity belonging to its training set. To ensure methodological soundness, leakage samples are excluded from the original real dataset

Figure 2. HyperFace with intentionally introduced leakage. SO measured at the image level.
during evaluation. Results for the HyperFace subset (100k samples) show that the SO scales linearly with the percentage of leaking data. This is an expected behavior, as:
At the 0% mark, where all evaluated samples are synthetic, we observe nonzero overlap scores ( ), resulting from a combination of the generative model's distribution learning and potential true leakage. It is important to note that SO scales differently for FFHQ, with every image treated as a unique identity due to the lack of annotations, confirming that the no-leakage reference point for real data is 50. Consequently, SO should be interpreted as a prevalence-weighted indicator of dataset-level leakage, rather than a direct count of leaked identities.
Subsequently, we computed SO across all real vs. synthetic dataset pairs to search for leaking datasets (Table 3). Three of the potentially leaking (candidate) dataset comparisons yield the highest SO values, ranging from slightly elevated (IDNet: 57.1, SFace2: 68.5) to highly elevated (CemiFace: 93.3). By surpassing the 50-point mark, synthetic identities are, on average, more similar to the closest real ones than the closest real identities are among themselves. This constitutes direct evidence of dataset-level identity leakage. Additionally, we observed that the strongest instance of leakage (CemiFace) originated from the identity-
| Synthetic Dataset | Test Set | Leakage Candidate | Sample-level SO | Identity-level SO |
|---|---|---|---|---|
| HyperFace | CelebA | Yes | 0.2 | 0.0 |
| SynMulti-PIE | CelebA | No | 0.3 | 0.0 |
| Digi2Real | CelebA | Yes | 0.4 | 0.1 |
| DCFace | CelebA | No | 0.4 | 0.1 |
| SynFace | CelebA | No | 0.6 | 0.1 |
| CemiFace | CelebA | No | 0.6 | 0.4 |
| IDiffFace | CelebA | No | 0.6 | 0.6 |
| IDNet | CelebA | No | 1.3 | 1.3 |
| SFace2 | CelebA | No | 1.4 | 2.3 |
| HyperFace | C-WF | No | 5.3 | 5.1 |
| Digi2Real | C-WF | No | 8.2 | 6.8 |
| SFace2 | FFHQ | No | 4.1 | 9.6 |
| Digi2Real | FFHQ | Yes | 6.8 | 10.5 |
| IDNet | FFHQ | No | 4.4 | 10.8 |
| DCFace | FFHQ | Yes | 5.0 | 12.6 |
| CemiFace | FFHQ | No | 4.7 | 13.3 |
| HyperFace | WF4M | Yes | 14.7 | 14.2 |
| SynMulti-PIE | C-WF | No | 11.8 | 15.2 |
| HyperFace | FFHQ | Yes | 10.4 | 15.5 |
| IDiffFace | C-WF | No | 8.4 | 15.6 |
| SynMulti-PIE | WF4M | No | 16.9 | 18.1 |
| Digi2Real | WF4M | Yes | 24.3 | 20.4 |
| SynFace | C-WF | No | 13.0 | 20.8 |
| SynMulti-PIE | FFHQ | Yes | 13.3 | 22.0 |
| SynFace | FFHQ | Yes | 18.9 | 33.3 |
| IDiffFace | FFHQ | Yes | 21.3 | 38.8 |
| SynFace | WF4M | No | 30.0 | 39.1 |
| SFace2 | WF4M | No | 26.9 | 42.4 |
| DCFace | C-WF | Yes | 20.4 | 43.4 |
| CemiFace | C-WF | Yes | 19.3 | 44.4 |
| IDNet | WF4M | No | 29.2 | 44.9 |
| DCFace | WF4M | Yes | 27.5 | 45.3 |
| IDiffFace | WF4M | No | 26.8 | 47.6 |
| IDNet | C-WF | Yes | 26.1 | 57.1 |
| SFace2 | C-WF | Yes | 29.7 | 68.5 |
| CemiFace | WF4M | Yes | 53.7 | 93.3 |
Table 3. sample-level and Identity-level SO. Rows are colored by the relationship between real and synthetic dataset: generator training data, identity-space match, and both.
space match, demonstrating that generative model conditioning can be more disruptive than its training, a factor that was previously overlooked.
Sample-level SO showcases that real pictures are typically more similar to the closest distinct identity image than to a synthetic sample, with an exception of CemiFace scoring 53.7. After analyzing individual closest real and synthetic sample samples for a given real anchor from WebFace4M (Figure 3), we found that oversampled images 51-55.jpg across CemiFace identities were copies of real identities seen during conditioning. While authors [52] follow an approach of reusing the same sample five times, previously seen in DCFace [30], to shift class center, they diverge as their samples are not generated. This finding validates fidelity of SO in two separate ways: i) identity-level analysis has detected the strong bias towards the underlying real identity amplified by re-use of five copies of real samples; ii) sample-level SO has been able to detect the subtle leakage signal, and since just 5 out of 55 images per synthetic identity are not synthetic, its value exceeds 50 only by a slight margin. Having repeated SO computation for CemiFace, but excluding these five samples for each identity, we obtained SOs of 0.89 (identity-level) and 0.49 (sample-level), proving that identity leakage does not stem only from the reuse of real copies, but is a dataset-wide issue. On the other hand, on an image-by-image basis, synthetic samples almost perfectly follow natural data distribution. Even though many of the synthesized images beyond samples 51-55 (Figure 3) remain more visually similar to the real anchors than to the closest non-mated real samples, this similarity can be considered natural and is a desired property as long as there is no leakage at the identity level.

ID: 090208
image: 090208_002.jpg
ID: 170834
image: 170834_117.jpg
ID: 25053
image: 51.jpg
ID: 25053
image: 29.jpg
ID: 120610
image: 120610_012.jpg
ID: 161398
image: 161398_001.jpg
ID: 29545
image: 51.jpg
ID: 29545
image: 19.jpg
ID: 001336
image: 001336_001.jpg
ID: 073076
image: 073076_003.jpg
ID: 29403
image: 51.jpg
ID: 29403
image: 44.jpg
Figure 3. Examples of closest WebFace4M non-mated image vs. closest CemiFace sample (including/excluding samples 51-55) with respect to anchor WebFace4M image.
Further, even the most outlying datasets: DCFace (27.5), SFace2 (29.7), and CemiFace (53.7) score significantly lower at the sample level than at the identity level, suggesting that leakage in synthetic datasets manifests predominantly at the identity features level rather than at the level of appearance or style. Consequently, even though the majority of individual images remains visually distinct from real photographs, the underlying identity might not.
In datasets, which generators were trained on multiple real datasets, we observe strongly varying sample-level and identity-level SO values: DCFace (C-WF: 20.4 | 43.4 vs. FFHQ: 5.0 | 12.6), HyperFace (CelebA: 0.2 | 0.0 vs. FFHQ: 10.4 | 15.5 vs. WF4M: 14.7 | 14.2) and Digi2Real (CelebA: 0.4 | 0.1 vs. FFHQ: 6.8 | 10.5 vs. WF4M: 24.3 | 20.4). This asymmetry suggests that a specific dataset or a subset of real datasets can dominate the generator's learned distribution during training.
4.3. Distributional Analysis
Another way to probe identity leakage is to examine high-similarity outliers. While prior work [3, 48] focused on the single closest image pair, we extend this to a neigh-

Figure 4. Average cosine similarity difference for top-k most similar real-real and real-synthetic image-level comparisons.

Figure 5. Average cosine similarity difference for top-k most similar real-real and real-synthetic identity-level comparisons.
borhood analysis by tracking, for each real sample, how similarity difference evolves across its k-th closest real and k-th closest synthetic matches. Figures 4 (sample-level) and 5 (identity-level) show that the gap between real-to-real and synthetic-to-real similarity typically narrows as k grows, with tight 95% confidence intervals confirming the stability of this trend. The influence of the training corpus becomes visible further down the ranking: at both levels, FFHQ-trained datasets (HyperFace, IDiffFace, SynFace, SynMulti-PIE, Digi2Real) progressively pull ahead of datasets whose training sets they never saw, while C-WF-trained (CemiFace, SFace2, IDNet) maintain their advantage, indicating that training-set exposure influences not only the nearest match but also the clustering strength of synthetic samples surrounding real identities. The leakage signal identified by SO is also reaffirmed at this stage in IDNet and SFace2, which maintain positive across the entire range, meaning their synthetic samples stay closer to real identities than real identities are to each other, even at the tenth neighbor. The strongest outlier, CemiFace, shows an exceptional bias towards real identities ( ), with an average gap of over 0.2, revealing systematic overfitting to real people. Conversely, sample-level s remain low across all dataset pairs, confirming that leakage manifests in identity space rather than in style.
As the analysis captures local clustering, we complement it with a global view of how synthetic embeddings are distributed across the hypersphere. For each real image, we rank all non-mated similarity scores to define a percentile scale, then place each synthetic sample's similarity on that scale to obtain a probability density over percentiles (Figure 6). Sample-level synthetic data frequently exhibits high density at the low percentiles, indicating a domain gap in a form of structural mismatch with the real distribution. The observed patterns are strongly dependent on the real reference dataset: (i) alignment with CelebA is the weakest across all synthetic datasets, with mass concentrated in the lowest percentiles; (ii) for FFHQ, a pronounced spike appears near the 0th percentile, but most of the distribution sits around the 0.01 value, with a visible drop-off in the highest percentiles; (iii) synthetic datasets are structurally closest to C-WF and WF4M regardless of generator, with datasets that included C-WF in training (CemiFace, DCFace, SFace2, IDNet) maintaining a steady density up to the top percentiles, while datasets that did not see it drop off noticeably at the tail. Overall, synthetic datasets fail to cover the high-similarity tail of real distributions unless the reference was part of their training corpus. If this stemmed solely from distributional learning, each generator would preserve tails comparably across all three real references. As tail preservation remains selective to the training corpus, it is a sign of memorization rather than generalization, an interpretation consistent with leakage patterns identified by SO and .

Figure 6. Synthetic-to-real image similarity distribution with real data non-mated self-similarity as a percentile scale.

Figure 7. Number of unique identities among top-10 closest real images with respect to synthetic samples.
Further, to assess how strongly leakage concentrates on any single person, we measured the number of unique real identities appearing in the top-10 closest matches for each synthetic sample. Since FFHQ is unannotated, it was skipped from this analysis. 99.68% (10,538 / 10,572) of C-WF, 82.23% (8,369 / 10,177) of CelebA and 55.53% (114,386 / 205,990) of WF4M identities have at least 10 images, ensuring that a focus on a single identity would be detectable. Our results (Figure 7) show that synthetic images typically draw from multiple real identities, with 6-8 distinct identities most commonly represented in the top 10. Fewer than 5% of synthetic samples are dominated by a single real identity in most datasets. The notable exceptions are SFace2 (6.6%) and IDNet (5.6%) against C-WF, consistent with elevated SO and values previously reported for these datasets. Even though WebFace4M has a lower fraction of high count identities, it contains approximately 20 times as many identities as CelebA and C-WF, with synthetic images consequently having a much higher number of unique closest real identities. One dominant identity appears at most 0.7% of the time, except for clearly leaking CemiFace, where this ratio is inflated to 4.4%.
5. Discussion
As our work presents a novel metric, Scaled Overlap, we need to address challenges related to differentiating leakage from distribution learning, the closed-source dataset generation procedure, and our dataset-level focus.
5.1. Leakage vs. Distribution Learning
Identity leakage analysis requires clearer guidance on the acceptable level of similarity between real and synthetic datasets. We propose tying it to our dataset-level metric SO. One should consider two complementary directions, identity-level SO and sample-level SO, to prevent overfitting to neither identity-specific facial features nor style-related variables. As such, both sample-level and identity-level similarities should strive to follow the natural data distribution, with respective SOs converging towards 50, yet they should not exceed it. We argue that this threshold should be slightly lower, because: (i) the imperfect distribution learning is a better choice from a privacy perspective than the leakage; (ii) label noise in the real datasets inflates similarity scores for theoretically non-mated real-to-real comparisons, which are in practice mated.
5.2. Closed-Source Generator Training
Recent works in the field of synthetic facial dataset generation [3, 33, 52, 60] have shifted heavily towards diffusion models such as Stable Diffusion [46]. These, in turn, rely on large amounts of training data that are often not disclosed. Consequently, one would first need to determine whether a given dataset was used during training [6] before evaluating data leakage using the methodology presented in this paper.
5.3. Dataset-level Focus
As SO is designed to measure leakage at the dataset level rather than the individual image level, direct similarity scores comparisons with manual filtering [48] and distributional analysis (as in 4.3) remain the most reliable methods to date for identifying specific outliers that exhibit the highest degree of identity leakage. Nonetheless, our analysis, consistent with previous work [3, 48], found that classifiers are prone to errors when faces are distorted, occluded, or at extreme angles, leading to substantial variability. Consequently, as proposed in this paper, a multi-judge approach should be leveraged to offset model flaws at the individual sample level as well.
6. Conclusions
In this work, we demonstrated two limitations of the current approach to identity leakage estimation in synthetic facial recognition datasets: an overreliance on a single model and a tendency to detect leakage in datasets not used in generator training (Phantom Leakage). We addressed both by introducing an evaluation methodology based on an ensemble of five pretrained models and Scaled Overlap, which situates synthetic-to-real similarity against the natural similarity between distinct real identities. Our results show that CemiFace exhibits the strongest dataset-level leakage, with subtler leakage signals observed in SFace2 and IDNet. Leakage itself stemmed primarily from identity-specific features rather than from matching the style of the generator's training or conditioning set.
Future work should explore two main directions. First, one may leverage distributional data properties presented in this study to design a dataset-wide membership inference attack to determine whether a given real dataset was used for generator training. Second, the leakage with respect to larger training datasets, such as WebFace42M [62], requires further investigation.
Acknowledgments
• The authors acknowledge the use of AI-based tools in this work to correct typographical errors as well as to rephrase and refine the clarity of the final manuscript.
• This research was supported by the Luxembourg Army.
References
[1] Xiang An, Xuhan Zhu, Yuan Gao, Yang Xiao, Yongle Zhao, Ziyong Feng, Lan Wu, Bin Qin, Ming Zhang, Debing Zhang, et al. Partial fc: Training 10 million identities on a single machine. In 2021 IEEE/CVF International Conference on Computer Vision Workshops (ICCVW), pages 1445–1449. IEEE, 2021. 4
[2] Gwangbin Bae, Martin de La Gorce, Tadas Baltrušaitis, Charlie Hewitt, Dong Chen, Julien Valentin, Roberto Cipolla, and Jingjing Shen. Digiface-1m: 1 million digital face images for face recognition. In Proceedings of the IEEE/CVF winter conference on applications of computer vision, pages 3526–3535, 2023. 2, 4
[3] Paweł Borsukiewicz, Fadi Boutros, Iyiola E Olatunji, Charles Beumier, Wendkūuni C Ouedraogo, Jacques Klein, and Tegawendé F Bissyandé. Beyond real faces: synthetic datasets can achieve reliable recognition performance without privacy compromise. npj Artificial Intelligence, 2026. 1, 2, 3, 4, 6, 8
[4] Paweł Borsukiewicz, El-hacen Diallo, Abdoul Aziz Bonkoungou, Wendkūuni C Ouédraogo, Jacques Klein, Charles Beumier, and Tegawendé F Bissyandé. Faces in focus: Evaluating generalizability and transferability of facial recognition explainability techniques for cnn-based models. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 4006–4015, 2026. 1
[5] Paweł Borsukiewicz, Daniele Lunghi, Wendkūuni C Ouédraogo, Jacques Klein, and Tegawendé F Bissyandé. Benchmarking face recognition without real faces. arXiv preprint arXiv:2607.14932, 2026. 1
[6] Paweł Borsukiewicz, Daniele Lunghi, Wendkūuni C Ouédraogo, Jacques Klein, and Tegawendé F Bissyandé. Have i seen you? embedding behavior signals synthetic face dataset membership. arXiv preprint arXiv:2607.29144, 2026. 8
[7] Fadi Boutros, Jonas Henry Grebe, Arjan Kuijper, and Naser Damer. Idiff-face: Synthetic-based face recognition through fizzy identity-conditioned diffusion model. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 19650–19661, 2023. 2, 3, 4
[8] Fadi Boutros, Vitomir Struc, Julian Fierrez, and Naser Damer. Synthetic data for face recognition: Current state and future prospects. Image and Vision Computing, 135:104688, 2023. 1, 2
[9] Fadi Boutros, Marco Huber, Anh Thi Luu, Patrick Siebke, and Naser Damer. Sface2: Synthetic-based face recognition with w-space identity-driven sampling. IEEE Transactions on Biometrics, Behavior, and Identity Science, 6(3):290–303, 2024. 2, 3, 4
[10] Fadi Boutros, Eduarda Caldeira, Tahar Chettaoui, and Naser Damer. Idperturb: Enhancing variation in synthetic face generation via angular perturbations. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 40119–40129, 2026. 1, 2
[11] Nicolas Carlini, Jamie Hayes, Milad Nasr, Matthew Jagielski, Vikash Sehwag, Florian Tramer, Borja Balle, Daphne Ippolito, and Eric Wallace. Extracting training data from diffusion models. In 32nd USENIX security symposium (USENIX Security 23), pages 5253–5270, 2023. 2
[12] Laurent Colbois, Tiago de Freitas Pereira, and Sébastien Marcel. On the use of automatically generated synthetic image datasets for benchmarking face recognition. In 2021 IEEE International Joint Conference on Biometrics (IJCB), pages 1–8. IEEE, 2021. 2, 3, 4
[13] Jun Dan, Yang Liu, Haoyu Xie, Jiankang Deng, Haoran Xie, Xuansong Xie, and Baigui Sun. Transface: Calibrating transformer training for face recognition from a data-centric perspective. In Proceedings of the IEEE/CVF international conference on computer vision, pages 20642–20653, 2023. 4
[14] Butterfly Data. Generating synthetic face data for policing using generative ai, 2026. 1
[15] Jiankang Deng, Jia Guo, Niannan Xue, and Stefanos Zafeiriou. Arcface: Additive angular margin loss for deep face recognition. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pages 4690–4699, 2019. 3, 4
[16] Yu Deng, Jiaolong Yang, Dong Chen, Fang Wen, and Xin Tong. Disentangled and controllable face image generation via 3d imitative-contrastive learning. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pages 5154–5163, 2020. 2
[17] Alexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn, Xiaohua Zhai, Thomas Unterthiner, Mostafa Dehghani, Matthias Minderer, Georg Heigold, Sylvain Gelly, et al. An image is worth words: Transformers for image recognition at scale. arXiv preprint arXiv:2010.11929, 2020. 4
[18] Matthijs Douze, Alexandr Guzhva, Chengqi Deng, Jeff Johnson, Gergely Szilvasy, Pierre-Emmanuel Mazaré, Maria Lomeli, Lucas Hosseini, and Hervé Jégou. The faiss library, 2025. 3
[19] European Parliament and Council of the European Union.
Regulation (EU) 2016/679 of the European Parliament and of the Council, 2016. 2
[20] Frontex. Best practice technical guidelines for automated border control (abc) systems, 2015. [Accessed 16-08-2026]. 3
[21] Anjith George and Sébastien Marcel. Digi2real: Bridging the realism gap in synthetic data face recognition via foundation models. In Proceedings of the Winter Conference on Applications of Computer Vision, pages 1469–1478, 2025. 2, 3, 4
[22] Anjith George, Christophe Ecabert, Hatef Otroshi Shahreza, Ketan Kotwal, and Sébastien Marcel. Edgeface: Efficient face recognition model for edge devices. IEEE Transactions on Biometrics, Behavior, and Identity Science, 6(2):158–168, 2024. 4
[23] Ian J Goodfellow, Jean Pouget-Abadie, Mehdi Mirza, Bing Xu, David Warde-Farley, Sherjil Ozair, Aaron Courville, and Yoshua Bengio. Generative adversarial nets. Advances in neural information processing systems, 27, 2014. 2
[24] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 770–778, 2016. 2
[25] Jonathan Ho, Ajay Jain, and Pieter Abbeel. Denoising diffusion probabilistic models. Advances in neural information processing systems, 33:6840–6851, 2020. 2
[26] Gary B Huang, Marwan Mattar, Tamara Berg, and Eric Learned-Miller. Labeled faces in the wild: A database for studying face recognition in unconstrained environments. In Workshop on faces in 'Real-Life' Images: detection, alignment, and recognition, 2008. 3
[27] InsightFace. Insightface model zoo, 2021. Accessed: 2026-08-01. 4
[28] Tero Karras, Samuli Laine, and Timo Aila. A style-based generator architecture for generative adversarial networks. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pages 4401–4410, 2019. 2, 3, 4
[29] Tero Karras, Samuli Laine, Miika Aittala, Janne Hellsten, Jaakko Lehtinen, and Timo Aila. Analyzing and improving the image quality of stylegan. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pages 8110–8119, 2020. 2
[30] Minchul Kim, Feng Liu, Anil Jain, and Xiaoming Liu. Dcface: Synthetic face generation with dual condition diffusion model. In Proceedings of the ieee/cvf conference on computer vision and pattern recognition, pages 12715–12725, 2023. 2, 3, 4, 6
[31] Minsoo Kim, Min-Cheol Sagong, Gi Pyo Nam, Junghyun Cho, and Ig-Jae Kim. Vigface: Virtual identity generation for privacy-free face recognition. arXiv preprint arXiv:2403.08277, 2024. 1, 3
[32] Jan Niklas Kolf, Tim Rieber, Jurek Elliesen, Fadi Boutros, Arjan Kuijper, and Naser Damer. Identity-driven three-player generative adversarial network for synthetic-based face recognition. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pages 806–816, 2023. 2, 3, 4
[33] Pavel Korshunov, Ketan Kotwal, Christophe Ecabert, Vidit Amir Mohammadi, and Sébastien Marcel. Investigation of accuracy and bias in face recognition trained with synthetic data. In 2025 IEEE International Joint Conference on Biometrics (IJCB), pages 1–10. IEEE, 2025. 8
[34] Adam Kortylewski, Andreas Schneider, Thomas Gerig, Bernhard Egger, Andreas Morel-Forster, and Thomas Vetter. Training deep face recognition systems with synthetic data. arXiv preprint arXiv:1802.05891, 2018. 2
[35] Alex Krizhevsky, Ilya Sutskever, and Geoffrey E Hinton. Imagenet classification with deep convolutional neural networks. Advances in neural information processing systems, 25, 2012. 4
[36] Lamyanba Laishram, Muhammad Shaheryar, Jong Taek Lee, and Soon Ki Jung. Toward a privacy-preserving face recognition system: A survey of leakages and solutions. ACM Computing Surveys, 57(6):1–38, 2025. 1
[37] Xiao Lin, Yuge Huang, Jianqing Xu, Yuxi Mi, Shuigeng Zhou, and Shouhong Ding. Uiface: Unleashing inherent model capabilities to enhance intra-class diversity in synthetic face recognition. In International Conference on Learning Representations, pages 87296–87309, 2025. 2, 3
[38] Ziwei Liu, Ping Luo, Xiaogang Wang, and Xiaoou Tang. Deep learning face attributes in the wild. In Proceedings of International Conference on Computer Vision (ICCV), 2015. 2, 4
[39] Henry B Mann and Donald R Whitney. On a test of whether one of two random variables is stochastically larger than the other. The annals of mathematical statistics, pages 50–60, 1947. 3
[40] Casey Meehan, Kamalika Chaudhuri, and Sanjoy Dasgupta. A non-parametric test to detect data-copying in generative models. In International conference on artificial intelligence and statistics, 2020. 3
[41] Terance D Miethe, Tanya Dudinskaya, Christopher Forepaugh, and William H Sousa. Facial recognition technology in policing: A national survey of public support for this technology and privacy/safety concerns. Crime & Delinquency, 71(4):1025–1051, 2025. 1
[42] Hatef Otroshi Shahreza and Sébastien Marcel. Hyperface: Generating synthetic face recognition datasets by exploring face embedding hypersphere. In International Conference on Learning Representations, pages 38167–38185, 2025. 4
[43] Foivos Paraperas Papantoniou, Alexandros Lattas, Stylianos Moschoglou, Jiankang Deng, Bernhard Kainz, and Stefanos Zafeiriou. Arc2face: A foundation model for id-consistent human faces. In European Conference on Computer Vision, pages 241–261. Springer, 2024. 1, 2, 3
[44] Lixiong Qin, Mei Wang, Chao Deng, Ke Wang, Xi Chen, Jiani Hu, and Weihong Deng. Swinface: a multi-task transformer for face recognition, expression recognition, age estimation and attribute estimation. IEEE Transactions on Circuits and Systems for Video Technology, 34(4):2223–2234, 2023. 4
[45] Haibo Qiu, Baosheng Yu, Dihong Gong, Zhifeng Li, Wei Liu, and Dacheng Tao. Synface: Face recognition with synthetic data. In Proceedings of the IEEE/CVF International
Conference on Computer Vision, pages 10880–10890, 2021. 2, 3, 4
[46] Robin Rombach, Andreas Blattmann, Dominik Lorenz, Patrick Esser, and Björn Ommer. High-resolution image synthesis with latent diffusion models. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pages 10684–10695, 2022. 8
[47] Florian Schroff, Dmitry Kalenichenko, and James Philbin. Facenet: A unified embedding for face recognition and clustering. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 815–823, 2015. 4
[48] Hatef Otroshi Shahreza and Sébastien Marcel. Unveiling synthetic faces: How synthetic datasets can expose real identities. In The Third Workshop on New Frontiers in Adversarial Machine Learning, 2024. 1, 2, 3, 4, 6, 8
[49] Hatef Otroshi Shahreza, Christophe Ecabert, Anjith George, Alexander Unnervik, Sébastien Marcel, Nicolò Di Domenico, Guido Borghi, Davide Maltoni, Fadi Boutros, Julia Vogel, et al. Sdfr: Synthetic data for face recognition competition. In 2024 IEEE 18th international conference on automatic face and gesture recognition (FG), pages 1–9. IEEE, 2024. 1
[50] Jaisidh Singh, Harshil Bhatia, Mayank Vatsa, Richa Singh, and Aparna Bharati. Synthprov: Interpretable framework for profiling identity leakage. In Proceedings of the IEEE/CVF Winter Conference on Applications of Computer Vision, pages 4746–4756, 2024. 2, 3
[51] Marcus Smith and Seumas Miller. The ethical application of biometric facial recognition technology. Ai & Society, 37(1): 167–175, 2022. 2
[52] Zhonglin Sun, Siyang Song, Ioannis Patras, and Georgios Tzimiropoulos. Cemiface: Center-based semi-hard synthetic face generation for face recognition. Advances in Neural Information Processing Systems, 37:35612–35638, 2024. 1, 2, 3, 4, 6, 8
[53] Timesler. facenet-pytorch, 2018. Accessed: 2026-08-01. 4
[54] Patrick Tinsley, Adam Czajka, and Patrick Flynn. This face does not exist... but it might be yours! identity leakage in generative models. In Proceedings of the IEEE/CVF Winter Conference on Applications of Computer Vision, pages 1320–1328, 2021. 1, 2, 3, 4
[55] Fei Wang, Liren Chen, Cheng Li, Shiyao Huang, Yanjie Chen, Chen Qian, and Chen Change Loy. The devil of face recognition is in the noise. In Proceedings of the European Conference on Computer Vision (ECCV), pages 765–780, 2018. 2
[56] Ryan Webster, Julien Rabin, Loic Simon, and Frédéric Jurie. Detecting overfitting of deep generative networks via latent recovery. In 2019 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 11265–11274. IEEE, 2019. 2
[57] Erroll Wood, Tadas Baltrušaitis, Charlie Hewitt, Sebastian Dziadzio, Thomas J Cashman, and Jamie Shotton. Fake it till you make it: face analysis in the wild using synthetic data alone. In Proceedings of the IEEE/CVF international conference on computer vision, pages 3681–3691, 2021. 1
[58] Haiyu Wu, Jaskirat Singh, Sicong Tian, Liang Zheng, and Kevin Bowyer. Vec2face: Scaling face dataset generation
with loosely constrained vectors. In International Conference on Learning Representations, pages 23490–23503, 2025. 1, 2, 3
[59] Jianqing Xu, Shen Li, Jiaying Wu, Miao Xiong, Ailin Deng, Jiazhen Ji, Yuge Huang, Guodong Mu, Wenjie Feng, Shouhong Ding, et al. Id : Identity-preserving-yet-diversified diffusion models for synthetic face recognition. Advances in Neural Information Processing Systems, 37: 77777–77798, 2024. 2, 3
[60] Michael Yeung, Toya Teramoto, Songtao Wu, Tatsuo Fujiwara, Kenji Suzuki, and Tamaki Kojima. Variface: Fair and diverse synthetic dataset generation for face recognition. arXiv preprint arXiv:2412.06235, 2024. 1, 2, 8
[61] Dong Yi, Zhen Lei, Shengcai Liao, and Stan Z Li. Learning face representation from scratch. arXiv preprint arXiv:1411.7923, 2014. 2, 3, 4
[62] Zheng Zhu, Guan Huang, Jiankang Deng, Yun Ye, Junjie Huang, Xinze Chen, Jiagang Zhu, Tian Yang, Dalong Du, Jiwen Lu, et al. Webface260m: A benchmark for million-scale deep face recognition. IEEE Transactions on Pattern Analysis and Machine Intelligence, 45(2):2627–2644, 2022. 2, 4, 9