arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2603.22041cs.CV
收藏

DTVI:双阶段文本和视觉干预以实现安全的文本到图像生成

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

Xidian University(西安电子科技大学)

Binhong Tan, Zhaoxin Wang, Handing Wang

AI总结:

本文提出DTVI双阶段防御框架,通过全提示嵌入层面的类别感知干预和视觉生成阶段的抑制,有效防御生成不安全内容,实验显示在多个有害类别上达到94.43%的防御成功率。

摘要:

文本到图像(T2I)扩散模型展现了强大的生成能力,但其生成不安全内容的潜力引发了重大安全关切。现有推理时防御方法通常在文本嵌入空间进行类别无关的token级干预,无法捕捉跨完整token序列分布的恶意语义,仍易受对抗性提示攻击。本文提出DTVI,一种双阶段推理时防御框架,通过全提示嵌入层面的类别感知干预和视觉生成阶段的抑制,更有效地捕捉分布恶意语义。实验结果表明,在真实世界不安全提示、对抗性提示和多个有害类别上,该方法在保持良性提示生成质量的同时,实现了有效的稳健防御,获得94.43%的平均防御成功率(DSR)和88.56的七类不安全类别防御率。

英文摘要:

Text-to-Image (T2I) diffusion models have demonstrated strong generation ability, but their potential to generate unsafe content raises significant safety concerns. Existing inference-time defense methods typically perform category-agnostic token-level intervention in the text embedding space, which fails to capture malicious semantics distributed across the full token sequence and remains vulnerable to adversarial prompts. In this paper, we propose DTVI, a dual-stage inference-time defense framework for safe T2I generation. Unlike existing methods that intervene on specific token embeddings, our method introduces category-aware sequence-level intervention on the full prompt embedding to better capture distributed malicious semantics, and further attenuates the remaining unsafe influences during the visual generation stage. Experimental results on real-world unsafe prompts, adversarial prompts, and multiple harmful categories show that our method achieves effective and robust defense while preserving reasonable generation quality on benign prompts, obtaining an average Defense Success Rate (DSR) of 94.43% across sexual-category benchmarks and 88.56 across seven unsafe categories, while maintaining generation quality on benign prompts.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑