From Concepts to Interactions: Dynamic Graph Semantic Recomposition for Safe Visual Generation
Qinghui Gong, Jinshan Lai, Xunlei Chen, Hua Meng, Zhengchun Zhou
Abstract
Recent advances in flow-matching Transformers have greatly improved Text-to-Image (T2I) and Text-to-Video (T2V) generation, but unconstrained generation risks producing illegal or unethical content. Safety alignment must therefore suppress unsafe content while preserving legitimate generation. A concept's safety depends on context: a knife used for cooking is safe, whereas its use in violence is harmful. Yet most concept erasure methods indiscriminately suppress static, isolated representations, overlooking evolving semantic interactions. Consequently, safe scenes containing potentially sensitive terms may be unintentionally suppressed, compromising generation quality. To address this, we propose Dynamic Graph Semantic Recomposition (DGSR), which dynamically constructs and updates a semantic interaction graph from evolving text visual states during sampling. Context aware graph reasoning captures semantic dependencies, while paired safe/unsafe supervision distinguishes harmful from legitimate interactions, enabling precise identification of and selective intervention on high risk semantic relationships while preserving benign semantics. DGSR freezes the pretrained backbone and supports both image and video generation. Experiments show that DGSR achieves the lowest Attack Success Rate (ASR) in 10 of 12 T2I evaluations and reduces the average T2V unsafe frame rate by 41.2\% relative to the strongest baseline, while maintaining high generation fidelity and temporal consistency.
Create a lesson
Metadata
- Comments
- 23 pages,15 figures
Related papers
SRCWDNet: Semantic-Relational Cross-Window Dual-Graph Network for Multi-Label Remote Sensing Scene Classification
Shared title terminologycs.CVFareeha Amir
Graph2Scene: Relation-Aware Text-to-Image Generation with Graph-Guided Diffusion Model
Shared title terminologycs.CVPeizheng Li, Xin Ai, Guanghui Cheng et al.
PestWeave: Linking Semantic Modeling and Evidence-Guided Text Modulation through Visual Prototypes for Fine-Grained Pest Learning
Shared title terminologycs.CVXueheng Li, Yu Wang, Yuxiang Shen et al.
CineAct: Interaction-State Agents for Playable, Branching Film Generation
Shared title terminologycs.CVJunyan Lin, Jianqi Ma, Shujie Duan et al.
Agri-MRAG: Parameter-Enhanced Multimodal Retrieval-Augmented Generation for Agricultural Visual Question Answering
Shared title terminologycs.CVFuyong Liu, Xiantao Lei, Xining Zhang
DesignTaste: Benchmarking AI-Generator Visual Design Against Award-Wining Works
Shared title terminologycs.CVZhou Chen, JiaXiang Li, DanYing Pan et al.