检索可能有害:揭示检索增强扩散模型的后门漏洞
Retrievals Can Be Detrimental: Unveiling the Backdoor Vulnerability of Retrieval-Augmented Diffusion Models
AI总结:
本文揭示了检索增强扩散模型(RDM)的后门漏洞,通过多模态对比攻击方法BadRDM,展示了如何利用检索数据库中的毒害代理进行攻击,同时保持模型的正常功能。
摘要:
扩散模型(DMs)最近展示了卓越的生成能力。然而,它们的训练通常需要巨大的计算资源和大规模数据集。为了解决这些问题,最近的研究赋予DMs先进的检索增强生成(RAG)技术,并提出了检索增强扩散模型(RDMs)。通过结合辅助数据库中的丰富知识,RAG增强了扩散模型的生成和泛化能力,同时显著减少了模型参数。尽管取得了巨大成功,RAG可能会引入新的安全问题,值得进一步研究。在本文中,我们发现RDM容易受到后门攻击,通过提出一种名为BadRDM的多模态对比攻击方法。我们的框架充分考虑了RAG的特点,并设计用于操纵检索项以针对给定的文本触发器,从而进一步控制生成内容。具体来说,我们首先将一小部分图像插入到检索数据库中作为目标毒害代理。随后,采用恶意的对比学习变体来在检索器中注入后门,这建立了触发器到毒害代理的捷径。此外,我们通过新颖的基于熵的选择和生成增强策略来增强攻击,这些策略可以推导出更好的毒害代理。在两个主流任务上的大量实验表明,所提出的BadRDM在保持模型良性用途的同时,实现了出色的攻击效果。
英文摘要:
Diffusion models (DMs) have recently demonstrated remarkable generation capability. However, their training generally requires huge computational resources and large-scale datasets. To solve these, recent studies empower DMs with the advanced Retrieval-Augmented Generation (RAG) technique and propose retrieval-augmented diffusion models (RDMs). By incorporating rich knowledge from an auxiliary database, RAG enhances diffusion models' generation and generalization ability while significantly reducing model parameters. Despite the great success, RAG may introduce novel security issues that warrant further investigation. In this paper, we reveal that the RDM is susceptible to backdoor attacks by proposing a multimodal contrastive attack approach named BadRDM. Our framework fully considers RAG's characteristics and is devised to manipulate the retrieved items for given text triggers, thereby further controlling the generated contents. Specifically, we first insert a tiny portion of images into the retrieval database as target toxicity surrogates. Subsequently, a malicious variant of contrastive learning is adopted to inject backdoors into the retriever, which builds shortcuts from triggers to the toxicity surrogates. Furthermore, we enhance the attacks through novel entropy-based selection and generative augmentation strategies that can derive better toxicity surrogates. Extensive experiments on two mainstream tasks demonstrate the proposed BadRDM achieves outstanding attack effects while preserving the model's benign utility.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。