Skip to content

Disrupting style imitation attacks on video imagesDisrupting Style Mimicry Attacks on Video Imagery

arXiv· arXiv:2405.06865· Josephine Passananti, Stanley Wu, Shawn Shan, Haitao Zheng, Ben Y. ZhaoDepartment of Computer Science, University of ChicagoIndexed by this site · 27 days ago· Originally publishedDefenses

Quick read

Defenses

Based on the paper PDF (AI-generated); refer to the original

The authors propose the video style imitation threat and the Gimbal protection framework; the authors state that per-frame perturbation can be bypassed by a pixel-averaging attack, and that Gimbal restores protection and is 4–8× faster.

Threat modelThe attacker's goal is to train a text-to-image style mimicry model using the victim's video frames; they have substantial compute, can access the victim's videos, and have access to public pretrained text-to-image base models. The defender (artist) perturbs the video frames before release, and has only a consumer-grade GPU and public feature extractors. The paper focuses on text-to-image mimicry and does not include text-to-video.

Questions
Style mimicry attacks are shifting from static images to video frames, while existing anti-mimicry tools (Glaze, Mist, Anti-Dreambooth) perturb each frame independently, and when applied frame by frame to video they are both expensive and can be removed by adaptive attacks that exploit inter-frame similarity.
Methods
The authors first verify that video frames can train an imitation model, and propose perturbation removal attacks (PRA) such as pixel averaging; they then propose Gimbal: splitting scenes by inter-frame pixel difference, generating a unified target image for each scene, and reusing and continuing to optimize the perturbation frame by frame to eliminate inter-frame randomness.
Experiments and results
The pixel-averaging attack reduces the PSR of naive protection from 64.3% to 23.8% (unprotected baseline 17.7%); under attack, Gimbal restores PSR to 64.5%, and brings a 4–8× speedup and a reduction in noticeable rate from about 70% to about 21%; the scene-splitting attack failed to weaken Gimbal.
Limitations and future work
The authors note: Gimbal mainly targets pixel-averaging attacks, and new adaptive attacks may emerge; the computational cost is still high for small creators; future image mimicry may be replaced by video mimicry. The experiments cover only 5 datasets, 3 protection tools, and Stable Diffusion 2.1.
Experimental setupGimbal、Glaze et al. · Video Games、Human Actions (THUMOS-15) et al. · Latent L2 Norm、Mean Pixel Difference (MPD) et al.
Evaluated models
GimbalGlazeMistAnti-DreamboothStable Diffusion 2.1
Benchmarks
Video GamesHuman Actions (THUMOS-15)Japanese AnimeAnimated MoviesNature and Wildlife
Metrics
Latent L2 NormMean Pixel Difference (MPD)CLIP-Genre ShiftProtection Success Rate (PSR)Noticeability Rate (NR)Speedup FactorSeconds per Frame
AI summaryThe researchers propose a tool-agnostic protection framework for disrupting style imitation attacks trained on video data. The paper first verifies that training on single frames extracted from videos is sufficient for imitation attacks to succeed, and finds that applying anti-imitation tools such as Mist, Glaze and Anti-DreamBooth frame by frame is broken by an adaptive countermeasure that exploits the randomness of optimization results across adjacent near-duplicate frames. The new framework splits videos into short scenes by frame-level similarity, and uses a per-scene optimization baseline to eliminate inter-frame randomization and reduce computational cost; image-level metrics and an end-to-end user study show that protection is restored, including protection against this countermeasure. The authors also develop another adaptive countermeasure, and tests find that it fails to break the framework.

The researchers propose a tool-agnostic protection framework for disrupting style imitation attacks trained on video data. The paper first verifies that training on single frames extracted from videos is sufficient for imitation attacks to succeed, and finds that applying anti-imitation tools such as Mist, Glaze and Anti-DreamBooth frame by frame is broken by an adaptive countermeasure that exploits the randomness of optimization results across adjacent near-duplicate frames. The new framework splits videos into short scenes by frame-level similarity, and uses a per-scene optimization baseline to eliminate inter-frame randomization and reduce computational cost; image-level metrics and an end-to-end user study show that protection is restored, including protection against this countermeasure. The authors also develop another adaptive countermeasure, and tests find that it fails to break the framework.

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    How to protect video content from having its frames extracted for style imitation, while resisting adaptive de-perturbation attacks that exploit inter-frame similarity.

    Core problem: video is becoming a training data source for style mimicry attacks, while existing anti-mimicry tools, when applied frame by frame to video, have their protection removed by adaptive attacks.

    • Problem setting and importance: The authors state that mimicry attacks are shifting from 2D images to video (animation, game cutscenes, MVs, series); a single 5-minute 30–60fps video can yield about 18,000 frames, and frame selection is flexible with rich viewpoints; LoRAs targeting games, series, and movies have already appeared on platforms such as CivitAI.
    • Shortcomings of existing methods: Glaze, Mist, and Anti-Dreambooth all compute perturbations for a single image independently; applying them frame by frame to video has three problems: computationally expensive (a 1-minute 30fps video requires about 45 hours), random perturbations between frames cause flickering during playback, and they are easily canceled by attacks that exploit the similarity of consecutive frames.
    • Core observation: The optimization of protection tools contains a random component, so running the same image multiple times yields different perturbations; an attacker can perform pixel-level "merging" on consecutive frames with nearly identical content, canceling the perturbations and restoring the original frames.
    • The paper proposes: First verify the video-frame mimicry threat and the pixel-averaging adaptive attack (PRA), then propose a tool-agnostic protection framework Gimbal, which shares a perturbation baseline per scene to eliminate inter-frame randomness and reduce computational cost, and evaluates a scene-splitting attack against Gimbal.
    • Threat model:
      • Attacker's goal: use the victim's video frames to train a text-to-image model that can generate the artist's style.
      • Attacker's knowledge and capabilities: can access the victim's videos, has substantial compute, and has full access to public pretrained text-to-image base models.
      • Defender (artist): applies small perturbations to video frames before release, and has only a consumer-grade GPU and public feature extractors (such as Stable Diffusion).
      • Victim system: a mimicry model based on Stable Diffusion 2.1 and fine-tuned with Dreambooth; the paper does not include text-to-video mimicry.
  2. What related research exists?

    Related work includes image style imitation and three existing protection tools, real-world tools that use video as a source of imitation data, and frame interpolation techniques.

    Image style imitation

    • Gal et al. (2022), Ruiz et al. (2022, Dreambooth), etc.: fine-tuning text-to-image models on few-shot images to achieve style/subject imitation; the paper cites that fewer than 20 images suffice for successful imitation.
    • The paper cites multiple imitation incidents and companies specializing in style imitation, as well as over 119K downloadable imitation models on CivitAI, illustrating the scale of the threat.

    Image-level anti-imitation protection (the object this paper directly extends)

    • Mist (Liang et al., 2023): extends the optimization goal to the entire diffusion process, by default using a predefined black-and-white pattern as the target image.
    • Anti-Dreambooth (Van Le et al., 2023): targets Dreambooth models, training a surrogate model to compute perturbations simultaneously, providing stronger protection but taking more time (the paper relays its authors' conclusion).
    • Glaze (Shan et al., 2023): performs style transfer toward a contrasting style on the input image to obtain an input-specific target image, then attacks the diffusion model's image encoder; the paper states it was downloaded over 2.3 million times within a year.
    • The paper points out that these tools all optimize each image independently and do not consider inter-frame redundancy in video, which is the gap this paper aims to fill.

    The reality of imitation in the video domain

    • The paper lists two public tools: a GitHub tool that automatically downloads Japanese animation and extracts high-quality character frames, and a tool advertised on CivitAI that can scrape frames from screenshot sites such as FanCaps; based on this, the authors believe the technology to build text-to-image datasets from video already exists.
    • Text-to-video and image-to-video models (such as Stable Video Diffusion, Blattmann et al. 2023) are explicitly excluded from scope by the authors and left for future work.

    Frame merging techniques used in the attack implementation

    • FILM (Reda et al., 2022): a frame interpolation neural network for large motion, used in this paper as one of the three perturbation removal methods; the paper also mentions other interpolation methods (Bao et al. 2019, Huang et al. 2022, Niklaus & Liu 2020) that mainly estimate motion and optical flow, whereas FILM focuses on generating clear images.

    Baselines and benchmarks: the protection baseline is naive frame-by-frame application of Glaze/Mist/Anti-DB; evaluation uses 5 video datasets (Video Games, Human Actions/THUMOS-15, Japanese Anime, Animated Movies, Nature and Wildlife). The authors position this paper as the first step in extending image-level protection to the video domain (the paper's original wording is "an important first step"), with the core difference being the use of intra-scene inter-frame consistency to eliminate randomness.

  3. How does the paper address this problem?

    Gimbal splits scenes by pixel difference, generates a unified target image for each scene, reuses and continues optimizing the perturbation frame by frame, eliminating inter-frame randomness.

    Overall idea: first split the video into scenes by inter-frame similarity, let each scene share one perturbation optimization target, and have subsequent frames continue optimizing on the basis of the previous frame's perturbation, so that perturbations of adjacent frames are highly consistent, leaving no randomness for "frame merging"-type attacks to exploit, while reducing the number of optimizations from scratch to save compute. The framework is named Gimbal, and can be layered on top of Glaze, Mist, Anti-DB.

    Problem setup and protection goal

    • Follows the optimization goal of image-level protection: minδx Dist(Φ(x+δx), Φ(T)), with the constraint |δx| < p;其中 Φ 是公开 text-to-image 模型的特征提取器,T 是目标图像,p 是感知扰动预算(实验中像素最大绝对改动 0.07)。
    • 防护方在发布前对视频帧加扰;攻击方可对连续相似帧做合并攻击。

    场景切分

    • 按相邻帧的平均像素差切分:(Pixel(Fi, Fi−1))/N < ϵscene 则同场景,N 为每帧像素数。
    • 作者要求同场景帧相似到足以共享一个扰动目标,称这比已有"场景"定义更强,因此未采用现成工具(如 PySceneDetect)而自实现。

    统一目标图像生成

    • 比较三种基图像:场景中间帧、各帧嵌入的质心、所有帧的像素平均;以各帧到目标的 latent L2 距离衡量,附录 Figure 10 显示像素平均法得到的目标对所有帧距离最近,故采用。
    • 对平均图做风格迁移得到目标图像 T(沿用 Glaze 的做法),目标风格按视频类型选择,例如日本动画视频用"impressionist painting by Van Gogh"。

    扰动生成与复用

    • 首帧 F1 从头计算扰动 δ1;后续帧先算 di = |L2(Φ(Fi+δi−1), Φ(T)) − L2(Φ(Fi−1+δi−1), Φ(T))|,再按双阈值决策:d_i ≤ τ1 直接复用 δ_{i-1};τ1 < d_i ≤ τ2 从 δ_{i-1} 出发继续优化;d_i > τ2, recompute from scratch.
    • The thresholds were chosen by grid search (Appendix A.5, 25 combinations, tested with Glaze), taking the middle values τ1 = 0.06, τ2 = 0.45; the authors state that creators can benchmark for themselves to trade off robustness and efficiency.

    Adaptive attack (PRA) and scene-splitting attack

    • Three perturbation removal methods: selective pixel averaging (averaging only over the perturbed region by threshold ε_p, with consecutive n = 5 frames in the experiment), FILM frame interpolation, linear interpolation (α = 0.5, interval 5 frames).
    • Scene-splitting attack against Gimbal: assumes the attacker can forcibly create a scene breakpoint in the middle of a similar frame sequence, causing adjacent frames to be optimized toward different targets, then pixel-averages frames on both sides of the breakpoint; the paper simulates this by artificially splitting a single scene into two sub-scenes.

    Success determination

    • Pixel-level metrics: latent L2 distance, Mean Pixel Difference (higher means stronger protection); end-to-end: CLIP-Genre Shift (generation classification error rate, higher means stronger protection) and the PSR of the two user studies (proportion rating "not very successful/completely unsuccessful").
  4. What experiments did the paper conduct?

    Verified on 5 video datasets and 3 protection tools: the pixel averaging attack can break naive protection, and Gimbal restores protection and speeds up by 4–8 times.

    Experimental setup

    • Tested/victim model: Stable Diffusion 2.1 as the base, fine-tuned with Dreambooth for 1000 steps at a learning rate of 1e-5 to obtain the style imitation model; test images use BLIP to generate captions and then query the fine-tuned model to produce imitation images.
    • Datasets: 5 — Video Games (20 YouTube videos), Human Actions (20 THUMOS-15 videos), Japanese Anime (20 YouTube videos), Animated Movies (10 clip compilations), Nature and Wildlife (10 documentary videos, first 2 minutes taken); an average of 6289 frames per video, uniformly cropped and scaled to 512x512.
    • Protection configuration: Glaze, Mist, Anti-DB reimplemented with l∞-bounded PGD, maximum pixel change 0.07; the efficiency experiment uses only Glaze (the authors call it the fastest of the three), measured on a single A100.
    • Imitation configuration: frames are selected per video by scene; for most datasets 30 images suffice for training, while Animated Movies needs 60; for the pixel averaging attack, 80% of extracted frames are used for training and 20% for testing.
    • Evaluation methods: a CLIP image classifier determines the style of generated images (CLIP-Genre Shift); the CLIP Aesthetic predictor rates image quality; the user study uses a 5-point Likert rating, and PSR is the proportion rating "not very successful/completely unsuccessful".
    • User study scale: study one had 305 art community volunteers (recruited on Twitter, rating only Video Games and Japanese Anime); study two had 220 Prolific participants (rating all 5 datasets, hourly wage 12 USD, restricted to US English users, 18 or older, approval rate above 95%); 10 imitation models were trained per video, and participants viewed 5 original frames paired with 5 generated frames.

    Main results

    End-to-end protection success rate PSR (%, per Table 6, with both "Naive+Attack" and "Gimbal+Attack" under the pixel averaging attack condition):

    Swipe horizontally to read the table

    DatasetPopulationToolCleanNaiveNaive+AttackGimbal+Attack
    Video GameArtistsGlaze15.0592.2319.3597.98
    Japanese AnimeArtistsGlaze24.2782.8827.0372.32
    Video GameGeneral usersGlaze20.1485.5918.2688.99
    Japanese AnimeGeneral usersGlaze20.9566.0721.2154.63
    Animated MoviesGeneral usersGlaze14.8144.8314.8136.51
    Nature and WildlifeGeneral usersGlaze8.8978.4318.0665.38

    (Table 6 also contains all rows for Mist and Anti-DB; only Glaze is listed here; the trends for Mist/Anti-DB are the same, e.g. for the general user Video Game row, Mist is 86.84/16.67/95.24 and Anti-DB is 73.87/25.20/80.39.)

    • The authors state: the pixel averaging attack drives naive protection close to the unprotected baseline (main text summary: naive 64.3% → 23.8% after attack, unprotected 17.7%), and Gimbal recovers to 64.5% under attack, higher than naive under some conditions.
    • Pixel-level metrics (Table 4, 5): the attack reduces the latent L2 and MPD of naive frames (e.g. for Video Game+Glaze, L2 drops from 406.69 to 262.82), whereas for Gimbal frames the distance instead rises slightly after attack (425.19 → the Gimbal+Attack column under the same condition, i.e. 425.19, the attack is ineffective).
    • CLIP-Genre Shift (Table 7) is consistent with the user study: after attack, naive drops close to clean (e.g. Video Game+Glaze 0.85→0.71, clean 0.49), while Gimbal stays high (0.97).

    Scene-splitting attack against Gimbal

    • What was tested: artificially splitting a single scene into two sub-scenes, generating targets for each to maximize perturbation difference, then pixel-averaging frames on both sides of the breakpoint; tested on 10 videos each of Japanese Anime and Video Game.
    • Results: Table 11/12 show L2 and MPD decrease only slightly (e.g. for Video Game, L2 goes from 421.21 for Gimbal+Adaptive to 394.80 under the scene-splitting attack); CLIP-Genre Shift in Figure 9 is almost unchanged under the two attacks (0.87 vs 0.86).
    • Authors' interpretation: the attack fails because the similarity of scene frames on both sides of the breakpoint has an upper bound, which also limits the two target tensors and the perturbation difference; the authors believe the conclusion still holds even if the attacker freely chooses the split point.

    Computational efficiency and visual quality

    • Efficiency (Table 8, Gimbal+Glaze): Video Game speeds up by an average of 7.87 times (5.16 seconds/frame), Human Action 7.37 times, Japanese Anime 4.16 times (11.25 seconds/frame); the naive baseline is about 35 seconds/frame. The authors state that protecting a 5-minute 30fps video drops from 88 hours to 11 hours; adjusting τ2 from 0.45 to 0.8 raises the speedup ratio of the slowest 4 animated videos from 2.12 to 3.90, but CLIP-Genre Shift drops from 0.95 to 0.90 (Appendix A.7).
    • Visual quality (Table 9, artists' noticeable rate NR on 10-second clips): on Video Game, naive Glaze 70.30% vs Gimbal 21.29%; Japanese Anime 48.73% vs 18.27%. The authors state that Gimbal reduces flickering caused by random inter-frame perturbations.

    Other ablations and analyses

    • Perturbation budget (Figure 7, 4 Video Game videos): CLIP-Genre Shift rises as the budget increases, leveling off after 0.05; imitation of original frames corresponds to 0.44.
    • Frame rate (Table 10, 4 Video Game videos): at 15/30/60fps, CLIP-Genre Shift is 0.97/0.98/1.00, and the speedup ratio is 6.11/9.57/15.96.
    • Inter-frame motion amount (Figure 8): the speedup ratio is negatively linearly correlated with the median latent L2 of adjacent frames.
    • Scene duration and video compression bitrate: the authors state no observed effect on robustness or speedup ratio.
    • Number of attack frames n (Appendix A.3, Figure 13–15): after n exceeds 3–5, image quality declines and robustness gains stall, so n = 5 is used.
    • Averaging attack on clean frames (Appendix A.6): CLIP-Genre Shift rises from 0.15 to 0.19; the authors state that the averaging operation itself slightly weakens imitation.
  5. What are some points that can be further explored?

    The authors list three limitations: it targets only the pixel averaging attack, the computation is still high, and video imitation may emerge in the future; the experiments cover 5 datasets and 3 tools.

    Limitations and future directions noted by the authors

    • New adaptive attacks may emerge (§8): the paper states that Gimbal mainly targets the pixel averaging attack, and "it is entirely possible that new adaptive attacks in the video imitation space emerge that Gimbal was not designed to mitigate", and that adversarial methods targeting Gimbal itself beyond the scene-splitting attack may also emerge.
    • Computational cost is still high (§8): the authors state that although greatly reduced compared with the naive approach, the absolute computation is "still considerable and may remain out of reach for small-scale video or animation creators".
    • Image imitation may be replaced by video imitation (§8): the authors state that future image imitation attacks may be wholly replaced by some kind of video imitation attack, and the related risks and mitigations need to be studied after better understanding generative video models.
    • Text-to-video imitation left for future work (§2.2, §3.1): the paper explicitly does only text-to-image mimicry, excluding text-to-video imitation that uses video as source material.
    • Other adaptive imitation algorithms for longer videos (§1 contributions paragraph): the authors state that effort is still needed to identify other adaptive imitation algorithms, "especially for longer videos".

    Scope of experimental coverage

    • The tested model is only Stable Diffusion 2.1 (Dreambooth fine-tuned); protection tools cover three, Glaze, Mist, Anti-DB, and the efficiency experiment uses only Glaze.
    • The datasets are 5 categories totaling 80 videos (20+20+20+10+10), averaging 6289 frames; the scene-splitting attack is tested only on 10 videos each of Japanese Anime and Video Game.
    • The user studies total 525 people: 305 artists (only 2 datasets) and 220 Prolific general users (5 datasets, restricted to US English users).
    • For end-to-end attack evaluation, only one PRM, pixel averaging, was implemented (the authors state this is because each scene requires several days of compute); FILM and linear interpolation have only pixel-level metrics.
    • The paper does not report inter-rater consistency metrics for the user studies; parameter analyses such as frame rate and motion amount use only 4 Video Game videos (the paper does not state the number of videos for the scene duration and compression analyses).
  6. Summarize the main content of the paper

    Gimbal eliminates inter-frame randomness through a scene-level shared perturbation objective, resisting pixel-averaging attacks and greatly reducing the cost of video protection.

    A paper on anti-style-imitation protection for video content: the authors first verify that a high-quality style imitation model can be trained from extracted video frames, then point out that applying Glaze/Mist/Anti-DB frame by frame to video is both expensive and causes flickering, and is broken by a pixel averaging attack (PRA) that exploits the similarity of consecutive frames.

    • Attack verification: the pixel averaging attack drives the PSR of naive protection from 64.3% down to 23.8%, close to the unprotected baseline of 17.7%; among the three PRMs, pixel averaging is strongest on pixel-level metrics (Table 1–3).
    • Method: Gimbal splits scenes by the average pixel difference between frames, takes the pixel average of all frames in each scene and then performs style transfer to obtain a unified target image; the perturbation for the first frame is optimized from scratch, and subsequent frames use two thresholds (τ1 = 0.06, τ2 = 0.45) to decide whether to reuse, continue optimizing, or recompute, keeping perturbations of adjacent frames consistent.
    • Protection effect: on 5 datasets and 3 tools, Gimbal restores PSR to 64.5% under the pixel averaging attack; CLIP-Genre Shift is consistent with the user study results (Table 6, 7).
    • Efficiency and quality: Gimbal+Glaze speeds up by 7.87/7.37/4.16 times on Video Game/Human Action/Japanese Anime respectively (Table 8); the noticeable rate reported by artists drops from 70.30% for naive to 21.29% (Video Game, Table 9).
    • Adaptive evaluation: the scene-splitting attack against Gimbal only slightly reduces L2/MPD, and CLIP-Genre Shift is almost unchanged (0.87→0.86, Figure 9); the authors believe it is limited by an upper bound on inter-frame similarity and thus difficult to make effective.
    • Authors' conclusion: the authors call this an important first step toward protecting video from visual style imitation, while acknowledging that it targets only the pixel averaging attack, that the computation is still high for small creators, and that longer videos and text-to-video imitation are left for future work.
Read originalarxiv.org