AEIOU:一种针对文本到图像模型中不适宜提示的统一防御框架
AEIOU: A Unified Defense Framework against NSFW Prompts in Text-to-Image Models
AI总结:
AEIOU提出了一种针对文本到图像模型中不适宜提示的统一防御框架,通过高效提取NSFW特征实现高准确率和效率,有效应对适应性攻击。
摘要:
随着文本到图像(T2I)模型的发展和广泛应用,其相关安全问题变得越来越关键。恶意用户利用这些模型生成不适宜工作(NSFW)的图像,通过有害或对抗性提示,凸显了需要有效防护措施来确保模型输出的完整性和合规性。然而,现有检测方法往往存在准确率低和效率差的问题。在本文中,我们提出了AEIOU,一种针对T2I模型中NSFW提示的防御框架,该框架具有适应性、高效性、可解释性、可优化性和统一性。AEIOU从模型文本编码器的隐藏状态中提取NSFW特征,利用这些特征的分离性质来检测NSFW提示。检测过程高效,仅需极短的推理时间。AEIOU还提供结果的实时解释,并通过数据增强技术支持优化。该框架具有灵活性,可以适应各种T2I架构。我们广泛的实验表明,AEIOU在商业和开源审核工具上均显著优于,实现了所有数据集超过95%的准确率,并将效率提高了至少十倍。它有效对抗适应性攻击,在少样本和多标签场景中表现优异。
英文摘要:
As text-to-image (T2I) models advance and gain widespread adoption, their associated safety concerns are becoming increasingly critical. Malicious users exploit these models to generate Not-Safe-for-Work (NSFW) images using harmful or adversarial prompts, underscoring the need for effective safeguards to ensure the integrity and compliance of model outputs. However, existing detection methods often exhibit low accuracy and inefficiency. In this paper, we propose AEIOU, a defense framework that is adaptable, efficient, interpretable, optimizable, and unified against NSFW prompts in T2I models. AEIOU extracts NSFW features from the hidden states of the model's text encoder, utilizing the separable nature of these features to detect NSFW prompts. The detection process is efficient, requiring minimal inference time. AEIOU also offers real-time interpretation of results and supports optimization through data augmentation techniques. The framework is versatile, accommodating various T2I architectures. Our extensive experiments show that AEIOU significantly outperforms both commercial and open-source moderation tools, achieving over 95\% accuracy across all datasets and improving efficiency by at least tenfold. It effectively counters adaptive attacks and excels in few-shot and multi-label scenarios.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。