文本对抗净化作为对抗攻击的防御方法
Text Adversarial Purification as Defense against Adversarial Attacks
AI总结:
本研究针对文本对抗攻击防御研究较少的问题,提出一种借助掩码语言模型注入并重构噪声的文本对抗净化方法,可有效抵御Textfooler、BERT-Attack等强词替换类对抗攻击。
摘要:
对抗净化是一种无需知晓传入攻击形式的有效对抗攻击防御机制。通常而言,对抗净化旨在消除对抗扰动,从而可基于恢复的干净样本做出正确预测。尽管对抗净化在计算机视觉领域已取得成功(该领域结合了基于能量的模型、扩散模型等生成模型),但将净化作为文本对抗攻击的防御策略却鲜有研究。在本研究中,我们提出了一种专注于防御文本对抗攻击的新型对抗净化方法。借助语言模型,我们可通过掩码输入文本并基于掩码语言模型重构掩码文本的方式注入噪声。通过这种方式,我们为文本模型构建了一套对抗净化流程,用于抵御应用最广泛的词替换类对抗攻击。我们在包括Textfooler和BERT-Attack在内的多种强对抗攻击方法上测试了所提出的对抗净化方法,实验结果表明,该净化算法可成功抵御强词替换攻击。
英文摘要:
Adversarial purification is a successful defense mechanism against adversarial attacks without requiring knowledge of the form of the incoming attack. Generally, adversarial purification aims to remove the adversarial perturbations therefore can make correct predictions based on the recovered clean samples. Despite the success of adversarial purification in the computer vision field that incorporates generative models such as energy-based models and diffusion models, using purification as a defense strategy against textual adversarial attacks is rarely explored. In this work, we introduce a novel adversarial purification method that focuses on defending against textual adversarial attacks. With the help of language models, we can inject noise by masking input texts and reconstructing the masked texts based on the masked language models. In this way, we construct an adversarial purification process for textual models against the most widely used word-substitution adversarial attacks. We test our proposed adversarial purification method on several strong adversarial attack methods including Textfooler and BERT-Attack and experimental results indicate that the purification algorithm can successfully defend against strong word-substitution attacks.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。