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

面向文本到图像扩散Transformer的鲁棒且可泛化的安全引导

Robust and Generalizable Safety Steering for Text-to-Image Diffusion Transformers

Huzhou Normal University(湖州师范学院);Alibaba Group(阿里巴巴集团);University of Science and Technology of China(中国科学技术大学);Zhejiang Normal University(浙江师范大学);Zhejiang University of Technology(浙江工业大学)

Zihao Xue, Yan Wang, Zhen Bi, Long Ma, Zhonglong Zheng, Zeyu Yang, Bingyu Zhu, Longtao Huang, Jie Xiao, Jungang Lou

AI总结:

提出SafeDIG框架,通过位置感知稀疏特征迁移实现扩散Transformer的安全引导,在保持源域安全性和图像质量的同时,有效降低目标域和整体不安全生成率。

摘要:

扩散Transformer已成为文本到图像生成的强大骨干网络,但其分层和跨模态生成过程使得安全控制在根本上不同于提示级过滤或输出级检测。有害语义可能在文本表示中弱表达,逐步绑定到视觉潜变量,最终与渲染动态纠缠。因此,在固定层进行安全引导可能不稳定,而从已知风险学习到的引导机制可能无法可靠地迁移到偏移的目标风险域。我们提出SafeDIG,一个将DiT安全适应形式化为位置感知稀疏特征迁移的安全引导框架。SafeDIG首先在功能不同的DiT干预位置上构建稀疏自编码器,并使用鲁棒性感知预训练路由来优先选择在源-目标风险偏移下预期保持稳定的干预站点。然后,通过冻结SAE编码器作为可重用的稀疏安全字典,并仅将解码器适应到目标域激活流形,将可迁移的安全特征与特定领域的激活几何分离。在推理过程中,SafeDIG结合混合和排斥操作,将不安全激活引导至迁移的安全流形或远离有害的稀疏方向。在FLUX.1 Dev和Stable Diffusion 3.5 Large上的实验表明,SafeDIG在保持源域安全性和图像质量的同时,持续降低了目标域和整体的不安全生成率。

英文摘要:

Diffusion Transformers have become a powerful backbone for text-to-image generation, but their layered and cross-modal generation process makes safety control fundamentally different from prompt-level filtering or output-level detection. Harmful semantics may be weakly expressed in text representations, progressively bound to visual latents, and finally entangled with rendering dynamics. As a result, safety steering at a fixed layer can be unstable, and a steering mechanism learned from known risks may not transfer reliably to a shifted target risk domain. We propose SafeDIG, a safety steering framework that formulates DiT safety adaptation as position-aware sparse feature transfer. SafeDIG first constructs Sparse Autoencoders over functionally distinct DiT intervention positions and uses robustness-aware pre-training routing to prioritize intervention sites that are expected to remain stable under source-target risk shift. It then separates transferable safety features from domain-specific activation geometry by freezing the SAE encoder as a reusable sparse safety dictionary and adapting only the decoder to the target-domain activation manifold. During inference, SafeDIG combines Blend and Repel operations to steer unsafe activations toward transferred safety manifolds or away from harmful sparse directions. Experiments on FLUX.1 Dev and Stable Diffusion 3.5 Large show that SafeDIG consistently reduces target-domain and overall unsafe generation rates while preserving source-domain safety and image quality.

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

↑