Edit Away and My Face Will not Stay: Personal Biometric Defense against Malicious Generative Editing

Hanhui Wang, Yihua Zhang, Ruizheng Bai, Yue Zhao, Sijia Liu, Zhengzhong Tu

Abstract

Generative AI has democratized high-quality image editing, but also enabled malicious actors to create non-consensual imagery and manipulate portraits, threatening individual privacy. Existing defenses often attempt to disrupt the editing process entirely—a strategy that is frequently unstable and easily bypassed. We present FACELOCK, a novel defensive tool that shifts the paradigm from preventing edits to ensuring that any applied modification erases the subject's biometric identity. By embedding imperceptible adversarial perturbations, FACELOCK forces generative models to produce biometrically unrecognizable outputs, rendering unauthorized edits useless for identity-based harms.

Introduction

The rise of diffusion-based generative models has made sophisticated image manipulation accessible to the public. While beneficial for creative expression, these tools are increasingly weaponized for harassment and identity theft. Current defensive strategies, such as PhotoGuard or EditShield, aim to "nullify" editing effects by breaking the AI's ability to process the image. However, these methods struggle with the infinite variety of potential editing prompts and often fail to protect the subject's identity if the edit succeeds.

Overview of FACELOCK vs. Prior Art

FACELOCK addresses these shortcomings by "embracing the edit." Instead of stopping the AI, it steers the generative process to destroy biometric information. If an attacker attempts to "add glasses" or "change clothing," the resulting image will no longer resemble the original person, effectively "locking" the face against recognition.

Methods

FACELOCK optimizes adversarial perturbations to specifically target and destroy biometric features during the diffusion process. The core innovation is an optimization objective that integrates a facial recognition (FR) model into the diffusion sampling loop.

The optimization process minimizes a composite loss function:

  1. Facial Recognition Loss ($f_{FR}$): Maximizes the embedding distance between the original and edited faces in a pre-trained FR model's latent space.
  2. Feature Embedding Disparity ($f_{FE}$): Penalizes high-level feature similarities to ensure the AI alters actual facial structures (e.g., jawline, nose shape) rather than just applying superficial color shifts.
  3. Diffusion-in-the-loop Optimization: By accounting for how the diffusion model decodes images during perturbation generation, FACELOCK ensures the protection is robust against the "purification" effects typical of generative models.

Experimental Evaluation

The researchers evaluated FACELOCK using the CelebA-HQ dataset (2,000 portraits) across 25 diverse editing prompts and the FFHQ dataset to test generalization across different image distributions.

Key Results

  • Identity Erasure: FACELOCK achieved a Facial Recognition (FR) similarity score of 0.31, significantly outperforming undefended images (0.83) and existing defenses like PhotoGuard (0.59) and EditShield (0.64).
  • Robustness: The defense remains effective even when subjected to common image processing "purification" attacks, including blurring, rotation, and heavy JPEG compression.
  • Metric Insights: The study highlights that traditional metrics like CLIP-S can be misleading; a high CLIP score (indicating a "successful" text-to-image edit) often correlates with the complete destruction of the original face, which is exactly what FACELOCK leverages for protection.

Conclusion and Future Work

FACELOCK represents a shift in personal biometric defense, utilizing the power of generative models to protect users. While highly effective, the method currently requires approximately 20 seconds of computation per image and is optimized for single-subject portraits. Future work will focus on multi-subject protection and adapting to emerging generative architectures like rectified flows.

Reference: Wang, H., Zhang, Y., et al. (2025). Edit Away and My Face Will not Stay: Personal Biometric Defense against Malicious Generative Editing. arXiv:2411.16832v2.

Summary updated

BibTeX
@inproceedings{wang2025edit,
  author = {Hanhui Wang and Yihua Zhang and Ruizheng Bai and Yue Zhao and Sijia Liu and Zhengzhong Tu},
  title = {{Edit Away and My Face Will not Stay: Personal Biometric Defense against Malicious Generative Editing}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2025},
  doi = {10.1109/cvpr52734.2025.02217},
}
Figure