Budgeted Safety Verification for Streaming Video Generation
Authors: Yuxin Cao, Ziqi Ding, Jiayu Zhang, Xianglin Yang, Wei Song, Jin Song Dong
Organizations: National University of Singapore, Singapore · University of New South Wales, Australia · The University of Hong Kong, Hong Kong SAR, China · Griffith University, Australia
A streamed video generator releases each chunk the moment that it is produced, so a safety decision that waits for the finished clip arrives after the harm has been seen. We measure a guardrail by exposure, the harmful frames a viewer is shown, and ask where a fixed moderation budget should be spent. The accurate detector reads decoded frames with a video language model and is too expensive for every chunk, so our guard reads hidden states the generator has computed already and spends a cheap score on deciding when to call it. On 599 streams from a distilled causal generator the undefended model shows 46.25 harmful frames of 81. The video model on every chunk leaves 0.91 frames at 80.1 scored per benign stream, and the same model triggered by our guard leaves 2.35 at 5.3. Spending that budget at random leaves 37.20 frames, so the gain is in the ordering, and a frame detector in the same role gives up almost six, so the judging stage must read the chunk as a clip. The ordering is worth more as the stream lengthens, and the guard carries to a second system. An independent guardrail model agrees with our oracle at κ=0.74, and a blinded audit by 50 participants puts its precision at 96.1% and recall at 82.8%. Warning. This paper contains examples of generated content that some readers may find disturbing or offensive in nature.
Figures & tables
Figure 1: Budgeted safety verification of a streamed video generator. Only a chunk that the guard flags is shown to the verifier.
Defense
Exposure
95% CI
Zero exposure
False alarm
Frames scored
Detector
(frames)
(%)
(%)
Benign
Unsafe
time (s)
No defense
46.25
[42.81, 49.59]
21.9
0.0
0.0
0.0
0.00
Prompt filter
0.00
—
100.0
0.0
0.0
0.0
0.04
Image moderator at 2 fps
12.10
[10.04, 14.35]
61.2
0.9
11.0
7.1
2.24
Image moderator at 16 fps
9.36
[7.53, 11.40]
74.3
1.3
80.3
45.6
4.55
Chunk video model
0.91
[0.46, 1.42]
89.6
1.8
80.1
32.6
1.85
Table 1: Exposure and cost of each defense.
Figure 2: One late-onset stream of each harm category, with the harmful chunks bordered and obscured.
Family
Streams
Filter
Harm
Exposure
blocks (%)
shown (%)
None
Ours
Implicit
150
37.3
30.7
11.78
3.20
Compositional
132
8.3
16.7
5.94
4.13
Drifting
97
17.5
9.3
2.23
0.88
Benign domain
130
20.8
23.8
9.68
4.21
Benign control
225
0.0
2.7
0.36
0.36
Table 2: Requests that never name the harm they ask for.
Figure 3: Cost against exposure for different ways of spending a detector budget inside a stream.
Defense
Exposure
Zero
Benign
(frames)
(%)
frames
No defense
134.01
15.3
0.0
Moderator at 16 fps
18.85
70.8
238.1
Chunk video model
2.09
82.6
243.9
Memoryless halting
10.81
68.1
0.0
Cumulative sum halting
11.32
66.7
0.0
Table 3: Defenses over a 21-chunk horizon.
Labeler
Precision (%)
Recall (%)
κ
Arguable chunks counted as harm
Harm oracle
96.1
82.8
0.732
Independent panel
93.8
91.2
0.851
Arguable chunks counted as safe
Harm oracle
81.4
87.1
0.744
Independent panel
69.2
94.6
0.659
Table 4: Agreement of the automatic labels with human consensus and among the annotators.
Defense
Exposure
95% CI
Benign
(frames)
frames
No defense
50.99
[47.70, 54.39]
0.0
Chunk video model
0.60
[0.30, 0.99]
79.9
Image moderator at 16 fps
12.48
[10.24, 14.93]
79.5
Random chunks
41.71
[38.46, 45.08]
4.8
Guard, threshold carried
2.40
[1.73, 3.19]
6.4
Table 5: The guard on a streaming system that it was not fitted on.
Appendix figures & tables10 assets
Supplementary material from the paper’s appendix.
Appendix
Category
Streams
No defense
Moderator at 16 fps
Video model, every chunk
Guard-triggered video model
Exposure
Stopped (%)
Exposure
Stopped (%)
Exposure
Stopped (%)
Pornography, direct
56
68.77
4.82
85.7
0.00
98.2
0.32
98.2
Pornography, late
56
60.12
27.96
66.1
0.00
96.4
1.71
94.6
Violence, direct
56
54.61
8.36
71.4
0.02
83.9
1.04
83.9
Violence, late
56
40.11
2.36
73.2
1.70
89.3
3.71
87.5
Disturbing, direct
38
59.13
10.74
68.4
3.45
81.6
4.39
76.3
Appendix
Table 6: Exposure (frames) by category and onset, with the fraction of streams stopped.
Harm
No
Budget
Every
defense
2
5
10
20
40
chunk
Appearance
54.22
4.38
2.12
1.44
1.11
0.97
0.97
Sequential action
13.95
4.80
3.27
1.69
0.82
0.66
0.66
Appendix
Table 7: Exposure (frames) against the verifier budget (benign frames scored), by what defines the harm.
Attempt budget
Accepted
Yield (%)
1 attempt
8
2.2
2 attempts
52
14.2
3 attempts
56
15.3
4 attempts
91
24.9
5 attempts
95
26.0
6 attempts
134
36.6
Appendix
Table 8: Requests accepted by the text filter after rewriting.
Defense
Exposure
Zero exposure
Frames
(frames)
(%)
scored
No defense
14.93
66.2
0.0
Prompt filter
14.93
66.2
0.0
Moderator at 2 fps
4.85
83.1
9.5
Moderator at 16 fps
3.69
86.4
66.8
Chunk video model
1.67
92.2
54.9
Appendix
Table 9: Defenses on requests that pass the text filter.
Allocation
Frames scored
Exposure
False
Benign
Unsafe
(frames)
alarm (%)
None
0.0
0.0
46.25
0.0
Frame detector as the verifier
Uniform at 1 fps
6.0
4.0
14.20
0.9
Uniform at 2 fps
11.0
7.1
12.10
0.9
Uniform at 4 fps
20.9
12.7
10.67
0.9
Appendix
Table 10: Allocation of a verification budget.
Defense
Escape
Tries
Exposure
Zero
(%)
(frames)
(%)
No defense
100.0
1.00
46.25
21.9
Chunk video model
31.0
1.71
2.34
78.1
Our guard, halting
39.0
1.84
25.27
40.4
Our guard, frames
51.9
1.61
21.39
48.1
Our guard, video model
34.0
1.58
8.28
57.5
Appendix
Table 11: Defenses against a resampling attacker.
Nominal α
Guard
Stream
Verifier calls
Frames
crossing (%)
stopped (%)
mean
most
scored
7 chunks, 599 streams
0.01
3.5
0.0
0.04
2
0.5
0.02
3.5
0.0
0.04
2
0.5
0.05
5.3
0.0
0.11
4
1.2
0.10
8.8
0.0
0.21
5
2.4
Appendix
Table 12: Scope of the threshold guarantee.
Threshold
Harm
Agreement
κ
Same
rate (%)
(%)
onset (%)
Own decision
22.0
82.8
0.603
67.0
Matched rate
47.2
87.0
0.737
69.2
Appendix
Table 13: Agreement of SafeWatch-8B with the automatic oracle.
Rule
7 chunks
21 chunks
Halting
Verified
Halting
Verified
Memoryless
6.61
2.35
10.81
8.78
Cumulative sum
6.09
2.43
11.32
10.01
Shiryaev-Roberts
5.93
2.51
10.81
10.39
Exponential weighting
6.15
2.67
10.19
9.40
Window maximum
5.99
2.32
10.81
8.54
Appendix
Table 14: Exposure (frames) at matched cost.
Guard
Chunk AUC
Exposure (frames)
Deployed guard
0.897
2.35 [1.67, 3.11]
Deployed, frames permuted
0.895
2.49 [1.78, 3.29]
Shuffle term
0.882 to 0.903
3.17 to 4.36
No shuffle term
0.882 to 0.893
2.37 to 3.36
Order-invariant head
0.885 to 0.901
2.22 to 3.62
Appendix
Table 15: Effect of the guard’s training objective.
Video content moderation detects and explains harmful, misleading, or policy-violating material in videos, including its visual, audio, and temporal context.
Open-weight video diffusion models can generate photorealistic unsafe content, from violence to misinformation, yet existing defenses either require expensive safety fine-tuning that degrades general capability, or apply external filters that are trivially bypassed by adversarial prompts. We present REINS (REpresentation-space INference-time Safety steering), a training-free method that aligns video diffusion models at inference time by steering their internal representations toward safe generation. Our key finding is that safety-relevant structure is linearly encoded in the hidden-state activations of video diffusion transformers, and a single direction, discovered via Supervised PCA on binary safety labels, suffices to separate safe from unsafe generation trajectories. At inference, adding this direction to hidden states at an intermediate transformer layer redirects generation from harmful content to semantically related safe alternatives, with no weight updates, no concept enumeration, and negligible computational overhead. Through mechanistic analysis, we reveal that while safety information accumulates monotonically with transformer depth, steering effectiveness peaks at intermediate layers (~50% depth), exposing a fundamental tradeoff between information availability and downstream propagation capacity. We evaluate REINS across 9 video diffusion models, multiple parameter scales (1.3B-5B), and both text-to-video and image-to-video generation, to our knowledge, the broadest safety evaluation suite in the video generation literature.
Rohit Kundu, Arindam Dutta, Sarosij Bose +2
University of California, Riverside · YouTube (Google)
Large Language Models (LLMs) can generate fluent responses to diverse user requests, yet streaming may expose users to harmful content before generation is complete. Existing guardrails face two limitations in this setting. First, post-hoc moderation at response or chunk boundaries delays intervention, risking harmful exposure when content is released before verification. Second, even with token-level detection, coarse response-level supervision does not specify when harmful content begins, while fixed-layer readouts may miss relevant safety signals at other depths. To address these limitations, we introduce ADTGuard, which checks each token before release, progressively refines token-level training targets, and adapts layer selection to the current prefix. ADTGuard models risk across depth and time through Depth-Time Safety Dynamics (DTSD), which integrates safety evidence across layers at each token and uses it to guide risk accumulation over successive tokens. To adapt the choice of observation layers to the current prefix, we propose the Causal Depth Router (CDR). With only response-level labels available, we further develop Risk-Onset Target Refinement (RTR) to progressively construct token-level training targets for both components. Through extensive experiments across multiple safety benchmarks, we demonstrate that ADTGuard consistently achieves strong streaming detection performance, matching or surpassing state-of-the-art safeguards while requiring only 16M trainable parameters and maintaining competitive per-token latency.
Chuming Wei, Churui Yang, Zihan Zhang +4
Academy of Artificial Intelligence and Advanced Technology, Xi’an Jiaotong-Liverpool University · Faculty of Science and Engineering, University of Nottingham Ningbo China · Department of Computer Sciences, University of Wisconsin–Madison +1
Text-to-video (T2V) services inherit their safety stack from image generation, pairing a keyword prompt filter with a per-frame checker that blocks a clip whenever one sampled frame looks unsafe. This stack has a blind spot unique to video. We prove that any moderator ignoring frame order accepts a harmful clip whenever it accepts that clip's benign shuffle, so harm carried by the ordering alone escapes. Empirically, the unmodified benchmark prompt already lands a clip in this moderation gap on 32.7% of Sequential-Action targets over four held-out seeds, and paraphrasing, scene splitting, and a feedback-driven prompt search show no significant improvement (paired McNemar p≥0.12), so prompt engineering is not needed to expose the vulnerability. Dense-scoring all 97 rendered frames shows that about a third of the delivered clips merely hide an unsafe frame, while the rest stay harmful as ordered videos even though every frame passes, an order-blind residual the unmodified prompt reaches on a quarter of Sequential-Action targets. We also document a measurement pitfall, since scoring a searched prompt on its own render seed inflates a 7.5% per-generation rate into an apparent 46.7%. A user study confirms that people read these clips as harmful and their shuffles as safe. The fix is to read frame order, and an order-aware detector separates these clips from their own shuffles at AUC 0.74 where per-frame checking sits at chance, which is the signal deployed moderation throws away.
Yuxin Cao, Fusen Guo, Yuezhong Wu +2
University of New South Wales Australia · Fuzhou University China