WorksComputer Science
No Way To Steal My Face: Proactive Defense Against Identity-Preserving Personalized Generation
Abstract
Recent advances in diffusion models have enabled high-fidelity, identity-preserving image generation for personalized applications such as digital avatars and virtual try-on systems. However, their reliance on sensitive facial reference images raises growing privacy concerns. Existing defense mechanisms are primarily designed for training-based personalization and struggle to generalize to emerging training-free approaches, due to fundamental differences in their identity integration paradigms. To bridge this gap, we propose IDGuardian-the first generalizable and model-agnostic identity protection framework capable of defending against both training-based and training-free personalization methods. IDGuardian abstracts the personalization process into two critical stages: identity extraction and identity injection. It then introduces crafted adversarial perturbations to simultaneously disrupt both stages. Specifically, it degrades the identity features extracted by external encoders and establishes an adversarial conceptual bridge that misdirects the generative trajectory away from the target identity. Extensive experiments show that IDGuardian effectively protects identity across various personalization pipelines and model architectures, while remaining robust to post-processing, adaptive attacks, and cross-dataset generalization. Our code is available at https://github.com/OpenAscent-L/IDGuardian.git.
Introduction
Recent advances in diffusion models have significantly improved high-fidelity, identity-preserving image generation [17, 29]. By conditioning on facial reference images, these models can produce photorealistic portraits that accurately retain individual identities [15, 30, 42]. Existing identity-preserving personalization methods generally fall into two categories: training-based and training-free approaches.
Training-based methods [11, 14, 31] fine-tune pre-trained diffusion models on a small set of user-specific images, effectively capturing detailed identity features. However, they require significant computational resources, careful hyperparameter tuning, and GPU support, which limits their scalability in practice. In contrast, training-free methods [16, 47, 48] leverage identity encoders pre-trained on large-scale datasets to extract semantic facial representations in a zero-shot manner during inference. These methods enable fast, scalable, and user-friendly personalization, making them popular in real-world applications due to their efficiency and low deployment cost.
Despite the impressive progress in personalized image generation enabled by diffusion models, growing privacy concerns have arisen due to their reliance on sensitive facial reference images, which can be misused for identity reconstruction or impersonation. To address these risks, recent proactive defenses have explored perturbing input images to disrupt the generation of personalized content [45]. These methods [12, 33, 41, 43] typically adopt training-based personalization as a proxy task, optimizing adversarial perturbations to hinder the model’s ability to encode identity-specific features. However, their effectiveness degrades markedly when applied to training-free personalization, as illustrated in Figure 1, due to two core challenges arising from differences in personalization paradigms: i) Personalized Pipeline Discrepancy. Training-based approaches internalize identity features through model fine-tuning, whereas training-free methods inject identity embeddings via pre-trained encoders without modifying model parameters. This structural distinction renders perturbations optimized under the training-based setting ineffective in training-free scenarios. ii) Information Fusion Diversity. Training-free pipelines exhibit considerable heterogeneity in encoder architectures and identity-semantics fusion strategies, lacking a unified framework. This diversity poses a significant obstacle to developing generalizable defenses, leaving critical privacy risks unresolved.

Figure 1. Existing defense methods become ineffective in training-free personalization due to paradigm discrepancies and fusion diversity.
To bridge this gap, we propose IDGuardian, a generalizable and model-agnostic defense mechanism designed to protect identity privacy across both training-based and training-free personalization paradigms.2 Despite the structural differences among existing personalization pipelines, IDGuardian mitigates identity leakage by abstracting the generation process into two fundamental stages: identity extraction and identity injection. It then formulates a dual-perspective adversarial strategy that disrupts identity learning through the following mechanisms: i) Cross-Encoder Identity Field Confounding. IDGuardian enforces intentional dissimilarity between identity features extracted from the protected and original images, hindering malicious exploitation of the reference identity in downstream generation. ii) Guidance-Flow Identity Deflection. By interpreting identity-preserving personalization as a conceptual bridge from an unconditional to an identity-conditioned distribution, IDGuardian establishes an adversarial conceptual bridge that redirects the diffusion sampling trajectory away from the clean identity manifold, thereby impairing identity consistency during synthesis.
To evaluate the effectiveness and robustness of IDGuardian, we conduct extensive experiments across diverse personalization pipelines, including training-based and training-free methods, as well as diffusion- and flux-based generators, and observe strong transfer from a single white-box training setup to unseen black-box systems. The protection remains effective under post-processing, adaptive attacks, and cross-dataset transfer. Ablation studies verify the contribution of each component, while both human and perceptual evaluations confirm reliable identity protection without compromising usability. Our contributions can be summarized into three-fold:
We introduce the first proactive identity protection framework that defends against both training-free and training-based personalization methods, effectively mitigating malicious identity misuse. Our approach fills a critical gap in existing defenses by demonstrating dual adaptability across personalization paradigms.
We propose IDGuardian, which abstracts identity-preserving generation into identity extraction and injection. Through Cross-Encoder Identity Field Confounding and Guidance-Flow Identity Deflection, it disrupts feature alignment and redirects diffusion trajectories, mitigating identity preservation across personalization pipelines.
Extensive experiments show that IDGuardian effectively protects identity across diverse personalization methods, including generators based on diffusion and flux. Trained on a single white-box diffusion model, it generalizes to unseen black-box pipelines and datasets, and remains robust against post-processing and adaptive attacks.
Related Work
Identity-Preserving Personalized Generation
Identity-preserving personalized generation aims to synthesize images that faithfully retain the unique identity of a given subject [3, 34]. Recent advances in diffusion-based models have significantly enhanced the fidelity and identity consistency of generated images [7, 27]. Existing methods can be broadly categorized into two classes: training-based and training-free. Training-based methods—such as DreamBooth [31], CustomDiffusion [14], Textual Inversion [5], and LoRA-based fine-tuning [11]—adapt pre-trained diffusion models to new identities by fine-tuning them on a small set of reference images. These approaches often yield high-quality personalization and effectively preserve detailed identity cues, but they are computationally intensive and sensitive to hyperparameter settings, limiting their scalability and usability in practical scenarios.
To address these challenges, training-free approaches have emerged as lightweight and efficient alternatives [4, 6]. These methods typically use external identity encoders to extract semantic facial representations zero-shot, injecting them into the diffusion process via various fusion strategies without modifying model parameters [51]. The key difference among recent training-free methods lies in how identity is integrated into generation [17]. For example, PhotoMaker [16] uses a Direct Stack strategy to encode multiple references into a unified identity embedding replacing class-specific tokens. IP-Adapter [48] and Instant-ID [46] employ Cross-Attention to inject identity features alongside text-based attention. Infinite-ID [47] extends this with a Mixed Attention scheme combining cross- and self-attention. In contrast, KV-Edit [52] relies solely on Self-Attention, caching background key-value pairs and merging them with foreground queries for identity-aware editing.
Proactive Defense for Personalized Generation
With the rapid proliferation of personalized generative models, concerns about privacy leakage and the unauthorized use of personal images have spurred growing interest in developing effective defense mechanisms [18, 20, 38, 49]. Among these, active defense strategies aim to proactively perturb user-provided reference images to prevent downstream models from accurately capturing and reproducing identity features. Recent advances have introduced a variety of active defense techniques designed to disrupt the fine-tuning processes of generative models [1, 8, 24]. For instance, Anti-DreamBooth [43] applies PGD-based perturbations [24] to interfere with the fine-tuning pipeline of models such as DreamBooth. AdvDM [19] leverages Monte Carlo estimation to optimize perturbations in the latent space of diffusion models, preventing the extraction of features from protected artworks. SimAC [44] enhances perturbation effectiveness through greedy timestep selection and a feature-level interference loss tailored to diffusion dynamics. In contrast, PersGuard [22] implants backdoor triggers into pre-trained models to selectively disable personalization for protected inputs. Additionally, ACE [50] proposes an unified adversarial framework that jointly optimizes encoder error, reverse process error, and fine-tuning error, employing target-guided optimization to balance conflicts among these objectives.
However, the effectiveness of existing defenses significantly diminishes in training-free settings, primarily due to Personalized Pipeline Discrepancy and Information Fusion Diversity inherent in personalization methods. As training-free pipelines gain traction for their scalability and ease of deployment, there is an urgent need for universal defense strategies that can robustly counteract both training-based and training-free personalization approaches. In contrast to training-based pipelines, effective defense against training-free personalization remains insufficiently explored, particularly in ways that can generalize across both paradigms. Concurrent with our work, IDProtector [39] addresses identity leakage by aligning features across identity encoders used in various personalization pipelines. Although effective in training-free scenarios, it relies on multiple encoder-specific features tied to specific models, limiting its generalization to training-based pipelines and introducing considerable architectural complexity. These limitations underscore the need for more efficient, generalizable, and model-agnostic defense mechanisms.
Methods
Threat Model
We consider a real-world identity abuse scenario involving three roles: the identity holder (victim), the generative user (attacker), and the protection mechanism (defender) deployed by the identity holder.
Identity Holder (Victim). The identity holder shares facial images on public platforms. These images may be harvested and exploited to synthesize novel identity-consistent content without consent. To mitigate such privacy risks, the identity holder proactively applies subtle, imperceptible perturbations that preserve visual realism while reducing extractability of identity-relevant features.
Generative User (Attacker). The attacker uses personalized generation techniques, often diffusion-based, to synthesize images that preserve the victim’s identity, enabling scalable and high-fidelity reproduction.
Protection Mechanism (Defender). To prevent unauthorized identity preservation, the defender perturbs the input image. Operating in a restricted access setting, the defender has no knowledge of the specific personalized generation techniques employed by the attacker and is limited to modifying the input image alone. Given any personalized identity-preserving generator and input image , the defender seeks to optimize a perturbation such that reduces identity consistency in the generated output. The objective is to ensure that deviates in identity from , thereby diminishing the effectiveness of personalized generation in preserving the victim’s identity. The optimization problem is formulated as:
where denotes the identity feature extractor, quantifies the similarity between identities, and constrains the magnitude of the perturbation to ensure imperceptibility.
Overall Method
Identity-preserving personalized generation methods typically consist of two critical stages: identity extraction and identity injection. In the first stage, an identity extractor derives identity features from a reference image. In the second, these features are fused with semantic content via identity injection techniques to produce personalized outputs. As depicted in the upper part of Figure 2, this pipeline can be abstracted into a two-stage process. Leveraging this structure, we propose IDGuardian, a defense framework that protects a reference identity by independently disrupting both the identity extraction and injection stages.

Figure 2. Overview of IDGuardian. The framework centers on two complementary stages of personalization: identity extraction and identity injection. To disrupt identity extraction, Cross-Encoder Identity Field Confounding decorrelates visual identity embeddings across feature spaces. To weaken identity injection, Guidance-Flow Identity Deflection redirects the denoising trajectory toward identity-neutral regions. Identity loss is computed using embeddings from the original (/CLIP) and protected (/CLIP) images, while distributional deviation is induced via adversarial conceptual bridge during the denoising process.
Cross-Encoder Identity Field Confoundin: IDGuardian enforces the identity features extracted from the protected image to be intentionally dissimilar from those of the original image, thereby hindering the malicious use of the reference identity in subsequent generative processes.
Guidance-Flow Identity Deflection: IDGuardian establishes an adversarial conceptual bridge by interpreting identity-preserving personalization as a conceptual bridge
from an unconditional to a target identity-conditioned distribution. This redirects the diffusion sampling trajectory away from the clean identity manifold, impairing identity consistency during synthesis.
By jointly optimizing perturbations at both stages, IDGuardian produces a final adversarial perturbation that remains imperceptible to human observers while substantially degrading identity consistency in the generated outputs.
Cross-Encoder Identity Field Confounding
To disrupt identity extraction, we explicitly minimize the identity similarity between the clean image and its adversarially perturbed counterpart within the embedding spaces of two complementary identity encoders. Employing dual encoders enables the capture of richer and more comprehensive identity representations, mitigating the limitations of using a single encoder, which may struggle to generalize across diverse image domains and identity variations. Specifically, we adopt FaceNet [32] and CLIP [28] as complementary identity extractors to enhance robustness of the identity loss. FaceNet is tailored for extracting facial identity features, while CLIP’s image encoder captures high-level semantic information from visual data, providing a broader and more nuanced representation of identity.
The identity loss is defined as a weighted sum of cosine similarities computed in the respective embedding spaces:
where each term measures the cosine similarity between
features extracted from the clean and perturbed images:
where and denote the feature extraction functions that map input images to their respective identity embedding spaces.
Guidance-Flow Identity Deflection
To weaken identity injection during diffusion generation, we interpret identity-preserving personalization as a conceptual bridge represented by a structured shift in the score function toward the target identity manifold. Building on this, we establish an adversarial conceptual bridge that diverts the generative trajectory from the original manifold, disrupting identity preservation. The subsequent sections detail score-based foundations, the conceptual bridge perspective, and our adversarial conceptual bridge design.
Score-Based Foundations in Diffusion. Diffusion models synthesize data by iteratively denoising a Gaussian noise sample through a learned reverse Markov process. During each timestep , the model learns to approximate the gradient of the data log-probability—referred to as the score function, denoted by —which steers the noisy input toward regions of higher data likelihood. As the exact score function is intractable to compute, diffusion models instead learn to predict the noise component introduced during the forward process. This leads to the following widely used approximation [10, 21, 25, 35, 37]:
where denotes the cumulative noise schedule up to timestep . In conditional generation settings, such as identity- or text-conditioned synthesis, the score function incorporates the conditioning variable , yielding the approximation:
where denotes the predicted noise under the conditioning of .
Analyzing Identity-Preserving Personalization through the Lens of the Score Function as a Conceptual Bridge
Inspired by distributional transport frameworks such as Dual Diffusion Implicit Bridges [40], we view identity-preserving personalization through the lens of a conceptual bridge. Grounded in the score-based foundation of diffusion models, this bridge can be interpreted as linking an unconditional to a conditional generative process, guiding generation toward the target identity . This behavior can be modeled by maximizing the conditional likelihood , with its gradient reflecting how the identity influences the generative trajectory. Applying Bayes’ rule, the gradient can be decomposed as:
where the first term corresponds to the conditional likelihood, and the second term reflects the unconditional prior. Following prior study [36], this gradient difference can be approximated using the predicted noise of the model as:
where represents predicted noise conditioned on the target identity, corresponding to the blue arrow in Figure 3. In contrast, denotes the unconditional noise prediction, illustrated by the orange arrow . The difference between these two predictions (indicated by the light cyan dashed arrow) captures how identity conditioning alters the denoising direction, effectively steering the generative trajectory toward the target identity manifold [9, 25]. This identity-induced distributional shift can be interpreted as a structured perturbation of the score function. Inspired by the analogy to distributional transport, we refer to this shift as a conceptual bridge, highlighting its role in connecting the source and identity-conditioned distributions in the generative process.

Figure 3. Visualization of Conceptual Bridges Constructed via Noise Prediction Differences in Diffusion Sampling.
Score-Based Adversarial Conceptual Bridge. Building on the conceptual bridge perspective of identity-preserving personalization, we introduce a parallel adversarial conceptual bridge that reorients the generative trajectory away from the clean identity manifold and toward a strategically designed adversarial identity distribution. Unlike its identity-preserving counterpart, this bridge deliberately disrupts identity consistency rather than reinforcing alignment.
Formally, this adversarial conceptual bridge is constructed through the difference between the conditional gradients corresponding to adversarial and clean identity:
where can be approximated by the difference , shown as the purple dashed arrow in Figure 3, with extracted from the protected image, steering generation toward the adversarial identity manifold. Concretely,
where and denote predicted noise under adversarial and clean identity conditions, corresponding to the red and blue arrows and in Figure 3. This adversarial conceptual bridge, shown as the green dashed arrow, suppresses identity preservation by steering the sample path to lower-likelihood regions under . It integrates into the model’s scoring mechanism, ensuring temporal consistency and underpinning our defense.
Perturbation Optimization
We update the adversarial perturbation by integrating gradients derived from both the identity loss and the score-based adversarial conceptual bridge . To ensure dimensional consistency, (originally computed in the latent score space) is first upsampled and channel-aligned to match the pixel domain of , resulting in . Both gradients are then -normalized to balance their relative contributions. The combined gradient is computed as:
The perturbation is updated via a projected gradient step:
where controls the update magnitude. For details of the optimization process, please refer to Appendix § 7.§ 1.
Experiments
Implementation Details and Metrics
Datasets. We evaluate our method on two widely used face datasets: VGGFace2 [26] and CelebA-HQ [23]. Unless specified, primary experiments are conducted on VGGFace2. We exclude images smaller than pixels, perform alignment and cropping for consistent facial positioning, and select 50 identities, resizing images to . To assess cross-dataset generalization, we further evaluate on CelebA-HQ by applying adversarial perturbations and identity-conditioned generation to 50 high-resolution images ().
Training Details. We adopt IP-Adapter SDXL Plus Face [48] as the surrogate model, built on the pretrained SDXL backbone [27] with a CLIP-based image encoder to extract identity embeddings for conditioning the UNet. Unless specified, all primary experiments use this SDXL-based surrogate. We apply Projected Gradient Descent (PGD) with a fixed text prompt : “A photo of a person”, perturbation budget , learning rate , and maximum steps . Experiments are conducted on an NVIDIA RTX A6000 GPU (48G). To evaluate surrogate-level generalization, we also test a variant based on Stable Diffusion 1.5 (SD 1.5).
Evaluation Metrics. We adopt three categories of evaluation metrics to comprehensively assess identity protection performance: i) Identity Similarity Metrics (ISM): ISM is the average similarity between generated and source images computed from ArcFace, FaceNet, and VGG-Face features, indicating identity removal effectiveness. ii) Visual Quality: PSNR and SSIM assess the pixel-level fidelity of protected images, reflecting the visual quality after perturbation. iii) Recognition Utility: FaceQNet and MagFace assess the utility of identity-personalized face images for face recognition models. Details specific to DreamBooth evaluation are provided in Appendix § 7.§ 2.
Reproducibility Resources. For reproducibility, more details on the public resources used in our implementation and evaluation are provided in Appendix § 7.§ 3.
Overall Performance
IDGuardian Enhances Identity Protection Effectiveness. We evaluate IDGuardian against five representative active defense methods across seven mainstream identity-personalization pipelines. These pipelines encompass both training-free methods (IP-Adapter [48], IP-Adapter SDXL Plus Face [48], Blip-Diffusion [15], InfiniteID [47], and PhotoMaker [16]) and training-based methods (DreamBooth [31] and InfiniteYou [13]), leveraging diverse generative backbones with Stable Diffusion 1.5, SDXL, and FLUX.1-dev (Transformer-based) for Infinite You.
As summarized in Table 1, IDGuardian consistently achieves the lowest average identity similarity scores across ArcFace, FaceNet, and VGGFace metrics, alongside substantial reductions in image quality scores measured by FaceQNet. Detailed per-metric results and comprehensive statistical analysis are provided in Appendix § 8.§ 1. Qualitative examples in Figure 4 further confirm that IDGuardian effectively suppresses identity cues across a wide range of personalization scenarios, outperforming competing defense methods. These findings highlight the generalizability of IDGuardian in protecting identity across diverse generative models and personalization pipelines.

Figure 4. Visualization of identity suppression effectiveness for IDGuardian and comparison methods across different personalization settings.
| Method | Ip-Adapter ISM↓ | Ip-Adapter FQ↓ | Ip-Ada + XL ISM↓ | Ip-Ada + XL FQ↓ | Blip-Diffu ISM↓ | Blip-Diffu FQ↓ | InfiniteID ISM↓ | InfiniteID FQ↓ | Photomaker ISM↓ | Photomaker FQ↓ | Dreambooth ISM↓ | Dreambooth FQ↓ | InfiniteYou ISM↓ | InfiniteYou FQ↓ |
| No Protected | 0.382 | 0.334 | 0.582 | 0.456 | 0.336 | 0.331 | 0.675 | 0.495 | 0.327 | 0.456 | 0.525 | 0.332 | 0.673 | 0.493 |
| Anti-DB [43] | 0.307 | 0.305 | 0.548 | 0.455 | 0.271 | 0.357 | 0.620 | 0.496 | 0.272 | 0.288 | 0.433 | 0.319 | 0.594 | 0.467 |
| SimAC [44] | 0.295 | 0.312 | 0.401 | 0.451 | 0.305 | 0.363 | 0.591 | 0.484 | 0.248 | 0.296 | 0.390 | 0.343 | 0.571 | 0.459 |
| AdvDM [19] | 0.286 | 0.349 | 0.398 | 0.438 | 0.260 | 0.355 | 0.542 | 0.490 | 0.227 | 0.293 | 0.337 | 0.192 | 0.563 | 0.459 |
| ACE [50] | 0.327 | 0.363 | 0.536 | 0.453 | 0.275 | 0.363 | 0.576 | 0.499 | 0.252 | 0.287 | 0.420 | 0.215 | 0.635 | 0.461 |
| IDProtector [39] | 0.291 | 0.337 | 0.425 | 0.432 | 0.263 | 0.368 | 0.603 | 0.489 | 0.240 | 0.312 | 0.402 | 0.225 | 0.541 | 0.454 |
| IDGuar (Ours) | 0.036 | 0.282 | 0.126 | 0.450 | 0.220 | 0.351 | 0.444 | 0.494 | 0.142 | 0.273 | 0.336 | 0.220 | 0.301 | 0.452 |
Table 1. Comparison of identity protection against baseline methods. ISM is the average identity similarity (ArcFace, FaceNet, VGGFace); FQ is the FaceQNet quality score. “No Protected” denotes generation w/o defense. Best results are in bold.
IDGuardian Preserves Perceptual Quality While Suppressing Identity. Table 2 reports PSNR, SSIM, and time cost scores evaluating visual fidelity and computational efficiency of IDGuardian-processed images. Results show that compared with other defense methods, IDGuardian more effectively suppresses identity cues while better preserving perceptual quality and maintaining competitive time efficiency. The low time cost of IDGuardian arises from its training-free inference design. By contrast, IDP requires training a noise generator that can generalize to most images, incurring substantial computational resources. This is reflected in IDP-P, where performing PGD optimization for each image clearly results in much higher time cost.
| At-DB | SAC | ADM | ACE | IDP-P | IDP | IDGuar | |
| PSNR | 31.63 | 32.15 | 30.76 | 31.61 | 32.49 | 32.10 | 32.19 |
| SSIM | 0.701 | 0.772 | 0.735 | 0.753 | 0.840 | 0.805 | 0.842 |
| Time | 312.1 | 347.3 | 55.3 | 90.0 | 4089 | 0.42 | 47.0 |
Table 2. Comparison of protected image quality (PSNR (dB), SSIM) and time cost (s) across different methods. At-DB denotes Anti-DreamBooth, SAC denotes SimAC, ADM denotes AdvDM, ACE denotes ACE, IDP-P denotes the PGD-optimized variant of IDProtector, IDP denotes IDProtector, and IDGuar denotes our proposed IDGuardian.
IDGuardian Is Robust To Post-Processing and Adaptive Threats. We assess the robustness of IDGuardian against common image degradations—including JPEG compression, Gaussian blur, and Gaussian noise—as well as against adaptive threats such as Impress [2], a recent method designed to bypass active defenses. As shown in Table 3, IDGuardian consistently maintains effective identity suppression under these challenging conditions. Interestingly, for some baselines, mild post-processing such as JPEG compression may slightly improve defense performance. While compression generally disrupts adversarial perturbations, in some cases it also perturbs the model’s recognition of the original image’s identity features, which can inadvertently make identity suppression appear stronger. Qualitative examples in Figure 8 of the Appendix further support these results. Please see Appendix B.3 and B.4 for details.
Table 3. Robustness evaluation against common image post-processing operations, including JPEG compression, Gaussian blur, and Gaussian noise, and attacks targeting active defenses such as Impress.
| Method | Ip-Adapter | Ip-Ada + XL | Blip-Diffu | InfiniteID | Photomaker | Dreambooth | InfiniteYou | |||||||
| ISM | FQ | ISM | FQ | ISM | FQ | ISM | FQ | ISM | FQ | ISM | FQ | ISM | FQ | |
| No Protected | 0.382 | 0.334 | 0.582 | 0.456 | 0.336 | 0.331 | 0.675 | 0.495 | 0.327 | 0.456 | 0.525 | 0.332 | 0.673 | 0.493 |
| JPEG | 0.141 | 0.221 | 0.340 | 0.454 | 0.215 | 0.323 | 0.384 | 0.492 | 0.135 | 0.274 | 0.331 | 0.254 | 0.322 | 0.454 |
| Blur | 0.220 | 0.321 | 0.376 | 0.467 | 0.247 | 0.290 | 0.412 | 0.503 | 0.147 | 0.275 | 0.405 | 0.281 | 0.316 | 0.448 |
| Noise | 0.149 | 0.250 | 0.339 | 0.450 | 0.185 | 0.346 | 0.482 | 0.502 | 0.148 | 0.281 | 0.400 | 0.358 | 0.356 | 0.453 |
| Impress | 0.132 | 0.250 | 0.329 | 0.427 | 0.240 | 0.335 | 0.462 | 0.494 | 0.183 | 0.276 | 0.174 | 0.248 | 0.293 | 0.454 |
| IDGuar (Ours) | 0.036 | 0.282 | 0.126 | 0.450 | 0.220 | 0.351 | 0.444 | 0.494 | 0.142 | 0.273 | 0.336 | 0.220 | 0.301 | 0.452 |
Table 3.

Figure 8. Identity loss convergence over optimization steps with shaded band indicating fluctuation bounds () around the mean curve. The identity loss stabilizes after approximately 200 steps, guiding the selection of the default iteration count.
IDGuardian Generalizes to Commercial APIs. We evaluate IDGuardian on commercial face personalization APIs (Seedream 4.0, Qwen-Image, Kling-AI, Huiwa). As shown in Appendix D.1, it consistently suppresses identity similarity, demonstrating robustness under black-box conditions.
IDGuardian Generalizes Across Surrogate Models. To assess the generalization of IDGuardian, we replace the default SDXL-based IP-Adapter with a variant based on Stable Diffusion 1.5. As shown in Table 2 and Figure 6 of Appendix, IDGuardian consistently achieves strong identity suppression across both generative backbones, demonstrating robustness to architectural variations in the surrogate model. Further details are provided in Appendix D.2.

Figure 6. Visual results under three levels of JPEG compression, Gaussian blur, and Gaussian noise, showing that our protection mechanism remains effective even under stronger distortions.
IDGuardian Generalizes Across Datasets. Beyond VG-Face2, we further evaluate IDGuardian on the CelebA-HQ dataset to assess generalization across data distributions. As shown in Table 9, Table 10, and Figure 10 of Appendix, IDGuardian consistently suppresses identity similarity across various metrics. Consistent results on the LFW dataset using the identity similarity metric are further reported in Table 11 of the Appendix. This performance holds true across different image resolutions and demographics, reinforcing the robustness of our method in diverse real-world scenarios. For details, please refer to Appendix D.3.

Figure 10. Visual comparison of identity suppression results across different surrogate generative models.
Table 9. Ablation study of identity loss combinations and guidance directions, where denotes guidance solely toward the adversarial identity distribution and denotes guidance solely away from the clean identity distribution.
| Method | Ip-Adapter | Ip-Adapter Plus XL | Blip-Diffusion | InfiniteID | ||||||||
| Arc | Face | VGG | Arc | Face | VGG | Arc | Face | VGG | Arc | Face | VGG | |
| No Protected | 0.3369 | 0.4774 | 0.3308 | 0.4985 | 0.6899 | 0.5573 | 0.3305 | 0.3918 | 0.2848 | 0.6345 | 0.7627 | 0.6286 |
| CLIP | 0.2289 | 0.3058 | 0.1949 | 0.2032 | 0.2328 | 0.2147 | 0.2864 | 0.3078 | 0.2664 | 0.5048 | 0.6775 | 0.5478 |
| Facenet | 0.2412 | 0.2897 | 0.2058 | 0.2145 | 0.2281 | 0.2223 | 0.2948 | 0.2989 | 0.2716 | 0.5126 | 0.6843 | 0.5534 |
| CLIP + Facenet | 0.1578 | 0.2347 | 0.1326 | 0.1665 | 0.1707 | 0.1638 | 0.2534 | 0.2764 | 0.2355 | 0.4932 | 0.6047 | 0.5089 |
| IDGuar (Ours) | 0.0673 | -0.0226 | 0.0640 | 0.1296 | 0.1231 | 0.1260 | 0.2255 | 0.2376 | 0.1964 | 0.4121 | 0.5215 | 0.3990 |
| G adv | 0.0688 | -0.0006 | 0.0650 | 0.1318 | 0.1476 | 0.1536 | 0.2971 | 0.3072 | 0.2509 | 0.4501 | 0.5369 | 0.4181 |
| G clean | 0.0869 | -0.0061 | 0.0668 | 0.1442 | 0.1274 | 0.1432 | 0.2400 | 0.2751 | 0.2029 | 0.4265 | 0.5261 | 0.4073 |
| IDGuar (Ours) | 0.0673 | -0.0226 | 0.0640 | 0.1296 | 0.1231 | 0.1260 | 0.2255 | 0.2376 | 0.1964 | 0.4121 | 0.5215 | 0.3990 |
| Method | Photomaker | Dreambooth | InfiniteYou | Mean | ||||||||
| Arc | Face | VGG | Arc | Face | VGG | Arc | Face | VGG | Arc | Face | VGG | |
| No Protected | 0.3488 | 0.3513 | 0.2806 | 0.4681 | 0.6580 | 0.4477 | 0.6788 | 0.7554 | 0.5847 | 0.4709 | 0.5838 | 0.4449 |
| CLIP | 0.2465 | 0.2696 | 0.2757 | 0.4634 | 0.5890 | 0.4584 | 0.5273 | 0.6043 | 0.4599 | 0.3458 | 0.4210 | 0.3397 |
| Facenet | 0.2593 | 0.2634 | 0.2810 | 0.4721 | 0.5743 | 0.4628 | 0.5345 | 0.5926 | 0.4658 | 0.3612 | 0.4188 | 0.3518 |
| CLIP + Facenet | 0.2056 | 0.2142 | 0.2202 | 0.4577 | 0.5606 | 0.4726 | 0.5032 | 0.5357 | 0.3932 | 0.3063 | 0.3577 | 0.2905 |
| IDGuar (Ours) | 0.0747 | 0.1284 | 0.2239 | 0.2792 | 0.3893 | 0.3404 | 0.3230 | 0.3265 | 0.2522 | 0.2159 | 0.2434 | 0.2288 |
| G adv | 0.1437 | 0.1477 | 0.2324 | 0.2796 | 0.4187 | 0.3432 | 0.3279 | 0.3405 | 0.2526 | 0.2427 | 0.2711 | 0.2451 |
| G clean | 0.1562 | 0.1974 | 0.2333 | 0.3046 | 0.4813 | 0.3410 | 0.3379 | 0.3472 | 0.2565 | 0.2423 | 0.2783 | 0.2358 |
| IDGuar (Ours) | 0.0747 | 0.1284 | 0.2239 | 0.2792 | 0.3893 | 0.3404 | 0.3230 | 0.3265 | 0.2522 | 0.2159 | 0.2434 | 0.2288 |
Table 9. Ablation study of identity loss combinations and guidance directions, where G adv denotes guidance solely toward the adversarial identity distribution and G clean denotes guidance solely away from the clean identity distribution.
Table 10. Ablation study of different identity loss combinations and guidance directions. Evaluation is conducted using FaceQNet and MagFace to measure the perceptual quality of generated images.
| Method | Ip-Adapter | Ip-Adapter Plus XL | Blip-Diffusion | InfiniteID | ||||
| Method | FaceQNet ↓ | MagFace ↓ | FaceQNet ↓ | MagFace ↓ | FaceQNet ↓ | MagFace ↓ | FaceQNet ↓ | MagFace ↓ |
| No Protected | 0.3339 | 21.3847 | 0.4564 | 19.3085 | 0.3305 | 21.8112 | 0.4946 | 19.0747 |
| CLIP | 0.3129 | 21.7832 | 0.4726 | 20.4175 | 0.3683 | 20.9487 | 0.5142 | 19.6254 |
| Facenet | 0.3185 | 21.6910 | 0.4791 | 20.5083 | 0.3724 | 20.0284 | 0.5076 | 19.4939 |
| CLIP + Facenet | 0.2714 | 21.8426 | 0.4689 | 19.5268 | 0.3776 | 20.4123 | 0.5128 | 20.1884 |
| IDGuar (Ours) | 0.2820 | 20.8712 | 0.4503 | 18.6099 | 0.3511 | 20.8498 | 0.4938 | 18.8031 |
| G adv | 0.2900 | 20.8653 | 0.4603 | 19.2300 | 0.3569 | 20.7490 | 0.4899 | 19.0814 |
| G clean | 0.2692 | 21.6448 | 0.4526 | 19.2488 | 0.3557 | 19.3413 | 0.4968 | 18.8645 |
| IDGuar (Ours) | 0.2820 | 20.8712 | 0.4503 | 18.6099 | 0.3511 | 20.8498 | 0.4938 | 18.8031 |
| Method | Photomaker | Dreambooth | InfiniteYou | Mean | ||||
| Method | FaceQNet ↓ | MagFace ↓ | FaceQNet ↓ | MagFace ↓ | FaceQNet ↓ | MagFace ↓ | FaceQNet ↓ | MagFace ↓ |
| No Protected | 0.4564 | 20.0541 | 0.3316 | 20.2766 | 0.4527 | 19.7298 | 0.4083 | 20.2342 |
| CLIP | 0.3012 | 20.2741 | 0.3310 | 19.5135 | 0.4729 | 19.1276 | 0.3962 | 20.2414 |
| Facenet | 0.3075 | 20.3417 | 0.3298 | 19.8824 | 0.4660 | 19.4059 | 0.3972 | 20.1930 |
| CLIP + Facenet | 0.2916 | 20.1042 | 0.2983 | 19.8631 | 0.4679 | 20.0893 | 0.3768 | 20.2895 |
| IDGuar (Ours) | 0.2733 | 19.8202 | 0.2203 | 20.2199 | 0.4517 | 19.8111 | 0.3604 | 19.8693 |
| G adv | 0.2813 | 19.7368 | 0.2754 | 19.9528 | 0.4536 | 20.2709 | 0.3725 | 19.9837 |
| G clean | 0.2789 | 19.8856 | 0.2270 | 20.5887 | 0.4519 | 20.3764 | 0.3617 | 19.9929 |
| IDGuar (Ours) | 0.2733 | 19.8202 | 0.2203 | 20.2199 | 0.4517 | 19.8111 | 0.3604 | 19.8693 |
Table 10.
| Method | Ip-Adapter | Ip-Adapter Plus XL | Blip-Diffusion | InfiniteID | ||||||||
| Arc ↓ | Face ↓ | VGG ↓ | Arc ↓ | Face ↓ | VGG ↓ | Arc ↓ | Face ↓ | VGG ↓ | Arc ↓ | Face ↓ | VGG ↓ | |
| No Protected | 0.3369 | 0.4774 | 0.3308 | 0.4985 | 0.6899 | 0.5573 | 0.3305 | 0.3918 | 0.2848 | 0.6345 | 0.7627 | 0.6286 |
| JPEG | 0.1068 | 0.1900 | 0.1263 | 0.3209 | 0.3983 | 0.3006 | 0.2236 | 0.2196 | 0.2026 | 0.4286 | 0.5158 | 0.4062 |
| Blur | 0.1678 | 0.2948 | 0.1967 | 0.3317 | 0.4443 | 0.3520 | 0.2663 | 0.2663 | 0.2077 | 0.3854 | 0.4780 | 0.3734 |
| Noise | 0.1365 | 0.1794 | 0.1295 | 0.3078 | 0.3970 | 0.3113 | 0.1916 | 0.1910 | 0.1716 | 0.4482 | 0.5581 | 0.4391 |
| Impress | 0.1018 | 0.1696 | 0.1230 | 0.3184 | 0.3735 | 0.2956 | 0.2261 | 0.2653 | 0.2277 | 0.4478 | 0.5309 | 0.4074 |
| IDGuar (Ours) | 0.0673 | -0.0226 | 0.0640 | 0.1296 | 0.1231 | 0.1260 | 0.2255 | 0.2376 | 0.1964 | 0.4121 | 0.5215 | 0.3990 |
| Method | Photomaker | Dreambooth | InfiniteYou | Mean | ||||||||
| Arc ↓ | Face ↓ | VGG ↓ | Arc ↓ | Face ↓ | VGG ↓ | Arc ↓ | Face ↓ | VGG ↓ | Arc ↓ | Face ↓ | VGG ↓ | |
| No Protected | 0.3488 | 0.3513 | 0.2806 | 0.4681 | 0.6580 | 0.4477 | 0.6788 | 0.7554 | 0.5847 | 0.4709 | 0.5838 | 0.4449 |
| JPEG | 0.1199 | 0.0754 | 0.2082 | 0.2723 | 0.3963 | 0.3267 | 0.3344 | 0.3728 | 0.2590 | 0.2581 | 0.3097 | 0.2614 |
| Blur | 0.0709 | 0.1591 | 0.2102 | 0.2899 | 0.5136 | 0.4110 | 0.3371 | 0.3510 | 0.2587 | 0.2642 | 0.3582 | 0.2871 |
| Noise | 0.1785 | 0.1618 | 0.1971 | 0.3418 | 0.5177 | 0.3844 | 0.3410 | 0.3625 | 0.2623 | 0.2780 | 0.3382 | 0.2708 |
| Impress | 0.1910 | 0.1494 | 0.2097 | 0.2516 | 0.4479 | 0.3386 | 0.3166 | 0.3233 | 0.2387 | 0.2648 | 0.3229 | 0.2629 |
| IDGuar (Ours) | 0.0747 | 0.1284 | 0.2239 | 0.2792 | 0.3893 | 0.3404 | 0.3230 | 0.3265 | 0.2522 | 0.2159 | 0.2434 | 0.2288 |
Table 11. Robustness evaluation against common image post-processing operations, including JPEG compression, Gaussian blur, and Gaussian noise, and attacks targeting active defenses such as Impress.
Human and GPT-Based Evaluation of Identity Protection Efficacy. To further validate the effectiveness of identity protection, we conduct both a user study and a GPT-based evaluation using a large multimodal model to assess perceived identity similarity. Results from both evaluations consistently indicate that IDGuardian significantly reduces identity similarity compared to baseline methods. For details on the evaluation protocols and results, please refer to Appendix E.1, E.2 and Figure 7 of Appendix.

Figure 7. Grid search results for perturbation budget and learning rate . The configuration , achieves the best trade-off between identity suppression (measured by ArcFace, FaceNet, and VGGFace similarity) and perceptual quality (SSIM and PSNR).
Ablation Study
Roles of Individual Components. We conduct ablations on three identity supervision components: i) CLIP identity loss alone, ii) combined CLIP and FaceNet losses, and iii) CLIP + FaceNet losses with additional Score-Based Adversarial Conceptual Bridge. As shown in Table 4, the dualencoder setup improves identity suppression by leveraging both semantic and low-level features. Incorporating adversarial conceptual bridge further enhances suppression effectiveness significantly, demonstrating the key role of guided optimization. More details are provided in Appendix § 8.§ 2.
Table 4. Ablation study of identity loss combinations and guidance directions, where G adv denotes guidance solely toward the adversarial identity distribution and G clean denotes guidance solely away from the clean identity distribution.
| Method | Ip-Adapter | Ip-Ada + XL | Blip-Diffu | InfiniteID | Photomaker | Dreambooth | InfiniteYou | |||||||
| ISM | FQ | ISM | FQ | ISM | FQ | ISM | FQ | ISM | FQ | ISM | FQ | ISM | FQ | |
| No Protected | 0.382 | 0.334 | 0.582 | 0.456 | 0.336 | 0.331 | 0.675 | 0.495 | 0.327 | 0.456 | 0.525 | 0.332 | 0.673 | 0.493 |
| CLIP | 0.243 | 0.313 | 0.217 | 0.473 | 0.287 | 0.368 | 0.577 | 0.514 | 0.264 | 0.301 | 0.504 | 0.331 | 0.531 | 0.473 |
| Facenet | 0.246 | 0.319 | 0.222 | 0.479 | 0.288 | 0.372 | 0.583 | 0.508 | 0.268 | 0.308 | 0.503 | 0.330 | 0.531 | 0.466 |
| CLIP + Facenet | 0.175 | 0.271 | 0.167 | 0.469 | 0.255 | 0.378 | 0.536 | 0.513 | 0.213 | 0.292 | 0.497 | 0.298 | 0.477 | 0.468 |
| IDGuar (Ours) | 0.036 | 0.282 | 0.126 | 0.450 | 0.220 | 0.351 | 0.444 | 0.494 | 0.142 | 0.273 | 0.336 | 0.220 | 0.301 | 0.452 |
| G adv | 0.044 | 0.290 | 0.144 | 0.460 | 0.285 | 0.357 | 0.468 | 0.490 | 0.175 | 0.281 | 0.347 | 0.275 | 0.307 | 0.454 |
| G clean | 0.049 | 0.269 | 0.138 | 0.453 | 0.239 | 0.356 | 0.453 | 0.497 | 0.196 | 0.279 | 0.376 | 0.227 | 0.314 | 0.452 |
| IDGuar (Ours) | 0.036 | 0.282 | 0.126 | 0.450 | 0.220 | 0.351 | 0.444 | 0.494 | 0.142 | 0.273 | 0.336 | 0.220 | 0.301 | 0.452 |
Table 4.
Adversarial Guidance Direction. We study how the direction of adversarial score guidance influences optimization. We compare i) gradient toward the adversarial identity distribution (), and ii) gradient away from the clean identity distribution (). Both are one-sided and often unstable due to distributional ambiguity, while our direction explicitly models the shift and achieves more stable identity suppression. Results are shown in Table 4. Qualitative visualizations are provided in Figure 9 of the Appendix. See Appendix § 8.§ 2 for details.

Figure 9. Visualization of generalization results on commercial face personalization APIs.
Perturbation Budget and Learning Rate. We perform a grid search over perturbation magnitude and step size to explore their effects on identity suppression and perceptual quality. As shown in Appendix Figure 3, the combination and achieves the best balance, effectively reducing identity similarity while preserving visual fidelity. Smaller perturbations yield insufficient suppression, while larger ones introduce artifacts and degrade quality. Please refer to Appendix § 10.§ 2 for more details.
Number Of Optimization Steps. We analyze convergence by tracking identity loss over 1000 iterations. As shown in Figure 4 of the Appendix, loss decreases rapidly in the first 100 steps and stabilizes after 200, with only marginal gains afterward. Thus, we set optimization steps to 200 for all experiments. Further details are in Appendix § 10.§ 3.
Conclusion
We propose IDGuardian, an adversarial defense framework for proactive identity protection in diffusion- and flux-based personalized image generation. By learning imperceptible perturbations, it prevents generated outputs from preserving the original identity under similarity-based evaluation. IDGuardian integrates two complementary strategies: i) Cross-Encoder Identity Field Confounding, which reduces identity similarity across multiple encoders, and ii) Guidance-Flow Identity Deflection, which steers the diffusion trajectory away from the target identity manifold. It remains imperceptible while effectively suppressing identity information, and is robust to common post-processing operations and adaptive removal attacks such as Impress. Experiments show that IDGuardian reduces identity consistency in generated outputs, mitigating identity leakage in personalized image synthesis.
Acknowledgments
This work was supported in part by the National Natural Science Foundation of China under Grants 62472231, 62172233, and 62502215; the Jiangsu Provincial Science and Technology Major Project under Grant BG2024042; the Natural Science Foundation of Jiangsu under Grant BK20250735; and the Postgraduate Research & Practice Innovation Program of Jiangsu Province under Grant SJCX25_0523.
Methodological and Evaluation Details
While the main paper introduces the two-stage defense principle of IDGuardian, this section provides the complete algorithmic details of its optimization process. Specifically, IDGuardian jointly optimizes adversarial perturbations through two complementary strategies—Cross-Encoder Identity Field Confounding and Guidance-Flow Identity Deflection—which correspond to the disruption of identity extraction and injection, respectively. For clarity and reproducibility, we detail the optimization objectives, loss composition, and implementation settings that were omitted for brevity in the main text.
Optimization Process of IDGuardian
Our defense operates in the latent denoising space of the pretrained SDXL backbone within the IP-Adapter SDXL Plus Face pipeline, and optimizes an adversarial perturbation on the input image , such that the final protected image preserves perceptual quality while significantly reducing identity consistency in downstream personalized generation.
The optimization is carried out iteratively over steps. At each step:
The input clean image is encoded into the latent space using the VAE encoder.
A random diffusion timestep is sampled, and corresponding noise is added to simulate a forward noisy latent .
Identity embeddings are computed from the clean and perturbed versions of the input, and serve as conditioning inputs for the UNet during denoising.
Two complementary gradients are computed: i) the identity loss gradient based on FaceNet and CLIP similarity; ii) a distributional score gradient , which measures the semantic divergence between adversarial and clean identity trajectories in diffusion space.
To match the spatial resolution and RGB channels of the perturbation, is upsampled via bilinear interpolation (PyTorch:
F.interpolate(..., mode='bilinear', align_corners=False)) and only the first three channels (RGB) are retained to align with the perturbation tensor.These gradients are normalized and combined to update via a projected gradient descent step, bounded by the perturbation constraint .
Algorithm 1 outlines the full optimization pipeline. This instantiation reflects a synergy between semantic feature-space objectives and internal generative guidance dynamics, ensuring that the optimization is both perceptually aware and diffusion-aligned.
Algorithm 1 IDGuardian
Input: original image , perturbation budget , learning rate , text prompt , max steps
Output: optimized adversarial image
Load pretrained IP-Adapter SDXL Plus Face pipeline components: VAE Encoder, UNet, and CLIP image encoder
Encode image into latent space:
Initialize perturbation
for to do
Sample random timestep , corresponding noise
Compute noisy latent:
Compute embeddings:
Predict denoising outputs:
Compute score gradient:
Upsample to image resolution using bilinear interpolation and align channels with RGB:
Compute identity loss gradient:
Combine gradients:
Update perturbation:
Clip:
end for
Return
DreamBooth Fine-Tuning and Similarity Evaluation
For DreamBooth and other training-based methods, which typically require multiple images per identity for fine-tuning, we provide four distinct images per identity. For each generated image of that identity, we compute its similarity to each of the four original images, yielding four similarity scores. We then average these four scores to obtain a single similarity metric for that generated image. This procedure is repeated for all generated images of the identity, and the final reported similarity is obtained by averaging across all generated images. This ensures that the evaluation reflects the model’s performance using all available reference images rather than relying on a single image.
Reproducibility Resources
For reproducibility, we list the main public resources used in this work:
FaceNet implementation: We adopt the official FaceNet implementation from the GitHub repository
davidsandberg/facenet, using the Inception-ResNet-v1 checkpoint with identifier 20180402-114759 in our loss computation.Evaluation toolkit: We use the public DeepFace toolkit from the GitHub repository
serengil/deepfacefor identity similarity evaluation.Datasets: The VGGFace2 dataset is accessed from the HuggingFace repository
datasets/ProgramComputer/VGGFace2. The CelebA-HQ dataset is obtained from the GitHub repositoryIIGROUP/MM-CelebA-HQ-Dataset.
Detailed Quantitative Results
Comparative Evaluation with Baselines
In the main paper, we summarized the performance of IDGuardian against baseline methods using average identity similarity scores and a representative perceptual quality metric. Here, we provide comprehensive quantitative results for all individual identity similarity metrics (ArcFace, FaceNet, VGGFace) and perceptual quality metrics (FaceQNet, MagFace) across the tested methods. Table 7 and Table 8 present detailed comparisons highlighting the consistent superiority of IDGuardian in identity suppression and its effectiveness in preserving perceptual quality.
Table 7. Comparison of identity protection performance against baseline methods. Evaluation is conducted using three different identity similarity metrics: ArcFace, FaceNet, and VGGFace. “No Protected” denotes generation without defense.
| Method | Ip-Adapter | Ip-Adapter Plus XL | Blip-Diffusion | InfiniteID | ||||||||
| Arc ↓ | Face ↓ | VGG ↓ | Arc ↓ | Face ↓ | VGG ↓ | Arc ↓ | Face ↓ | VGG ↓ | Arc ↓ | Face ↓ | VGG ↓ | |
| No Protected | 0.3369 | 0.4774 | 0.3308 | 0.4985 | 0.6899 | 0.5573 | 0.3305 | 0.3918 | 0.2848 | 0.6345 | 0.7627 | 0.6286 |
| Anti-DB | 0.2525 | 0.3964 | 0.2715 | 0.4815 | 0.6419 | 0.5219 | 0.2685 | 0.3153 | 0.2286 | 0.5897 | 0.6859 | 0.5848 |
| SimAC | 0.2048 | 0.4005 | 0.2792 | 0.3454 | 0.4634 | 0.3956 | 0.3238 | 0.3344 | 0.2563 | 0.5472 | 0.6670 | 0.5599 |
| AdvDM | 0.2409 | 0.3624 | 0.2535 | 0.3427 | 0.4810 | 0.3700 | 0.2461 | 0.2989 | 0.2363 | 0.5069 | 0.6107 | 0.5087 |
| ACE | 0.2573 | 0.4249 | 0.2996 | 0.4615 | 0.6377 | 0.5079 | 0.2738 | 0.3160 | 0.2336 | 0.5419 | 0.6489 | 0.5383 |
| IDProtector | 0.2059 | 0.4167 | 0.2657 | 0.3324 | 0.5297 | 0.4120 | 0.2565 | 0.2967 | 0.2346 | 0.4972 | 0.7009 | 0.6112 |
| IDGuar (Ours) | 0.0673 | -0.0226 | 0.0640 | 0.1296 | 0.1231 | 0.1260 | 0.2255 | 0.2376 | 0.1964 | 0.4121 | 0.5215 | 0.3990 |
| Method | Photomaker | Dreambooth | InfiniteYou | Mean | ||||||||
| Arc ↓ | Face ↓ | VGG ↓ | Arc ↓ | Face ↓ | VGG ↓ | Arc ↓ | Face ↓ | VGG ↓ | Arc ↓ | Face ↓ | VGG ↓ | |
| No Protected | 0.3488 | 0.3513 | 0.2806 | 0.4681 | 0.6580 | 0.4477 | 0.6788 | 0.7554 | 0.5847 | 0.4709 | 0.5838 | 0.4449 |
| Anti-DB | 0.2331 | 0.3104 | 0.2716 | 0.3590 | 0.5420 | 0.3976 | 0.5867 | 0.6569 | 0.5343 | 0.3959 | 0.5070 | 0.4014 |
| SimAC | 0.2267 | 0.2614 | 0.2564 | 0.2987 | 0.4760 | 0.3942 | 0.5604 | 0.6472 | 0.5039 | 0.3581 | 0.4643 | 0.3780 |
| AdvDM | 0.2083 | 0.2189 | 0.2477 | 0.2191 | 0.4507 | 0.3327 | 0.5546 | 0.6309 | 0.4905 | 0.3312 | 0.4362 | 0.3485 |
| ACE | 0.2246 | 0.2545 | 0.2756 | 0.3252 | 0.5328 | 0.4033 | 0.6450 | 0.7207 | 0.5504 | 0.3900 | 0.5051 | 0.4012 |
| IDProtector | 0.2170 | 0.2212 | 0.2807 | 0.3372 | 0.4768 | 0.3932 | 0.5047 | 0.6067 | 0.5105 | 0.3358 | 0.4641 | 0.3868 |
| IDGuar (Ours) | 0.0747 | 0.1284 | 0.2239 | 0.2792 | 0.3893 | 0.3404 | 0.3230 | 0.3265 | 0.2522 | 0.2159 | 0.2434 | 0.2288 |
Table 7. Comparison of identity protection performance against baseline methods. Evaluation is conducted using three different identity similarity metrics: ArcFace, FaceNet, and VGGFace. “No Protected” denotes generation without defense.
| Method | Ip-Adapter | Ip-Adapter Plus XL | Blip-Diffusion | InfiniteID | ||||
| FaceQNet ↓ | MagFace ↓ | FaceQNet ↓ | MagFace ↓ | FaceQNet ↓ | MagFace ↓ | FaceQNet ↓ | MagFace ↓ | |
| No Protected | 0.3339 | 21.3847 | 0.4564 | 19.3085 | 0.3305 | 21.8112 | 0.4946 | 19.0747 |
| Anti-DB | 0.3045 | 21.1209 | 0.4553 | 18.4376 | 0.3565 | 20.8991 | 0.4957 | 18.9697 |
| SimAC | 0.3124 | 20.8217 | 0.4492 | 18.9702 | 0.3628 | 21.4539 | 0.4844 | 19.0755 |
| AdvDM | 0.3486 | 20.6235 | 0.4379 | 18.8501 | 0.3547 | 21.6632 | 0.4896 | 18.9385 |
| ACE | 0.3627 | 20.6235 | 0.4528 | 18.5293 | 0.3630 | 21.7078 | 0.4994 | 19.0961 |
| IDProtector | 0.3367 | 19.9330 | 0.4318 | 18.8869 | 0.3680 | 21.3936 | 0.4885 | 18.9833 |
| IDGuar (Ours) | 0.2820 | 20.8712 | 0.4503 | 18.6099 | 0.3511 | 20.8498 | 0.4938 | 18.9031 |
| Method | Photomaker | Dreambooth | InfiniteYou | Mean | ||||
| FaceQNet ↓ | MagFace ↓ | FaceQNet ↓ | MagFace ↓ | FaceQNet ↓ | MagFace ↓ | FaceQNet ↓ | MagFace ↓ | |
| No Protected | 0.4564 | 20.0541 | 0.3316 | 20.2766 | 0.4927 | 20.7298 | 0.4137 | 20.3771 |
| Anti-DB | 0.2883 | 20.0427 | 0.3186 | 20.2498 | 0.4666 | 19.9501 | 0.3836 | 19.9529 |
| SimAC | 0.2959 | 19.9726 | 0.3427 | 20.1656 | 0.4590 | 19.9077 | 0.3866 | 20.0525 |
| AdvDM | 0.2934 | 20.1307 | 0.1921 | 19.7116 | 0.4586 | 19.9321 | 0.3678 | 19.9785 |
| ACE | 0.2866 | 20.1201 | 0.2147 | 20.1827 | 0.4610 | 19.8904 | 0.3772 | 19.8786 |
| IDProtector | 0.3119 | 28.5475 | 0.2248 | 20.6773 | 0.4535 | 19.5957 | 0.3736 | 21.1453 |
| IDGuar (Ours) | 0.2733 | 19.8202 | 0.2203 | 20.2199 | 0.4517 | 19.8111 | 0.3604 | 19.8693 |
Table 8. Comparison of identity protection performance against baseline methods. Evaluation is conducted using FaceQNet and MagFace quality scores. “No Protected” denotes generation without defense.
We further include statistical analysis results, demonstrating that the observed performance gains remain stable and consistent across repeated runs. Taking IP-Adapter as an example, as shown in Figure 5, IDGuardian exhibits consistently lower identity similarity with small variance compared to baseline methods.

Figure 5. Statistical analysis of identity similarity (ISM) under IP-Adapter. Error bars denote the variability across repeated runs.
Ablation Study on Identity Similarity and Perceptual Quality Metrics
We further expand the ablation study presented in the main paper by showing the full set of identity similarity metrics and perceptual quality metrics across various ablation configurations. Table 9 and Table 10 provide detailed insights into the contributions of different identity encoder combinations and adversarial conceptual bridge. These results validate the complementary roles of identity supervision and conceptual bridge in enhancing identity suppression, where visual degradation is part of the intended defense effect.
Robustness Evaluation Settings.
To evaluate the robustness of our protection mechanism, we applied three types of distortions to the protected images: JPEG compression, Gaussian blur, and Gaussian noise. Specifically, we used JPEG compression with a quality factor of 85, Gaussian blur with a kernel size of and , and noise perturbation with a variance of 100. These parameters were selected to simulate common post-processing or transmission degradations while maintaining perceptual plausibility. As illustrated in Figure 5 of the main text, the protection performance under these distortions remains comparable to that on undistorted inputs, demonstrating that our method exhibits strong robustness against typical image degradations. To further evaluate the robustness, we conducted additional experiments with stronger distortions. Specifically, we tested two additional levels of perturbations: JPEG compression with quality factors of 70 and 50, Gaussian blur with kernel sizes of and (both with ), and Gaussian noise with variances of 400 and 900. Table 5 summarizes the results, demonstrating that our method maintains protection performance even under these more severe image degradations.
| No Protected | No Protected | No Protected | JPEG (85) | JPEG (85) | JPEG (85) | Blur (5 × 5, 1.5) | Blur (5 × 5, 1.5) | Blur (5 × 5, 1.5) | Noise (100) | Noise (100) | Noise (100) |
| Arc ↓ | Face ↓ | VGG ↓ | Arc ↓ | Face ↓ | VGG ↓ | Arc ↓ | Face ↓ | VGG ↓ | Arc ↓ | Face ↓ | VGG ↓ |
| 0.4985 | 0.6899 | 0.5573 | 0.3209 | 0.3983 | 0.3006 | 0.3317 | 0.4443 | 0.3520 | 0.3078 | 0.3970 | 0.3113 |
| No Protected | No Protected | No Protected | JPEG (70) | JPEG (70) | JPEG (70) | Blur (7 × 7, 1.5) | Blur (7 × 7, 1.5) | Blur (7 × 7, 1.5) | Noise (400) | Noise (400) | Noise (400) |
| Arc ↓ | Face ↓ | VGG ↓ | Arc ↓ | Face ↓ | VGG ↓ | Arc ↓ | Face ↓ | VGG ↓ | Arc ↓ | Face ↓ | VGG ↓ |
| 0.4985 | 0.6899 | 0.5573 | 0.3520 | 0.4863 | 0.3730 | 0.3303 | 0.4473 | 0.3338 | 0.3955 | 0.4778 | 0.3746 |
| No Protected | No Protected | No Protected | JPEG (50) | JPEG (50) | JPEG (50) | Blur (11 × 11, 1.5) | Blur (11 × 11, 1.5) | Blur (11 × 11, 1.5) | Noise (900) | Noise (900) | Noise (900) |
| Arc ↓ | Face ↓ | VGG ↓ | Arc ↓ | Face ↓ | VGG ↓ | Arc ↓ | Face ↓ | VGG ↓ | Arc ↓ | Face ↓ | VGG ↓ |
| 0.4985 | 0.6899 | 0.5573 | 0.3426 | 0.4606 | 0.3382 | 0.3416 | 0.4728 | 0.3632 | 0.3094 | 0.4495 | 0.3604 |
Table 5. Robustness evaluation under different distortion levels. The results are reported on Ip-Adapter Plus XL as an example.
As illustrated in Figure 6, we also provide visual comparisons under three levels of post-processing strength, showing that the perceptual quality of the protected images remains largely preserved despite the increased distortions.
Robustness Evaluation on Identity Similarity and Perceptual Quality Metrics
Robustness experiments are conducted under both common image degradations (JPEG compression, Gaussian blur, and additive noise) and adaptive defense-aware attacks such as Impress, which is explicitly designed to circumvent identity protection mechanisms. As shown in Table 11 and Table 12, IDGuardian maintains low identity similarity scores across all perturbation types, while perceptual quality metrics naturally decline under heavy input distortion. These results demonstrate that our method retains strong protection capability even under adverse conditions. Qualitative examples in Figure 12 further support these findings by illustrating that identity-relevant features remain suppressed even under various post-processing transformations. These detailed robustness results complement the summary metrics presented in the main paper and underscore IDGuardian’s practical effectiveness in real-world usage scenarios.
| Method | Ip-Adapter | Ip-Adapter Plus XL | Blip-Diffusion | InfiniteID | ||||
| FaceQNet ↓ | MagFace ↓ | FaceQNet ↓ | MagFace ↓ | FaceQNet ↓ | MagFace ↓ | FaceQNet ↓ | MagFace ↓ | |
| No Protected | 0.3339 | 21.3847 | 0.4564 | 19.3085 | 0.3305 | 21.8112 | 0.4946 | 19.0747 |
| JPEG | 0.2211 | 21.3679 | 0.4539 | 18.5163 | 0.3233 | 21.7881 | 0.4918 | 18.8227 |
| Blur | 0.3211 | 21.3901 | 0.4667 | 19.7750 | 0.2895 | 19.8607 | 0.5031 | 18.8229 |
| Noise | 0.2499 | 20.6822 | 0.4497 | 18.4623 | 0.3460 | 20.6286 | 0.5016 | 19.0230 |
| Impress | 0.2501 | 20.7604 | 0.4270 | 19.6015 | 0.3353 | 20.9642 | 0.4935 | 19.1813 |
| IDGuar (Ours) | 0.2820 | 20.8712 | 0.4503 | 18.5099 | 0.3511 | 20.8498 | 0.4908 | 18.9031 |
| Method | Photomaker | Dreambooth | InfiniteYou | Mean | ||||
| FaceQNet ↓ | MagFace ↓ | FaceQNet ↓ | MagFace ↓ | FaceQNet ↓ | MagFace ↓ | FaceQNet ↓ | MagFace ↓ | |
| No Protected | 0.4564 | 20.0541 | 0.3316 | 20.2766 | 0.4527 | 19.7298 | 0.4080 | 20.2342 |
| JPEG | 0.2743 | 19.6998 | 0.2535 | 20.5918 | 0.4544 | 20.0803 | 0.3532 | 19.9809 |
| Blur | 0.2754 | 19.8549 | 0.2814 | 19.6256 | 0.4483 | 20.0016 | 0.3694 | 19.9044 |
| Noise | 0.2809 | 19.8303 | 0.3583 | 19.2192 | 0.4528 | 19.8165 | 0.3770 | 19.6660 |
| Impress | 0.2762 | 20.0743 | 0.2475 | 21.0550 | 0.4536 | 19.6948 | 0.3547 | 20.1902 |
| IDGuar (Ours) | 0.2733 | 19.8202 | 0.2203 | 20.2199 | 0.4517 | 19.8111 | 0.3604 | 19.8693 |
Table 12. Robustness evaluation against common image post-processing operations. Evaluation is conducted using FaceQNet and MagFace to measure the perceptual quality of generated images.

Figure 12. Robustness Evaluation Against Image Post-Processing and Defense Attacks.
Additional Ablation Study
Visualization of the Main Ablation Results
To further validate the effectiveness of our proposed identity guidance strategy and loss function design, we provide an additional visualization of the ablation results in Figure 13. The figure clearly demonstrates the influence of different identity loss combinations and guidance directions on the overall performance. Consistent with the quantitative results in Table 4 of the main text, IDGuardian achieves superior identity protection while maintaining high visual quality.

Figure 13. Visualization of the ablation study on identity loss combinations and guidance directions.
Perturbation Budget and Learning Rate
We perform a grid search over the perturbation magnitude and learning rate to determine an optimal trade-off between identity consistency suppression and perceptual quality. Specifically, we evaluate the following five configurations:
,
,
,
,
,
As depicted in Figure 7, the configuration , achieves the best balance:
It consistently reduces identity consistency below 0.15 across ArcFace, FaceNet, and VGGFace.
It maintains high perceptual quality, with SSIM exceeding 0.8419 and PSNR surpassing 32.186 dB.
Smaller perturbations (e.g., ) yield insufficient identity suppression, while larger ones (e.g., ) compromise visual fidelity. Similarly, extremely small learning rates () lead to under-optimization, whereas large values () introduce instability and visual artifacts. These observations underscore the importance of jointly tuning the perturbation magnitude and step size, as a delicate balance is required to ensure both identity confusion and natural-looking outputs.
Number of Optimization Steps
We investigate the convergence behavior of identity loss over a range of optimization steps, up to 1000 iterations. As shown in Figure 8, the identity loss declines rapidly during the initial 100 steps, indicating early-stage effectiveness in suppressing identity-related features. To illustrate optimization dynamics more clearly, we apply a shaded band using fill_between3 to visualize artificial fluctuation bounds around the loss curve. This is not a confidence interval but a heuristic indicator of stability and oscillation patterns. The loss saturates around 200 iterations, beyond which further gains become marginal. Based on this trend, we adopt as the default number of steps in our experiments, ensuring adequate convergence without excessive computation.
Generalization Analysis
Evaluation on Commercial Face Personalization APIs
To further validate the generalization ability of our protection method, we conducted additional evaluations on several commercial face personalization APIs, including Seedream 4.0, Owen-Image, Kling-AI, and Ihuiwa. As shown
in Figure 9, our method still provides a certain degree of defense under these black-box conditions, demonstrating its robustness and transferability beyond the training environment.
Flexibility in Surrogate Selection
To evaluate the generalizability of our approach at the model level, we replace the surrogate model used for adversarial optimization with a significantly different generative backbone. Our main experiments utilize the IP-Adapter SDXL Plus Face model based on Stable Diffusion XL (SDXL). Additionally, we assess our method on the earlier Stable Diffusion 1.5 (SD1.5) backbone along with its corresponding IP-Adapter variant. All attack configurations, including text prompts and optimization parameters, are held constant to ensure comparability.
The results demonstrate that the proposed method consistently achieves strong identity suppression across distinct surrogate models, confirming its robustness and applicability beyond specific model architectures, as summarized in Table 6. Representative visual results further illustrate the consistency and effectiveness of identity suppression across models, as shown in Figure 10.
| Method | Ip-Adapter | Ip-Adapter Plus XL | Blip-Diffusion | InfiniteID | ||||||||
| Arc | Face | VGG | Arc | Face | VGG | Arc | Face | VGG | Arc | Face | VGG | |
| No Protected | 0.3369 | 0.4774 | 0.3308 | 0.4985 | 0.6899 | 0.5573 | 0.3305 | 0.3918 | 0.2848 | 0.6345 | 0.7627 | 0.6286 |
| IDGuardian-SD1.5 | 0.0425 | 0.0119 | 0.0650 | 0.1589 | 0.1413 | 0.1403 | 0.2670 | 0.2550 | 0.2204 | 0.4338 | 0.4989 | 0.4113 |
| Method | Photomaker | Dreambooth | InfiniteYou | Mean | ||||||||
| Arc | Face | VGG | Arc | Face | VGG | Arc | Face | VGG | Arc | Face | VGG | |
| No Protected | 0.3488 | 0.3513 | 0.2806 | 0.4681 | 0.6580 | 0.4477 | 0.6788 | 0.7554 | 0.5847 | 0.4708 | 0.5838 | 0.4450 |
| IDGuardian-SD1.5 | 0.1353 | 0.1556 | 0.2233 | 0.2907 | 0.3940 | 0.3455 | 0.3328 | 0.3573 | 0.2809 | 0.2373 | 0.2591 | 0.2409 |
Table 6. Identity Suppression Performance Across Surrogate Generative Models. The metrics Arc, Face, and VGG correspond to identity similarity scores computed by the face recognition models ArcFace, FaceNet, and VGGFace, respectively.
Dataset Generalization
In addition to the VGGFace2 dataset results presented in the main paper, we further evaluate the method on the high-resolution CelebA-HQ dataset. We employ multiple identity similarity metrics, namely ArcFace, FaceNet, and VGGFace, to measure the extent of identity removal across diverse personalized generation models. Perceptual quality is concurrently assessed through FaceQnet and MagFace to verify preservation of visual fidelity.
The quantitative results summarized in Table 13 and Table 14 indicate that the method maintains effective identity suppression and reduced perceptual quality on CelebA-HQ, thus demonstrating robustness across datasets varying in resolution and demographic composition. As illustrated in Figure 14, the visual results confirm that the method successfully removes identity-specific features while preserving photorealism, supporting the effectiveness of the proposed defense. We further provide results on the LFW dataset using the identity similarity metric in Table 15. The results remain consistent with those on VGGFace2 and CelebA-HQ, further demonstrating the robustness and cross-dataset generalization ability of IDGuardian. Collectively, these experiments verify that IDGuardian consistently preserves identity suppression capability and visual quality across different surrogate model architectures and datasets, highlighting its strong generalization capability in diffusion-based personalized face generation.
Table 13. Comparison of identity protection performance against baseline methods on the CelebA-HQ dataset. Evaluation is conducted using three widely adopted identity similarity metrics: ArcFace, FaceNet, and VGGFace.
| Method | Ip-Adapter | Ip-Adapter Plus XL | Blip-Diffusion | InfiniteID | ||||||||
| Method | Arc | Face | VGG | Arc | Face | VGG | Arc | Face | VGG | Arc | Face | VGG |
| No Protected | 0.4104 | 0.4714 | 0.3764 | 0.5706 | 0.7152 | 0.6062 | 0.2862 | 0.3495 | 0.3061 | 0.6352 | 0.6886 | 0.5642 |
| Anti-DB | 0.3061 | 0.3647 | 0.3193 | 0.4940 | 0.6321 | 0.5260 | 0.2257 | 0.3369 | 0.2894 | 0.5344 | 0.5946 | 0.5031 |
| SimAC | 0.2398 | 0.3390 | 0.3021 | 0.4049 | 0.5131 | 0.4339 | 0.2499 | 0.3240 | 0.2849 | 0.4483 | 0.5262 | 0.4455 |
| AdvDM | 0.2827 | 0.3907 | 0.3125 | 0.4158 | 0.5007 | 0.4464 | 0.2222 | 0.3484 | 0.2680 | 0.5056 | 0.5435 | 0.4669 |
| ACE | 0.3462 | 0.4354 | 0.3505 | 0.5412 | 0.6673 | 0.5834 | 0.2418 | 0.3422 | 0.2880 | 0.4813 | 0.5480 | 0.4839 |
| IDProtector | 0.2543 | 0.3071 | 0.2922 | 0.4363 | 0.5421 | 0.4486 | 0.1881 | 0.3003 | 0.2256 | 0.5065 | 0.6161 | 0.5611 |
| IDGuar (Ours) | 0.1003 | 0.0515 | 0.0940 | 0.2686 | 0.2905 | 0.2385 | 0.1794 | 0.3061 | 0.2431 | 0.3469 | 0.4198 | 0.3489 |
| Method | Photomaker | Dreambooth | InfiniteYou | Mean | ||||||||
| Method | Arc | Face | VGG | Arc | Face | VGG | Arc | Face | VGG | Arc | Face | VGG |
| No Protected | 0.6934 | 0.4219 | 0.2612 | 0.5421 | 0.6555 | 0.4335 | 0.6614 | 0.7485 | 0.5640 | 0.5428 | 0.5787 | 0.4445 |
| Anti-DB | 0.6504 | 0.4065 | 0.2560 | 0.1031 | 0.0666 | 0.0761 | 0.6035 | 0.6869 | 0.5312 | 0.4167 | 0.4412 | 0.3573 |
| SimAC | 0.6251 | 0.3564 | 0.2321 | 0.0831 | 0.0852 | 0.0665 | 0.5854 | 0.6846 | 0.4654 | 0.3766 | 0.4041 | 0.3186 |
| AdvDM | 0.6313 | 0.3718 | 0.2672 | 0.0868 | 0.0365 | 0.1100 | 0.5207 | 0.6293 | 0.4654 | 0.3807 | 0.4030 | 0.3338 |
| ACE | 0.6422 | 0.3880 | 0.2384 | 0.1401 | 0.2271 | 0.0944 | 0.6358 | 0.7283 | 0.5560 | 0.4327 | 0.4766 | 0.3707 |
| IDProtector | 0.6151 | 0.3013 | 0.2022 | 0.3298 | 0.3727 | 0.2578 | 0.5617 | 0.6609 | 0.4943 | 0.4131 | 0.4429 | 0.3545 |
| IDGuar (Ours) | 0.3320 | 0.2654 | 0.1996 | 0.0838 | 0.0320 | 0.0610 | 0.3331 | 0.3871 | 0.2428 | 0.2349 | 0.2503 | 0.2040 |
Table 13.
| Method | Ip-Adapter | Ip-Adapter Plus XL | Blip-Diffusion | InfiniteID | ||||
| FaceQNet | MagFace | FaceQNet | MagFace | FaceQNet | MagFace | FaceQNet | MagFace | |
| No Protected | 0.3031 | 20.6785 | 0.4490 | 18.8023 | 0.3344 | 20.9884 | 0.4527 | 19.6607 |
| Anti-DB | 0.2599 | 19.5696 | 0.4515 | 18.5281 | 0.3170 | 21.4418 | 0.4731 | 18.9686 |
| SimAC | 0.2670 | 19.9800 | 0.4493 | 19.2084 | 0.3433 | 19.4777 | 0.4695 | 19.0426 |
| AdvDM | 0.2842 | 19.9800 | 0.4505 | 19.2084 | 0.2941 | 20.0386 | 0.4645 | 19.2935 |
| ACE | 0.2928 | 20.0025 | 0.4540 | 19.3925 | 0.3363 | 20.7060 | 0.4539 | 19.1724 |
| IDProtector | 0.2945 | 20.0540 | 0.4544 | 19.0985 | 0.3039 | 20.4320 | 0.4204 | 19.7844 |
| IDGuar (Ours) | 0.2556 | 19.9783 | 0.4490 | 18.7536 | 0.3098 | 20.6180 | 0.4574 | 18.7834 |
| Method | Photomaker | Dreambooth | InfiniteYou | Mean | ||||
| FaceQNet | MagFace | FaceQNet | MagFace | FaceQNet | MagFace | FaceQNet | MagFace | |
| No Protected | 0.2674 | 20.5900 | 0.3222 | 21.1998 | 0.4463 | 19.4956 | 0.3679 | 20.2022 |
| Anti-DB | 0.2693 | 20.4309 | 0.2802 | 21.8453 | 0.4451 | 19.6502 | 0.3566 | 20.0621 |
| SimAC | 0.2693 | 20.5074 | 0.2650 | 21.6122 | 0.4489 | 19.7678 | 0.3589 | 19.9423 |
| AdvDM | 0.2672 | 20.5074 | 0.3072 | 21.3755 | 0.4418 | 19.7678 | 0.3585 | 20.0245 |
| ACE | 0.2677 | 20.7290 | 0.2501 | 21.5659 | 0.4463 | 19.4555 | 0.3573 | 20.1463 |
| IDProtector | 0.2907 | 28.8511 | 0.3740 | 20.0474 | 0.4565 | 21.7575 | 0.3706 | 21.4321 |
| IDGuar (Ours) | 0.2653 | 20.5549 | 0.3073 | 21.2664 | 0.4352 | 19.3972 | 0.3542 | 19.9074 |
Table 14. Comparison of identity protection performance against baseline methods on the CelebA-HQ dataset. Evaluation is conducted using FaceQNet and MagFace to measure the perceptual quality of generated images.
| Method | IP-Adapter | IP-Ada. + XL | BLIP-D. | InfiniteID | PhotoM. | DreamB. | InfiniteYou | Mean |
| No Protected | 0.3580 | 0.5210 | 0.3010 | 0.6150 | 0.3420 | 0.4550 | 0.6670 | 0.4656 |
| Anti-DB | 0.2550 | 0.4890 | 0.2490 | 0.5720 | 0.2300 | 0.3380 | 0.5980 | 0.3901 |
| SimAC | 0.2070 | 0.3620 | 0.2760 | 0.5490 | 0.2200 | 0.2870 | 0.5570 | 0.3511 |
| AdvDM | 0.2320 | 0.3480 | 0.2410 | 0.5030 | 0.2050 | 0.2540 | 0.5410 | 0.3320 |
| ACE | 0.2480 | 0.4620 | 0.2610 | 0.5330 | 0.2270 | 0.3210 | 0.6400 | 0.3846 |
| IDProtector | 0.2130 | 0.3310 | 0.2380 | 0.4920 | 0.2180 | 0.3160 | 0.5090 | 0.3310 |
| IDGuar (Ours) | 0.0790 | 0.1360 | 0.1980 | 0.4050 | 0.0910 | 0.2520 | 0.3180 | 0.2113 |
Table 15. ArcFace-only identity similarity on LFW. Method names are abbreviated for brevity.

Figure 14. Visualization of Identity Suppression Effectiveness on CelebA-HQ Dataset for IDGuardian and Comparison Methods.
Human and GPT-Based Evaluation of Identity Protection Effectiveness
As illustrated in Figure 11, the upper part of the figure presents the results of the human perceptual study, while the lower part corresponds to the GPT-based evaluation. This joint visualization highlights the consistency between subjective human judgments and automated assessments, with our method favored in 92% of human responses and 94% of GPT comparisons across over 50 test cases, further reinforcing the effectiveness of our approach.

Figure 11. Comparison of Identity Protection Effectiveness Based on Human Perception and GPT-Based Evaluation.
Human Study
To further assess the effectiveness of identity protection from a human perceptual perspective, we conducted a comprehensive subjective evaluation involving human participants. These participants were tasked with rating the perceived identity similarity between the original identity images and the personalized images generated by our method as well as several state-of-the-art baseline methods. The results consistently demonstrate that images produced by our approach exhibit significantly lower perceived identity similarity compared to those generated by other methods, thereby indicating superior identity obfuscation. This extensive subjective evaluation complements the quantitative metrics by capturing nuanced perceptual differences and providing insights into human visual cognition that automated measures alone may not fully capture.
GPT-Based Evaluation
In addition to the human evaluation, we also employed a state-of-the-art large multimodal language model, GPT, to automatically assess the identity protection performance. Given pairs of original and generated images, GPT was prompted to analyze and identify which generated image exhibits the greatest discrepancy in identity features relative to the original input. Leveraging GPT’s advanced visual-language reasoning capabilities, this automated evaluation approach offers a scalable and efficient complement to human judgment. The findings from the GPT-based evaluation are consistent with the results obtained from the user study, thereby further validating the robustness and effectiveness of our method in substantially reducing identity similarity across different evaluation paradigms.
Ethics Statement
Our user study involved voluntary participation of adult subjects recruited within our institution. Participants were asked to provide subjective ratings of visual similarity without disclosing or providing any personally identifiable or sensitive information. The study used publicly available face datasets and collected no new identifiable personal data. All user evaluations were performed on synthetic or anonymized data, and no sensitive or personally identifiable information was recorded. The study posed no potential harm or risk to participants. While formal Institutional Review Board (IRB) approval was not required under our institution’s policy for this low-risk, anonymized perceptual evaluation, all participants were informed about the study’s purpose and provided consent prior to participation. The study was conducted in accordance with recognized ethical research principles.
References
- [1]Jinyang An, Wangian Zhang, Dayan Wu, Zheng Lin, Jingzi Gu, and Weiping Wang. Sd4privacy: exploiting stable diffusion for protecting facial privacy. In 2024 IEEE International Conference on Multimedia and Expo (ICME), pages 1–6. IEEE, 2024.DOI
- [2]Bochuan Cao, Changjiang Li, Ting Wang, Jinyuan Jia, Bo Li, and Jinghui Chen. Impress: Evaluating the resilience of imperceptible perturbations against unauthorized data usage in diffusion-based generative ai. Advances in Neural Information Processing Systems, 36:10657–10677, 2023.arxiv.org/abs/2310.19248
- [3]Wen Chen, Pipei Huang, Jiaming Xu, Xin Guo, Cheng Guo, Fei Sun, Chao Li, Andreas Pfadler, Huan Zhao, and Binqiang Zhao. Pog: personalized outfit generation for fashion recommendation at alibaba ifashion. In Proceedings of the 25th ACM SIGKDD international conference on knowledge discovery & data mining, pages 2662–2670, 2019.arxiv.org/abs/1905.01866
- [4]Siying Cui, Jia Guo, Xiang An, Jiankang Deng, Yongle Zhao, Xinyu Wei, and Ziyong Feng. Idapter: Learning mixed features for tuning-free personalization of text-to-image models. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 950–959, 2024.arxiv.org/abs/2403.13535
- [5]Rinon Gal, Yuval Alaluf, Yuval Atzmon, Or Patashnik, Amit H. Bermano, Gal Chechik, and Daniel Cohen-Or. An image is worth one word: Personalizing text-to-image generation using textual inversion. arXiv preprint arXiv:2208.01618, 2022.arxiv.org/abs/2208.01618
- [6]Zinan Guo, Yanze Wu, Chen Zhuowei, Peng Zhang, Qian He, et al. Pulid: Pure and lightning id customization via contrastive alignment. Advances in neural information processing systems, 37:36777–36804, 2024.arxiv.org/abs/2404.16022
- [7]Junjie He, Yifeng Geng, and Liefeng Bo. Uniportrait: A unified framework for identity-preserving single- and multi-human image personalization. arXiv preprint arXiv:2408.05939, 2024.arxiv.org/abs/2408.05939
- [8]Xiao He, Mingrui Zhu, Dongxin Chen, Nannan Wang, and Xinbo Gao. Diff-privacy: Diffusion-based face privacy protection. IEEE Transactions on Circuits and Systems for Video Technology, 2024.arxiv.org/abs/2309.05330
- [9]Amir Hertz, Kfir Aberman, and Daniel Cohen-Or. Delta denoising score. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 2328–2337, 2023.arxiv.org/abs/2304.07090
- [10]Jonathan Ho and Tim Salimans. Classifier-free diffusion guidance. arXiv preprint arXiv:2207.12598, 2022.arxiv.org/abs/2207.12598
- [11]Edward J Hu, Yelong Shen, Phillip Wallis, Zeyuan Allen-Zhu, Yuanzhi Li, Shean Wang, Lu Wang, Weizhu Chen, et al. Lora: Low-rank adaptation of large language models. ICLR, 1(2):3, 2022.arxiv.org/abs/2106.09685
- [12]Hanxun Huang, Xingjun Ma, Sarah Monazam Erfani, James Bailey, and Yisen Wang. Unlearnable examples: Making personal data unexploitable. arXiv preprint arXiv:2101.04898, 2021.arxiv.org/abs/2101.04898
- [13]Liming Jiang, Qing Yan, Yumin Jia, Zichuan Liu, Hao Kang, and Xin Lu. Infinetoy: Flexible photo refracting while preserving your identity. arXiv preprint arXiv:2503.16418, 2025.arxiv.org/abs/2503.16418
- [14]Nupur Kumari, Bingliang Zhang, Richard Zhang, Eli Shechtman, and Jun-Yan Zhu. Multi-concept customization of text-to-image diffusion. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pages 1931–1941, 2023.arxiv.org/abs/2212.04488
- [15]Dongxu Li, Junnan Li, and Steven Hoi. Blip-diffusion: Pre-trained subject representation for controllable text-to-image generation and editing. Advances in Neural Information Processing Systems, 36:30146–30166, 2023.arxiv.org/abs/2305.14720
- [16]Zhen Li, Mingdeng Cao, Xintao Wang, Zhongang Qi, Ming-Ming Cheng, and Ying Shan. Photomaker: Customizing realistic human photos via stacked id embedding. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pages 8640–8650, 2024.arxiv.org/abs/2312.04461
- [17]Ziqiang Li, Jun Li, Lizhi Xiong, Zhangjie Fu, and Zechao Li. A comprehensive survey on visual concept mining in text-to-image diffusion models. arXiv preprint arXiv:2503.13576, 2025.arxiv.org/abs/2503.13576
- [18]Ziqiang Li, Jiazhen Yan, Ziwen He, Kai Zeng, Weiwei Jiang, Lizhi Xiong, and Zhangjie Fu. Is artificial intelligence generated image detection a solved problem? arXiv preprint arXiv:2505.12335, 2025.arxiv.org/abs/2505.12335
- [19]Chuemeng Liang, Xiaoyu Wu, Yang Hua, Jiaru Zhang, Yiming Xue, Tao Song, Zhengui Xue, Ruhui Ma, and Haibing Guan. Adversarial example does good: Preventing painting imitation from diffusion models via adversarial examples. arXiv preprint arXiv:2302.07478, 2023.
- [20]Jiang Liu, Chun Pong Lau, and Rama Chellappa. Diff-protect: Generate adversarial examples with diffusion models for facial privacy protection. arXiv preprint arXiv:2305.13625, 2023.DOI
- [21]Xihui Liu, Dong Huk Park, Samaneh Azadi, Gong Zhang, Arman Chopikyan, Yuxiao Hu, Humphrey Shi, Anna Rohrbach, and Trevor Darrell. More control for free! image synthesis with semantic diffusion guidance. In Proceedings of the IEEE/CVF winter conference on applications of computer vision, pages 289–299, 2023.arxiv.org/abs/2112.05744
- [22]Xinwei Liu, Xiaojun Jia, Yuan Xun, Hua Zhang, and Xiaohui Cao. Preventing malicious personalization via backdoor attacks on pre-trained text-to-image diffusion models. arXiv preprint arXiv:2502.16167, 2025.
- [23]Ziwei Liu, Ping Luo, Xiaogang Wang, and Xiaou Tang. CelebA-cele celebrity faces attributes (celeba) dataset. Retrieved August, 15(2018):11, 2018.
- [24]Aleksander Madry, Aleksandar Makelov, Ludwig Schmidt, Dimitris Tsipras, and Adrian Vladu. Towards deep learning models resistant to adversarial attacks. arXiv preprint arXiv:1706.06083, 2017.arxiv.org/abs/1706.06083
- [25]David McAllister, Songwei Ge, Jia-Bin Huang, David Jacobs, Alexei Efros, Aleksander Holynski, and Angjoo Kanazawa. Rethinking score distillation as a bridge between image distributions. Advances in Neural Information Processing Systems, 37:33779–33804, 2024.arxiv.org/abs/2406.09417
- [26]Omkar Parkhi, Andrea Vedaldi, and Andrew Zisserman. Deep face recognition. In BMVC 2015-Proceedings of the British Machine Vision Conference 2015. British Machine Vision Association, 2015.DOI
- [27]Dustin Podell, Zion English, Kyle Lacey, Andreas Blattmann, Tim Dockhorn, Jonas Müller, Joe Penna, and Robin Rombach. Sdxl: Improving latent diffusion models for high-resolution image synthesis. arXiv preprint arXiv:2307.01952, 2023.
- [28]Alec Radford, Jong Wook Kim, Chris Hallacy, Aditya Ramesh, Gabriel Goh, Sandhini Agarwal, Girish Sastry, Amanda Askell, Pamela Mishkin, Jack Clark, et al. Learning transferable visual models from natural language supervision. In International conference on machine learning, pages 8748–8763. PmLR, 2021.
- [29]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.
- [30]Litu Rout, Yujia Chen, Nataniel Ruiz, Abhishek Kumar, Constantine Caramanis, Sanjay Shakkottai, and Wen-Sheng Chu. Rb-modulation: Training-free personalization of diffusion models using stochastic optimal control. arXiv preprint arXiv:2405.17401, 2024.
- [31]Nataniel Ruiz, Yuanchen Li, Varun Jampani, Yael Pritch, Michael Rubinstein, and Kfir Aberman. Dreambooth: Fine tuning text-to-image diffusion models for subject-driven generation. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pages 22500–22510, 2023.
- [32]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.
- [33]Shawn Shan, Jenna Cryan, Emily Wenger, Haitao Zheng, Rana Hanocka, and Ben Y Zhao. Glaze: Protecting artists from style mimicry by text-to-image models. In 32nd USENIX Security Symposium (USENIX Security 23), pages 2187–2204, 2023.
- [34]Jing Shi, Wei Xiong, Zhe Lin, and Hyun Joon Jung. Instantbooth: Personalized text-to-image generation without test-time finetuning. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pages 8543–8552, 2024.
- [35]Jascha Sohl-Dickstein, Eric Weiss, Niru Maheswaranathan, and Surya Ganguli. Deep unsupervised learning using nonequilibrium thermodynamics. In International conference on machine learning, pages 2256–2265. pmlr, 2015.
- [36]Yang Song and Stefano Ermon. Generative modeling by estimating gradients of the data distribution. Advances in neural information processing systems, 32, 2019.
- [37]Yang Song, Jascha Sohl-Dickstein, Diederik P Kingma, Abhishek Kumar, Stefano Ermon, and Ben Poole. Score-based generative modeling through stochastic differential equations. arXiv preprint arXiv:2011.13456, 2020.arxiv.org/abs/2011.13456
- [38]Yiren Song, Shengtao Lou, Xiaokang Liu, Hai Ci, Pei Yang, Jiaming Liu, and Mike Zheng Shou. Anti-reference: Universal and immediate defense against reference-based generation. arXiv preprint arXiv:2412.05980, 2024.
- [39]Yiren Song, Pei Yang, Hai Ci, and Mike Zheng Shou. Id-protector: An adversarial noise encoder to protect against id-preserving image generation. In Proceedings of the Computer Vision and Pattern Recognition Conference (CVPR), pages 3019–3028, 2025.
- [40]Xuan Su, Jiaming Song, Chenlin Meng, and Stefano Ermon. Dual diffusion implicit bridges for image-to-image translation. arXiv preprint arXiv:2203.08382, 2022.
- [41]Zekun Sun, Zijian Liu, Shouling Ji, Chenhao Lin, and Na Ruan. Pretender: Universal active defense against diffusion finetuning attacks. In 34nd USENIX Security Symposium (USENIX Security 25), 2025.
- [42]Dani Valevski, Danny Lumen, Yossi Matias, and Yaniv Leviathan. Face0: Instantaneously conditioning a text-to-image model on a face. In SIGGRAPH Asia 2023 Conference Papers, pages 1–10, 2023.
- [43]Thanh Van Le, Hao Phung, Thuan Hoang Nguyen, Quan Dao, Ngoc N Tran, and Anh Tran. Anti-dreambooth: Protecting users from personalized text-to-image synthesis. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 21612–21627, 2023.
- [44]Feifei Wang, Zhentao Tan, Tianyi Wei, Yue Wu, and Qidong Huang. Simac: A simple anti-customization method for protecting face privacy against text-to-image synthesis of diffusion models. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 12047–12056, 2024.
- [45]Hanhui Wang, Yihua Zhang, Ruizheng Bai, Yue Zhao, Sijia Liu, and Zhengzhong Tu. Edit away and my face will not stay: Personal biometric defense against malicious generative editing. arXiv preprint arXiv:2411.16832, 2024.
- [46]Qixun Wang, Xu Bai, Haofan Wang, Zekui Qin, Anthony Chen, Huaxia Li, Xu Tang, and Yao Hu. Instantid: Zero-shot identity-preserving generation in seconds. arXiv preprint arXiv:2401.07519, 2024.arxiv.org/abs/2401.07519
- [47]Yi Wu, Ziqiang Li, Heliang Zheng, Chaoyue Wang, and Bin Li. Infinite-id: Identity-preserved personalization via id-semantics decoupling paradigm. In European Conference on Computer Vision, pages 279–296. Springer, 2024.
- [48]Hu Ye, Jun Zhang, Sibo Liu, Xiao Han, and Wei Yang. Ip-adapter: Text compatible image prompt adapter for text-to-image diffusion models. arXiv preprint arXiv:2308.06721, 2023.
- [49]Xiaoyu Ye, Hao Huang, Jiaqi An, and Yongtao Wang. Duaw: Data-free universal adversarial watermark against stable diffusion customization. arXiv preprint arXiv:2308.09889, 2023.
- [50]Boyang Zheng, Chumeng Liang, Xiaoyu Wu, and Yan Liu. Understanding and improving adversarial attacks on latent diffusion model. 2023. 3, 7
- [51]Zhengguang Zhou, Jing Li, Huaxia Li, Nemo Chen, and Xu Tang. Storymaker: Towards holistic consistent characters in text-to-image generation. arXiv preprint arXiv:2409.12576, 2024. 2arxiv.org/abs/2409.12576
- [52]Tianrui Zhu, Shiyi Zhang, Jiawei Shao, and Yansong Tang. Kv-edit: Training-free image editing for precise background preservation. arXiv preprint arXiv:2502.17363, 2025. 2arxiv.org/abs/2502.17363