Patronus:保护文本到图像模型免受白盒对手攻击
Patronus: Safeguarding Text-to-Image Models against White-Box Adversaries
AI总结:
针对白盒对手可通过微调绕过T2I安全机制的问题,本文提出Patronus框架,利用内部审核器与不可微调对齐机制阻断不安全生成并抵御恶意微调。
摘要:
文本到图像(T2I)模型虽然在图像生成中展现出显著的创造力,但也可能被利用来生成不安全图像。现有安全措施(例如内容审核或模型对齐)在面对了解并能够调整模型参数(例如通过微调)的白盒对手时会失效。本文提出了一个名为 Patronus 的新型防御框架,为 T2I 模型提供全面保护,以抵御白盒对手。具体而言,我们设计了一个内部审核器,将不安全输入特征解码为零向量,同时确保良性输入特征的解码性能。此外,我们通过精心设计的不可微调学习机制来增强模型对齐,确保 T2I 模型不会被恶意微调破坏。我们进行了大量实验,以验证安全内容生成性能的完整性以及拒绝不安全内容生成的有效性。结果还证实了 Patronus 对白盒对手各种微调攻击的韧性。
英文摘要:
Text-to-image (T2I) models, though exhibiting remarkable creativity in image generation, can be exploited to produce unsafe images. Existing safety measures, e.g., content moderation or model alignment, fail in the presence of white-box adversaries who know and can adjust model parameters, e.g., by fine-tuning. This paper presents a novel defensive framework, named Patronus, which equips T2I models with holistic protection to defend against white-box adversaries. Specifically, we design an internal moderator that decodes unsafe input features into zero vectors while ensuring the decoding performance of benign input features. Furthermore, we strengthen the model alignment with a carefully designed non-fine-tunable learning mechanism, ensuring the T2I model will not be compromised by malicious fine-tuning. We conduct extensive experiments to validate the intactness of the performance on safe content generation and the effectiveness of rejecting unsafe content generation. Results also confirm the resilience of Patronus against various fine-tuning attacks by white-box adversaries.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。