arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2407.21073cs.LGcs.CLcs.CR
收藏

利用投影梯度下降增强针对BERT模型的对抗性文本攻击

Enhancing Adversarial Text Attacks on BERT Models with Projected Gradient Descent

Praxis Tech School(Praxis技术学院);Praxis Business School(Praxis商学院)

Hetvi Waghela, Jaydip Sen, Sneha Rakshit

AI总结:

本文提出PGD-BERT-Attack,将投影梯度下降引入BERT-Attack框架,以迭代方式生成兼具不可感知性和语义相似性的对抗样本,实验表明其攻击成功率和语义保真度均优于原始方法。

摘要:

针对深度学习模型的对抗性攻击对自然语言处理(NLP)系统的安全性和可靠性构成重大威胁。本文提出对BERT-Attack框架进行改进,引入投影梯度下降(Projected Gradient Descent,PGD)以提升其有效性和鲁棒性。原始BERT-Attack旨在针对基于BERT的模型生成对抗样本,但存在固定扰动预算和未充分考虑语义相似性等局限。本文提出的方法PGD-BERT-Attack通过利用PGD迭代生成对抗样本,同时确保对原始输入的不可感知性和语义相似性,从而解决上述局限。我们进行了大量实验,以评估PGD-BERT-Attack相较于原始BERT-Attack及其他基线方法的性能。结果表明,PGD-BERT-Attack在保持较低感知变化的同时,实现了更高的误分类成功率。此外,PGD-BERT-Attack生成的对抗实例与初始输入具有更强的语义相似性,从而增强了其在现实场景中的适用性。总体而言,所提出的改进为针对基于BERT模型的对抗性攻击提供了一种更有效、更鲁棒的方法,从而有助于推进NLP系统攻击防御研究的发展。

英文摘要:

Adversarial attacks against deep learning models represent a major threat to the security and reliability of natural language processing (NLP) systems. In this paper, we propose a modification to the BERT-Attack framework, integrating Projected Gradient Descent (PGD) to enhance its effectiveness and robustness. The original BERT-Attack, designed for generating adversarial examples against BERT-based models, suffers from limitations such as a fixed perturbation budget and a lack of consideration for semantic similarity. The proposed approach in this work, PGD-BERT-Attack, addresses these limitations by leveraging PGD to iteratively generate adversarial examples while ensuring both imperceptibility and semantic similarity to the original input. Extensive experiments are conducted to evaluate the performance of PGD-BERT-Attack compared to the original BERT-Attack and other baseline methods. The results demonstrate that PGD-BERT-Attack achieves higher success rates in causing misclassification while maintaining low perceptual changes. Furthermore, PGD-BERT-Attack produces adversarial instances that exhibit greater semantic resemblance to the initial input, enhancing their applicability in real-world scenarios. Overall, the proposed modification offers a more effective and robust approach to adversarial attacks on BERT-based models, thus contributing to the advancement of defense against attacks on NLP systems.

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

↑