arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2211.04205cs.CLcs.AI
收藏

文本对抗攻击中的语义保持

Preserving Semantics in Textual Adversarial Attacks

Czech Technical University in Prague(捷克布拉格技术大学)

David Herel, Hugo Cisneros, Tomas Mikolov

AI总结:

针对现有文本对抗攻击生成的样本70%因语义失真需丢弃的问题,提出全监督句子嵌入技术SPE,将实际攻击成功率提升1.2-5.1倍,还发布了可适配现有攻击的插件代码。

摘要:

网络仇恨内容(即仇恨言论)的增长与全球范围内针对少数群体的暴力犯罪上升相关[23]。有害网络内容可被轻松、自动且匿名地生成。尽管自然语言处理(NLP)领域的文本分类器已实现某种形式的自动检测,但它们仍可能被对抗攻击欺骗。为强化现有系统并领先于攻击者,我们需要更优的对抗攻击方法。本文指出,现有对抗攻击生成的对抗样本中高达70%应被丢弃,因其未能保持语义一致性。针对这一核心缺陷,我们提出一种全新的全监督句子嵌入技术——Semantics-Preserving-Encoder(SPE,语义保持编码器)。我们的方法在实际攻击成功率上表现优于现有对抗攻击中使用的句子编码器,性能提升达1.2倍至5.1倍。我们将代码以插件形式发布,可应用于任何现有对抗攻击方法,以提升其生成质量并加快执行速度。

英文摘要:

The growth of hateful online content, or hate speech, has been associated with a global increase in violent crimes against minorities [23]. Harmful online content can be produced easily, automatically and anonymously. Even though, some form of auto-detection is already achieved through text classifiers in NLP, they can be fooled by adversarial attacks. To strengthen existing systems and stay ahead of attackers, we need better adversarial attacks. In this paper, we show that up to 70% of adversarial examples generated by adversarial attacks should be discarded because they do not preserve semantics. We address this core weakness and propose a new, fully supervised sentence embedding technique called Semantics-Preserving-Encoder (SPE). Our method outperforms existing sentence encoders used in adversarial attacks by achieving 1.2x - 5.1x better real attack success rate. We release our code as a plugin that can be used in any existing adversarial attack to improve its quality and speed up its execution.

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

↑