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

显著性注意力与语义相似度驱动的对抗扰动

Saliency Attention and Semantic Similarity-Driven Adversarial Perturbation

Praxis Business School(普拉西斯商学院)

Hetvi Waghela, Jaydip Sen, Sneha Rakshit

AI总结:

针对传统文本对抗攻击难以兼顾攻击有效性与语义一致性的问题,提出融合显著性、注意力与语义相似度的三阶段扰动方法SASSP,相比CLARE实现了更高攻击成功率与更低扰动率。

摘要:

本文提出了一种增强型文本对抗攻击方法,称为显著性注意力与语义相似度驱动的对抗扰动(Saliency Attention and Semantic Similarity driven adversarial Perturbation, SASSP)。该方案通过整合显著性、注意力和语义相似度,旨在提升上下文扰动的有效性。传统对抗攻击方法在有效欺骗目标模型的同时,往往难以维持语义一致性与连贯性。本文提出的方法通过采用三管齐下的单词选择与扰动策略来应对这些挑战。首先,利用基于显著性的单词选择,根据单词对模型预测的重要性确定修改优先级。其次,采用注意力机制将扰动集中在具有上下文重要性的单词上,提升攻击效力。最后,使用包含嵌入相似度与复述检测的高级语义相似度检查方法。该方案借助Sentence-BERT等模型计算嵌入相似度,并使用Sentence Transformers库中的微调复述检测模型,确保扰动后的文本保持上下文恰当性,且与原文本语义一致。实验评估表明,SASSP生成的对抗样本不仅能维持较高的语义保真度,还能有效欺骗当前最先进的自然语言处理模型。此外,与原有的上下文扰动方案CLARE相比,SASSP取得了更高的攻击成功率和更低的单词扰动率。

英文摘要:

In this paper, we introduce an enhanced textual adversarial attack method, known as Saliency Attention and Semantic Similarity driven adversarial Perturbation (SASSP). The proposed scheme is designed to improve the effectiveness of contextual perturbations by integrating saliency, attention, and semantic similarity. Traditional adversarial attack methods often struggle to maintain semantic consistency and coherence while effectively deceiving target models. Our proposed approach addresses these challenges by incorporating a three-pronged strategy for word selection and perturbation. First, we utilize a saliency-based word selection to prioritize words for modification based on their importance to the model's prediction. Second, attention mechanisms are employed to focus perturbations on contextually significant words, enhancing the attack's efficacy. Finally, an advanced semantic similarity-checking method is employed that includes embedding-based similarity and paraphrase detection. By leveraging models like Sentence-BERT for embedding similarity and fine-tuned paraphrase detection models from the Sentence Transformers library, the scheme ensures that the perturbed text remains contextually appropriate and semantically consistent with the original. Empirical evaluations demonstrate that SASSP generates adversarial examples that not only maintain high semantic fidelity but also effectively deceive state-of-the-art natural language processing models. Moreover, in comparison to the original scheme of contextual perturbation CLARE, SASSP has yielded a higher attack success rate and lower word perturbation rate.

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

↑