arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2406.13066cs.LGcs.AI
收藏

MaskPure:通过随机纯化提升对文本对抗样本的防御能力

MaskPure: Improving Defense Against Text Adversaries with Stochastic Purification

Louisiana State University(路易斯安那州立大学);University of Colorado Colorado Springs(科罗拉多大学科罗拉多斯普林斯分校)

Harrison Gietz, Jugal Kalita

AI总结:

针对文本对抗攻击防御的质量与效率问题,提出受扩散过程启发的MaskPure随机文本纯化方法,无需对抗训练和预知攻击类型,兼具认证与经验鲁棒性,可同时抵御字符级和单词级攻击。

摘要:

语言模型鲁棒性的提升(包括成功防御对抗攻击)仍是一个待解决的问题。在计算机视觉领域,扩散模型提供的随机加噪与去噪过程已被证明可用于纯化输入图像,从而提升模型对抗攻击的鲁棒性。类似地,一些初步工作探索了在自然语言处理(NLP)场景中使用随机加噪与去噪来缓解对抗攻击,但要让这类方法具备竞争力,必须提升其质量与效率。\n我们对受扩散过程启发的输入文本纯化方法进行了拓展,这类方法会在分类前随机掩码并重新填充输入文本的部分内容。我们提出的新方法MaskPure,其鲁棒性优于或持平于其他当前主流的防御方法,同时无需进行对抗分类器训练,也无需预先知晓攻击类型。此外,我们证明MaskPure具备可证明的认证鲁棒性。据我们所知,MaskPure是首个被证明能同时成功抵御字符级和单词级攻击的随机纯化方法,这表明随机去噪防御方法具有可推广性和良好的应用前景。\n总而言之,MaskPure算法衔接了当前最强的认证式与经验式对抗防御方法相关研究,证明理论鲁棒性与实际鲁棒性可以同时实现。代码已在GitHub发布,地址为https://github.com/hubarruby/MaskPure。

英文摘要:

The improvement of language model robustness, including successful defense against adversarial attacks, remains an open problem. In computer vision settings, the stochastic noising and de-noising process provided by diffusion models has proven useful for purifying input images, thus improving model robustness against adversarial attacks. Similarly, some initial work has explored the use of random noising and de-noising to mitigate adversarial attacks in an NLP setting, but improving the quality and efficiency of these methods is necessary for them to remain competitive. We extend upon methods of input text purification that are inspired by diffusion processes, which randomly mask and refill portions of the input text before classification. Our novel method, MaskPure, exceeds or matches robustness compared to other contemporary defenses, while also requiring no adversarial classifier training and without assuming knowledge of the attack type. In addition, we show that MaskPure is provably certifiably robust. To our knowledge, MaskPure is the first stochastic-purification method with demonstrated success against both character-level and word-level attacks, indicating the generalizable and promising nature of stochastic denoising defenses. In summary: the MaskPure algorithm bridges literature on the current strongest certifiable and empirical adversarial defense methods, showing that both theoretical and practical robustness can be obtained together. Code is available on GitHub at https://github.com/hubarruby/MaskPure.

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

↑