DiffuseDef:通过迭代去噪提升对抗攻击鲁棒性
DiffuseDef: Improved Robustness to Adversarial Attacks via Iterative Denoising
AI总结:
针对预训练语言模型易受对抗文本攻击的问题,提出即插即用的防御方法DiffuseDef,通过在编码器与分类器间加入迭代去噪的扩散层并结合对抗训练与集成,在黑盒、白盒攻击下实现了最优防御效果。
摘要:
预训练语言模型已显著提升了各类自然语言处理任务的性能,但对抗攻击仍是基于这些模型构建的系统面临的关键挑战——精心设计的对抗文本可对系统造成利用。受计算机视觉领域扩散模型预测并降低噪声的能力启发,我们针对语言分类任务提出一种新颖灵活的对抗防御方法DiffuseDef,该方法在编码器与分类器之间加入扩散层作为去噪器。扩散层在现有分类器之上训练,可即插即用地与任意模型无缝集成。推理阶段,对抗隐藏状态先与采样噪声结合,随后进行迭代去噪,最后集成得到鲁棒的文本表示。通过整合对抗训练、去噪与集成技术,我们证明DiffuseDef优于现有对抗防御方法,在常见黑盒与白盒对抗攻击下达到了当前最优性能。
英文摘要:
Pretrained language models have significantly advanced performance across various natural language processing tasks. However, adversarial attacks continue to pose a critical challenge to systems built using these models, as they can be exploited with carefully crafted adversarial texts. Inspired by the ability of diffusion models to predict and reduce noise in computer vision, we propose a novel and flexible adversarial defense method for language classification tasks, DiffuseDef, which incorporates a diffusion layer as a denoiser between the encoder and the classifier. The diffusion layer is trained on top of the existing classifier, ensuring seamless integration with any model in a plug-and-play manner. During inference, the adversarial hidden state is first combined with sampled noise, then denoised iteratively and finally ensembled to produce a robust text representation. By integrating adversarial training, denoising, and ensembling techniques, we show that DiffuseDef improves over existing adversarial defense methods and achieves state-of-the-art performance against common black-box and white-box adversarial attacks.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。