HARU: Selective Image Protection Against Text-Guided Image-to-Video Generation

Haruki Yajima, Ching-Chun Chang, Futa Waseda, Isao EchizenarXiv 2026

TL;DR

Until now, protecting your photos from malicious AI video generators has been an all-or-nothing affair: you either leave your image vulnerable to deepfakes, or add adversarial noise that turns every AI-generated video into a garbled mess. This paper introduces HARU, a clever proactive defense that weaves an imperceptible perturbation into an image to selectively block harmful video prompts (like nudity or gore) while still letting benign ones (like waving hello) work normally.

What Problem Does This Paper Address?

Image-to-video (I2V) models have gotten astonishingly good at breathing life into static photographs using simple text prompts. Unfortunately, bad actors can exploit these same tools to generate non-consensual, harmful videos from personal photos shared online.

You can't rely on model creators to put up safety guardrails—an attacker will simply download an uncensored open-weights model. Instead, image owners use proactive image protection: injecting tiny, invisible pixel perturbations (adversarial noise) into a photo before posting it, effectively "poisoning" how AI models perceive it.

The catch? Existing I2V defenses (like I2VGuard and Anti-Prompt) use a sledgehammer approach. They blind the AI so thoroughly that any video generated from the image degrades into psychedelic static, regardless of the prompt. That's a dealbreaker if, say, a fashion photographer wants to allow harmless animations of a dress flowing in the wind while strictly blocking non-consensual nudity. The authors tackle the challenge of selective image protection: stopping the bad while keeping the good.

Methods

Modern I2V models rely on Diffusion Transformers (DiTs), which iteratively denoise random static into coherent video frames. Text prompts steer this process via cross-attention—the mechanism where video tokens "look at" text tokens and pull their semantic meaning into the video stream as an additive update (a residual).

Instead of wrecking the entire latent space, HARU (Harm-Aware Risk–Utility Optimization) performs targeted surgery on these attention updates using white-box access to a target model and standard Projected Gradient Descent (PGD):

  • Phrase-Specific Residuals: Given a set of "suppress" prompts (harmful) and "retain" prompts (benign), HARU isolates the exact cross-attention residual energy contributed by specific target words (e.g., "bleeding" vs. "thumbs up").
  • Dual Loss Optimization: HARU optimizes a tiny pixel perturbation ($\epsilon = 16/255$) that minimizes the residual energy of harmful phrases ($\mathcal{L}_{\text{supp}}$) while penalizing drops in the energy of benign phrases ($\mathcal{L}_{\text{ret}}$).
  • Targeted Window: Crucially, rather than optimizing across the entire massive network—which is computationally brutal and warps image quality—HARU only computes its loss in early denoising steps ($k = 1\text{--}17$) and shallow DiT blocks ($\ell = 1\text{--}14$).
Figure 2. Overview of HARU. Suppression and retention prompt sets Ps and Pr provide harmful and benign phrases with token-position sets Ts and Tr, respectively. At video-query positions Qvid, selected attention weights A and text values V yield per-head attention outputs Oh,T and phrase-specific residuals R through the map Σ. HARU optimizes the perturbation δ to reduce harmful-phrase energy with Lsupp and keep benign-phrase energy with Lret, weighted by λ.

Datasets

Because selective protection for I2V is a new task, the authors built a custom evaluation setup rather than using an off-the-shelf dataset:

  • Source Images: 15 full-body synthetic portraits generated via Qwen-Image-2.1, varying across age, gender, clothing, and background.
  • Prompt Sets: 3 harmful suppression prompts (mouth bleeding, chest exposure, and an undesired thumbs-down gesture) and 6 benign retention prompts (hand waving, thumbs-up, raising arms, laughing, walking, and jumping). They also created paraphrased versions (to test wording robustness) and mixed prompts combining both benign and harmful actions.

Key Insights and Ideas

  • Shallow Blocks Are Megaphones: Why only target shallow DiT blocks? Through mathematical sensitivity analysis and direct interventions, the authors found that changes made in early transformer blocks get amplified as they propagate through deeper layers—producing roughly a 7x larger shift in denoiser predictions compared to making the exact same sized tweak in middle blocks.
  • Early Steps Set the Stage: Removing action-token signals during the first third of the denoising timeline completely erases the action from the final video. Intervening in the middle or late steps barely makes a dent, because the coarse motion trajectory has already crystallized.
  • Precision Preserves Imperceptibility: Because HARU only nudges specific phrase interactions within a narrow spatiotemporal window, it alters the original photograph noticeably less than brute-force baselines.

Key Results

Evaluated across two 5-billion-parameter DiT models (CogVideoX-5B-I2V and Wan2.2-TI2V-5B) using an automated VLM judge (validated against human annotators) and VBench quality metrics:

  • Strong Selectivity: Across both models, HARU slashes the harmful prompt-following rate by an average of 30.0 percentage points while benign instruction following drops by just 2.8 pp. Specifically, on CogVideoX, harmful generation drops from 46.7% to 11.1%, while benign generation holds steady at 63.3% (0% drop!). On Wan2.2, harmful generation falls from 42.2% to 17.8%, with benign generation dipping slightly from 80.0% to 74.4%.
  • Better Image & Video Quality: HARU achieves the highest PSNR (>30 dB) and SSIM (>0.74) on the protected source images, alongside top marks in imaging quality on the resulting benign videos—avoiding the ugly visual artifacts left by Anti-Prompt and I2VGuard.
  • Generalization & Transfer: Without re-optimizing the image, HARU generalizes to unseen paraphrased prompts (e.g., cutting harmful generation on CogVideoX from 15.6% to 4.4%) and shows promising black-box transferability when perturbations optimized on CogVideoX are tested on Wan2.2.

Limitations and Future Work

  • White-Box Compute Cost: HARU requires per-image gradient optimization against a known model, which limits instant scalability and cross-architecture guarantees.
  • Fragility to Purification: Like most adversarial perturbations, simple image transformations (like heavy JPEG compression, resizing, or diffusion purification) could wash away the protective noise. Optimizing over image transformations (Expectation Over Transformation) is a natural next step.
  • Complex Prompts: Prompts that mix multiple actions together, or introduce completely unseen harmful concepts not anticipated during optimization, remain tough to block reliably.

Summary updated

BibTeX
@misc{yajima2026haru,
  author = {Haruki Yajima and Ching-Chun Chang and Futa Waseda and Isao Echizen},
  title = {{HARU: Selective Image Protection Against Text-Guided Image-to-Video Generation}},
  year = {2026},
  eprint = {2611.35731},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.35731},
}
Figure