TL;DR
Can adding invisible "poison" noise to your photos actually stop AI from digitally undressing you? While researchers have built several adversarial defenses against AI image editing, none had ever been tested against nudification—one of the most widespread harms of generative AI. By building BODYBENCH, the first ethical benchmark for this exact threat, the authors reveal that existing defenses fail almost completely under realistic conditions, and the standard metrics used to declare victory don't actually measure safety.
What Problem Does This Paper Address?
AI-generated non-consensual intimate imagery (AIG-NCII) has shifted from "face-swap" deepfakes to diffusion-based inpainting: an attacker keeps a real photo's face and background intact, masks out the clothed body, and prompts a model to regenerate the torso naked.
Because legal takedowns only happen after the damage is done, researchers have proposed proactive defenses: adding imperceptible adversarial perturbations (tiny, mathematically crafted pixel tweaks) to photos before posting them online so that future AI edits glitch out and fail.
Here is the catch: none of these inpainting defenses were ever tested against nudification. Instead, prior papers tested benign edits—like swapping a background to "a gaming convention" or inserting a dog—while keeping the person unmasked. Nudification is structurally the exact opposite: you keep the background and face, and edit the body. Furthermore, prior work judged success using pixel-difference metrics like PSNR, assuming that if an edited image looks sufficiently different from an unprotected edit at the pixel level, the defense worked. The authors ask: what happens when we actually test these defenses against realistic nudification?
Methods
Instead of proposing a new defense, the authors reformulate the threat model and evaluation pipeline around documented real-world abuse.
First, drawing on legal definitions (such as the US TAKE IT DOWN Act), they establish that an attacker succeeds only when an output is simultaneously convincing, identifiable, and explicit. They translate this into three novel, harm-aligned metrics:
- Sexualization ($S$): Combines an anatomical body-part detector (NudeNet) and a skin-exposure pixel ratio. From this, they derive a normalized DefenseScore from $0$ to $1$ (higher means better protection against nudity).
- Naturalness ($N$): Uses PickScore (a human-preference reward model) to measure if the image looks like a plausible photo rather than a garbled mess.
- Recognizability ($R$): Uses ArcFace facial recognition to check if the victim's identity survived the edit.
Second, they audit four recent adversarial defenses—PhotoGuard, DiffusionGuard, AdvPaint, and DiffVax—against Stable Diffusion v1.5 Inpainting, testing what happens both when the defender guesses the attacker's exact mask, and when the attacker uses slightly different masks (including a standard "dilate-and-blur" mask softening step built into popular inpainting pipelines).
Datasets
Evaluating nudification on photos of real people is completely unethical. Existing inpainting benchmarks (like InpaintGuardBench with 42 images, or DiffVaxDataset with 75) are tiny, contain real portraits from the chest up, and focus on background edits.
To solve this, the authors introduce BODYBENCH:
- 648 fully synthetic base images generated via FLUX.1-Dev, depicting clothed adult men and women across 27 nationalities and 4 everyday backgrounds (park, street, kitchen, classroom).
- 11 mask variants per image (7,128 total pairs), covering face, body, context, bounding boxes, and dilated/blurred body masks ($d=7, 15, 31$ pixels) that mimic how real "undress" apps preprocess masks for seamless blending.
Key Insights and Ideas
- Threat-model mismatch creates a false sense of security: Defenses trained or optimized to protect backgrounds (like DiffVax) fail or produce ugly, visible noise when asked to protect a person's body.
- Default preprocessing breaks "mask-robust" defenses: Real inpainting tools automatically dilate (expand) and Gaussian-blur masks so edges blend naturally. Even though several defenses explicitly claim to be robust to mask changes, this dead-simple, non-adaptive step exposes unprotected pixels and introduces soft mask edges, collapsing every single defense.
- Pixel metrics are blind to semantic harm: A defense can shift background colors or change a subject's pose, yielding a "great" (low) PSNR score, while still generating a crystal-clear nude body. What matters isn't pixel distance from a reference edit, but whether the specific harm was prevented.
Key Results
- Best-case scenario (Exact Mask Match): Even when the defender magically knows the exact pixel mask the attacker will use, PhotoGuard and DiffusionGuard fail (DefenseScores of $0.328$ and $0.420$ on body attacks, compared to $0.489$ unprotected). DiffVax reaches $0.641$–$0.725$, but often adds unacceptable, visible noise. Only AdvPaint succeeds, hitting a DefenseScore of $0.951$.
- Realistic scenario (Mask Mismatch & Dilation): If the mask types don't match, all Imperceptible defenses drop to $\le 0.40$. Worse, applying standard mask dilation destroys AdvPaint's $0.951$ score: it drops linearly to $0.739$ ($d=7$), $0.457$ ($d=15$), and $0.283$ ($d=31$), converging toward no protection at all.
- Metric Failure: Standard metrics show virtually zero correlation with preventing nudity: PSNR ($r = -0.16$) and SSIM ($r = -0.18$). Even CLIP similarity is only moderately correlated ($r = -0.55$).
Limitations and Future Work
- Single target model: The audit focuses on Stable Diffusion v1.5 Inpainting (to match the exact architecture the four defenses were built for), leaving newer diffusion architectures for future testing.
- No active purification: The authors didn't even need to test adversarial purification (like JPEG compression or denoising before inpainting), which is already known to strip away perturbations and would weaken these defenses even further.
- Moving forward: Rather than claiming proactive defense is impossible, the authors hope BODYBENCH pushes researchers to optimize perturbations against soft, dilated masks and realistic nudification prompts, grounding future AI safety claims in actual harm reduction.
Summary updated