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:
- 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.
- 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.
- 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.
- 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) to0.253on IP-XL, and transfers seamlessly to DiT models—dropping SD3.5-IP from0.375to0.258and InfiniteYou from0.659to0.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.288dB). - 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.366under JPEG and0.405under UDAP, vs.0.564unprotected).
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