When Guidance Becomes a Guard: Early Interception of Unsafe Inputs in Text-to-Image Generation
Yanchun Li, Yujin Wu, Gangkai Shen, Ming Yang, Li Zeng, Xianlong Wang, Hangtao Zhang, Shujuan Tian
Abstract
Text-to-image diffusion models can produce unsafe content, while output filtering intervenes only after synthesis. We investigate whether native generation signals enable early detection of unsafe and adversarial inputs. We find that classifier-free guidance exposes strong safety signals in conditional responses, accessible through compact statistics and linear readouts. Based on this finding, we propose Conditional Semantic Trajectory Interception (CSTI), which aggregates activation contrasts between conditional and unconditional responses at early checkpoints for calibrated risk detection. CSTI fits concept-specific detectors using canonical concept and safe examples, without attack samples, intermediate image decoding, or generator modification. Across five generators, four adversarial attack collections, and two general NSFW datasets, CSTI achieves the strongest overall performance among six baselines at a matched 5% FPR. Early interception reduces generation latency by over 60% on intercepted paths. These results demonstrate the effectiveness of native conditional responses for early safety interception.
Create a lesson
Related papers
HealBench: A Fine-Grained Benchmark for Evaluating Psychological Comfort in Text-to-Image Generation
Shared title terminologycs.CVJunjie Xu, Yuzhe Yang, Rui Yang et al.
Attractive Faces Skew Text-to-Image Reward Models and Leaderboards
Shared title terminologycs.CVHarvey Mannering, Zhiwu Huang, Adam Prügel-Bennett
Spe3DUp: Faithful Trajectory Distillation for Fast Image-to-3D Generation
Shared title terminologycs.CVLiangchao Xu, Jiaye Fu, Youtian Lin et al.
Hijacking 3D Generation: Targeted Adversarial Attacks against Image-to-3D Models via Prefix Trajectory Alignment
Shared title terminologycs.CVYilong Yang, Jiale Teng, Yule Liu et al.
MotionODE: Enhancing Autoregressive Text-to-Motion Generation with Continuous-Depth Modeling
Shared title terminologycs.CVZhaoxin Fan, Jian Yang, Kejian Wu et al.
MMotion: Collaborative Cross-Scale Memory for Text-to-Motion Generation
Shared title terminologycs.CVZhaoxin Fan, Qingchen Yu, Kejian Wu et al.