arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2404.05159cs.CLcs.CRcs.LG
收藏

语义隐身:使用多种方法对 NLP 进行对抗文本攻击

Semantic Stealth: Adversarial Text Attacks on NLP Using Several Methods

Praxis Tech School(Praxis 科技学院)

Roopkatha Dey, Aivy Debnath, Sayak Kumar Dutta, Kaustav Ghosh, Arijit Mitra, Arghya Roy Chowdhury, Jaydip Sen

AI总结:

本文以 BERT 为受害模型,在 IMDB、AG News 和 SST2 上比较 BERT-on-BERT、PWWS 与 FBA 三种文本对抗攻击,发现 PWWS 综合表现最强。

摘要:

在机器翻译、情感分析和问答等各种真实世界应用中,NLP 模型发挥着关键作用,促进了从医疗保健到金融等领域的高效沟通和决策过程。然而,文本对抗攻击对这些自然语言处理模型的鲁棒性构成了重大挑战。这些攻击涉及故意操纵输入文本,以误导模型的预测,同时保持人类可解释性。尽管 BERT 等最先进模型在各种自然语言处理任务中取得了显著性能,但研究发现,它们仍然容易受到输入文本中对抗性扰动的影响。为解决文本分类器易受对抗攻击的问题,本文以 BERT 为受害模型,探索了三种不同的攻击机制:BERT-on-BERT 攻击、PWWS 攻击和 Fraud Bargain's Attack(FBA)。研究利用 IMDB、AG News 和 SST2 数据集,进行了全面的比较分析,以评估这些攻击对 BERT 分类器模型的有效性。分析表明,PWWS 是最强的对抗方法,在多个评估场景中始终优于其他方法,从而凸显了其在生成文本分类对抗样本方面的有效性。通过全面实验,本文评估了这些攻击的性能,研究结果表明 PWWS 攻击优于其他攻击,表现出更低的运行时间、更高的准确率以及良好的语义相似度分数。本文的关键洞见在于评估三种流行的最先进攻击机制的相对性能。

英文摘要:

In various real-world applications such as machine translation, sentiment analysis, and question answering, a pivotal role is played by NLP models, facilitating efficient communication and decision-making processes in domains ranging from healthcare to finance. However, a significant challenge is posed to the robustness of these natural language processing models by text adversarial attacks. These attacks involve the deliberate manipulation of input text to mislead the predictions of the model while maintaining human interpretability. Despite the remarkable performance achieved by state-of-the-art models like BERT in various natural language processing tasks, they are found to remain vulnerable to adversarial perturbations in the input text. In addressing the vulnerability of text classifiers to adversarial attacks, three distinct attack mechanisms are explored in this paper using the victim model BERT: BERT-on-BERT attack, PWWS attack, and Fraud Bargain's Attack (FBA). Leveraging the IMDB, AG News, and SST2 datasets, a thorough comparative analysis is conducted to assess the effectiveness of these attacks on the BERT classifier model. It is revealed by the analysis that PWWS emerges as the most potent adversary, consistently outperforming other methods across multiple evaluation scenarios, thereby emphasizing its efficacy in generating adversarial examples for text classification. Through comprehensive experimentation, the performance of these attacks is assessed and the findings indicate that the PWWS attack outperforms others, demonstrating lower runtime, higher accuracy, and favorable semantic similarity scores. The key insight of this paper lies in the assessment of the relative performances of three prevalent state-of-the-art attack mechanisms.

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

↑