VideoShield: Regulating Diffusion-based Video Generation Models via Watermarking
Runyi Hu, Jie Zhang, Yiming Li, Jiwei Li, Qing Guo, Han Qiu, Tianwei Zhang
TL;DR
VideoShield tackles the challenge of content control for diffusion-based video generation by introducing training-free in-generation watermarking that embeds a watermark during video synthesis. It maps watermark bits $m$ to template bits $TP$ and Gaussian noise via $Z^{T}$, enabling both watermark extraction through DDIM Inversion and tamper localization across temporal and spatial dimensions, with a Hierarchical Spatial-Temporal Refinement (HSTR) and Partial Threshold Binarization (PTB) to boost accuracy. Key contributions include the introduction of template bits, a reversible m ↔ TP ↔ Z^{T} ↔ FR chain, and the first temporal tamper localization module, plus a PTB/HSTR framework that enhances spatial localization without training. Experiments across multiple T2V/I2V models show robust watermark extraction and tamper localization while maintaining video quality, and the approach generalizes to image generation as well. The method offers practical impact for protecting the integrity and provenance of AI-generated video content in real-world deployments.
Abstract
Artificial Intelligence Generated Content (AIGC) has advanced significantly, particularly with the development of video generation models such as text-to-video (T2V) models and image-to-video (I2V) models. However, like other AIGC types, video generation requires robust content control. A common approach is to embed watermarks, but most research has focused on images, with limited attention given to videos. Traditional methods, which embed watermarks frame-by-frame in a post-processing manner, often degrade video quality. In this paper, we propose VideoShield, a novel watermarking framework specifically designed for popular diffusion-based video generation models. Unlike post-processing methods, VideoShield embeds watermarks directly during video generation, eliminating the need for additional training. To ensure video integrity, we introduce a tamper localization feature that can detect changes both temporally (across frames) and spatially (within individual frames). Our method maps watermark bits to template bits, which are then used to generate watermarked noise during the denoising process. Using DDIM Inversion, we can reverse the video to its original watermarked noise, enabling straightforward watermark extraction. Additionally, template bits allow precise detection for potential temporal and spatial modification. Extensive experiments across various video models (both T2V and I2V models) demonstrate that our method effectively extracts watermarks and detects tamper without compromising video quality. Furthermore, we show that this approach is applicable to image generation models, enabling tamper detection in generated images as well. Codes and models are available at https://github.com/hurunyi/VideoShield.
