RotGuard: Identity Protection in Personalized Diffusion Models via Rotation-Guided Geometry Disruption

Lizhi Xiong, Yang Li, Jun Li, Ziqiang Li, Zhangjie FuarXiv 2026

TL;DR

Modern AI models only need a few photos from your social media to clone your face into entirely new scenes, and existing "protective" image filters often fail when an attacker simply switches to a different model architecture. The authors discover that diffusion models rely heavily on the internal angles between feature vectors—rather than their lengths—to lock onto a person's identity. By subtly scrambling this internal geometry with imperceptible pixel noise, their new defense, RotGuard, breaks unauthorized face-cloning across a wide variety of AI models.

What Problem Does This Paper Address?

With tools like DreamBooth and IP-Adapter, personalized diffusion models can synthesize crisp, novel images of a specific person using just a handful of reference photos. While great for creative workflows, it is a nightmare for personal privacy and portrait rights.

To fight back, researchers have developed "proactive defenses"—algorithms that add invisible adversarial noise (perturbations) to your photos before you post them online, aiming to poison the AI's ability to copy your face. However, there’s a catch: these defenses usually optimize noise against one specific surrogate model. When an attacker uses a different target architecture (say, moving from a standard U-Net diffusion model to a newer Diffusion Transformer, or DiT), the protection frequently evaporates. The authors ask why existing perturbations fail to transfer—and find that while current defenses nudge feature values around, they leave the underlying geometric relationships among those features intact.

Methods

To build a defense that actually transfers, the authors propose RotGuard. Using standard Projected Gradient Descent (PGD) on a surrogate model (IP-Adapter SDXL Plus Face), RotGuard crafts an imperceptible pixel-level cloak (bounded at a tiny $8/255$ budget) by jointly maximizing three losses across different stages of generation:

Figure 3. Overall schematics of RotGuard. RotGuard jointly optimizes a protective perturbation δ through three complementary com- ponents. IFSR reduces the similarity between the original and protected images in CLIP and FaceNet feature spaces. QSD disrupts the relative geometric relationships among Query features in cross-attention layers, thereby interfering with identity feature integration within the model. CDS disrupts the spatial geometric structure of identity-conditioned responses, thereby shifting the model’s denoising trajec- tory.
  1. Identity Feature Space Repulsion (IFSR): A standard-style opening move that pushes the protected image’s embeddings away from the clean image's embeddings in both CLIP (visual-semantic) and FaceNet (facial identity) feature spaces using cosine distance.
  2. Query Structure Disruption (QSD) (Novel): Inside cross-attention layers, spatial image tokens project into Query ($Q$) vectors to fetch identity cues. RotGuard normalizes these $Q$ vectors and computes a Gram matrix—a grid of pairwise cosine similarities capturing the exact angles between all spatial positions, completely ignoring vector lengths. Maximizing the difference between the clean and protected Gram matrices scrambles their relative angular structure.
  3. Conditional Denoising Shift (CDS) (Novel): To isolate how identity steers the actual denoising trajectory, the authors subtract an identity-free baseline prediction (where image tokens are zeroed out) from the identity-conditioned prediction. They then apply the same Gram-matrix disruption to these isolated identity-response vectors, knocking the generation trajectory off course.

Datasets

The authors evaluate RotGuard on a curated subset of FFHQ (Flickr-Faces-HQ) containing 300 distinct identities. No new benchmark datasets are introduced; images are center-cropped, scale-normalized, and resized to $1024 \times 1024$ pixels to match modern high-resolution diffusion pipelines.

Key Insights and Ideas

  • Angles matter; lengths don't: Through a clever set of controlled interventions on cross-attention Query ($Q$) features, the authors test three tweaks: scaling vector lengths, rotating all vectors together (preserving relative angles), and rotating vectors independently (scrambling relative angles). Scaling lengths or rotating everything globally barely affects the generated face. Scrambling the relative angles between vectors completely shatters identity preservation.
Figure 1. Effects of different geometric transformations applied to cross-attention Query (Q) features on identity preservation in personalized diffusion models. The vector diagrams illustrate the corresponding transformations. From left to right, the columns show the reference images and generated results obtained using the original Q features, length scaling, shared orthogonal rotation, and independent orthogonal rotations, respectively.
  • Why older defenses leak identity: When probing existing defenses like VOID, IDProtector, and IDGuardian, the authors found they induce almost zero change in the pairwise angular geometry of $Q$ features. Because the constellation of angles survives, downstream models can still piece the person's identity back together.
  • Isolating the identity steering wheel: In CDS, subtracting the zeroed-out identity baseline ensures the perturbation specifically warps the incremental effect of the face, rather than fighting against the text prompt ("A photo of a person").

Key Results

Tested across nine personalization methods spanning both U-Net (e.g., IP-Adapter, InstantID, DreamBooth) and DiT backbones (InfiniteYou, SD3.5-IP, Personalize-Anything), RotGuard consistently outperforms six recent defenses.

  • Superior Protection & Transferability: Even though perturbations are optimized solely on an SDXL U-Net surrogate, RotGuard slashes Identity Score Matching (ISM, lower is better) from 0.608 (unprotected) to 0.253 on IP-XL, and transfers seamlessly to DiT models—dropping SD3.5-IP from 0.375 to 0.258 and InfiniteYou from 0.659 to 0.503.
  • Visual Quality: The added cloak is virtually invisible, achieving the highest structural similarity (SSIM of 0.886) among all tested defenses and the second-best PSNR (33.288 dB).
  • Robustness: Against counter-attacks designed to wash away adversarial noise—including JPEG compression ($q=50$), Gaussian blur, noise, and the diffusion-based purifier UDAP—RotGuard holds firm (e.g., keeping IP-Adapter ISM at 0.366 under JPEG and 0.405 under UDAP, vs. 0.564 unprotected).
Figure 4. Qualitative comparison of different identity protection methods across diverse personalization models. IP-XL denotes IP-Adapter SDXL Plus Face, and Per-Any denotes Personalize- Anything.

Limitations and Future Work

Not discussed in the paper. (Note: While the authors do not include a dedicated limitations section, their tables show that optimization requires 100 PGD steps per image—unlike single-pass encoder defenses—and residual identity similarity remains higher on certain architectures like DreamBooth (0.574 ISM) and InfiniteYou (0.503 ISM) compared to adapter-based U-Nets).

Summary updated

BibTeX
@misc{xiong2026rotguard,
  author = {Lizhi Xiong and Yang Li and Jun Li and Ziqiang Li and Zhangjie Fu},
  title = {{RotGuard: Identity Protection in Personalized Diffusion Models via Rotation-Guided Geometry Disruption}},
  year = {2026},
  eprint = {2611.35689},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.35689},
}
Figure