SAFREE: Training-Free and Adaptive Guard for Safe Text-to-Image And Video Generation

Guard(计算机科学) 培训(气象学) 计算机科学 图像(数学) 多媒体 人工智能 计算机视觉 程序设计语言 地理 气象学
作者
Jaehong Yoon,Shoubin Yu,Vaidehi Patil,Huaxiu Yao,Mohit Bansal
出处
期刊:Cornell University - arXiv [Cornell University]
标识
DOI:10.48550/arxiv.2410.12761
摘要

Recent advances in diffusion models have significantly enhanced their ability to generate high-quality images and videos, but they have also increased the risk of producing unsafe content. Existing unlearning/editing-based methods for safe generation remove harmful concepts from models but face several challenges: (1) They cannot instantly remove harmful concepts without training. (2) Their safe generation capabilities depend on collected training data. (3) They alter model weights, risking degradation in quality for content unrelated to toxic concepts. To address these, we propose SAFREE, a novel, training-free approach for safe T2I and T2V, that does not alter the model's weights. Specifically, we detect a subspace corresponding to a set of toxic concepts in the text embedding space and steer prompt embeddings away from this subspace, thereby filtering out harmful content while preserving intended semantics. To balance the trade-off between filtering toxicity and preserving safe concepts, SAFREE incorporates a novel self-validating filtering mechanism that dynamically adjusts the denoising steps when applying the filtered embeddings. Additionally, we incorporate adaptive re-attention mechanisms within the diffusion latent space to selectively diminish the influence of features related to toxic concepts at the pixel level. In the end, SAFREE ensures coherent safety checking, preserving the fidelity, quality, and safety of the output. SAFREE achieves SOTA performance in suppressing unsafe content in T2I generation compared to training-free baselines and effectively filters targeted concepts while maintaining high-quality images. It also shows competitive results against training-based methods. We extend SAFREE to various T2I backbones and T2V tasks, showcasing its flexibility and generalization. SAFREE provides a robust and adaptable safeguard for ensuring safe visual generation.
最长约 10秒,即可获得该文献文件

科研通智能强力驱动
Strongly Powered by AbleSci AI
科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
moon完成签到,获得积分10
1秒前
逸龙完成签到,获得积分0
1秒前
wang发布了新的文献求助10
1秒前
1秒前
枝颜完成签到,获得积分10
2秒前
123qwe完成签到,获得积分10
2秒前
ljligu完成签到,获得积分10
2秒前
搜集达人的应助被垃圾在哪里采纳,获得10
3秒前
卢振杰完成签到,获得积分10
3秒前
酷波er的应助被Randy采纳,获得10
3秒前
3秒前
CipherSage的应助被阿良采纳,获得10
3秒前
JamesPei的应助被Thrain采纳,获得10
3秒前
小二郎的应助被海蓝云天采纳,获得10
3秒前
wahin发布了新的文献求助10
3秒前
4秒前
4秒前
唐春明完成签到,获得积分10
4秒前
今后的应助被时间采纳,获得10
4秒前
4秒前
4秒前
4秒前
淡然东蒽完成签到,获得积分10
4秒前
汪金发布了新的文献求助10
4秒前
11155完成签到,获得积分20
4秒前
清爽的灵竹完成签到,获得积分10
5秒前
七柒完成签到,获得积分10
5秒前
5秒前
5秒前
dongqi发布了新的文献求助30
5秒前
5秒前
5秒前
5秒前
lilili完成签到,获得积分10
6秒前
cc的应助被ABB采纳,获得10
6秒前
高高子骞发布了新的文献求助10
6秒前
平城落叶完成签到 ,获得积分10
6秒前
6秒前
6秒前
李健的小迷弟的应助被Dipsy123采纳,获得10
7秒前
高分求助中
(应助此贴封号)通过应助OA文献获取积分 10000
Organizational Behavior 510
A Silent Apostrophe:The Fayum Portraits 350
Sing with Understanding: Introduction to Theology in Christian Congregational Song, 3rd ed 330
Fractal analysis evaluation of regenerated bone in grafted and graftless maxillary sinus elevation procedures 300
Protection enhancement strategies of potential outbreaks during Hajj 300
Management of a religious mass gathering in North India: Parkash Utsav 550 300
热门求助领域 (近24小时)
化学 材料科学 医学 生物 计算机科学 工程类 纳米技术 有机化学 化学工程 内科学 物理 生物化学 复合材料 催化作用 细胞生物学 人工智能 心理学 无机化学 基因 遗传学
热门帖子
关注 科研通微信公众号,转发送积分 7841895
求助须知:如何正确求助?哪些是违规求助? 9363324
关于积分的说明 20631770
捐赠科研通 7436832
什么是DOI,文献DOI怎么找? 3340050
关于科研通互助平台的介绍 2484568
邀请新用户注册赠送积分活动 2362113