cs.CVNov 11, 2026

From Concepts to Interactions: Dynamic Graph Semantic Recomposition for Safe Visual Generation

Authors: Qinghui Gong, Jinshan Lai, Xunlei Chen, Hua Meng, Zhengchun Zhou

Organizations: School of Information Science and Technology, Southwest Jiaotong University · School of Information and Software Engineering, University of Electronic Science and Technology of China

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.

Figures & tables

Appendix figures & tables13 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. Introspective Attention Modulation for Safe Text-to-Image Generation

    Jul 16, 2026Basim Azam, Hossein Rahmani, Naveed AkhtarDiffusion TransformerT2I Generation

  2. DTVI: Dual-Stage Textual and Visual Intervention for Safe Text-to-Image Generation

    Mar 23, 2026Binhong Tan, Zhaoxin Wang, Handing WangSafe T2I GenerationT2I Diffusion Models

  3. Safe Image Generation via Reinforcement Learning

    Oct 5, 2026Eungyeol Han, Jong-Seok LeeT2I GenerationSafe T2I Generation