arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2104.08453cs.CL
收藏

R&R:度量引导的对抗性句子生成

R&R: Metric-guided Adversarial Sentence Generation

MIT(麻省理工学院);Universidad Rey Juan Carlos(胡安卡洛斯国王大学);IRD(法国发展研究院)

Lei Xu, Alfredo Cuesta-Infante, Laure Berti-Equille, Kalyan Veeramachaneni

摘要:

对抗样本有助于分析和提高文本分类器的鲁棒性。生成高质量的对抗性示例是一项具有挑战性的任务,因为它需要生成流畅的对抗性句子,这些句子在语义上与原始句子相似,并保留原始标签,同时导致分类器对它们进行错误分类。现有方法通过最大化每个扰动在误导文本分类器方面的有效性来优先考虑错误分类;因此,生成的对抗性示例在流畅性和相似性方面不足。在本文中,我们提出了一个重写和回滚(R&R)框架的对抗攻击。它通过优化结合流畅性,相似性和错误分类指标的评论得分来提高对抗性示例的质量。R&R通过允许探索对误分类指标没有直接影响但可以提高流畅性和相似性指标的扰动来生成高质量的对抗性示例。我们在5个代表性数据集和3个分类器架构上评估了我们的方法。我们的方法在分类器上的攻击成功率分别比当前最先进的方法高出+16.2%,+12.8%和+14.0%。代码可在https://github.com/DAI-Lab/fibber上获得

英文摘要:

Adversarial examples are helpful for analyzing and improving the robustness of text classifiers. Generating high-quality adversarial examples is a challenging task as it requires generating fluent adversarial sentences that are semantically similar to the original sentences and preserve the original labels, while causing the classifier to misclassify them. Existing methods prioritize misclassification by maximizing each perturbation's effectiveness at misleading a text classifier; thus, the generated adversarial examples fall short in terms of fluency and similarity. In this paper, we propose a rewrite and rollback (R&R) framework for adversarial attack. It improves the quality of adversarial examples by optimizing a critique score which combines the fluency, similarity, and misclassification metrics. R&R generates high-quality adversarial examples by allowing exploration of perturbations that do not have immediate impact on the misclassification metric but can improve fluency and similarity metrics. We evaluate our method on 5 representative datasets and 3 classifier architectures. Our method outperforms current state-of-the-art in attack success rate by +16.2%, +12.8%, and +14.0% on the classifiers respectively. Code is available at https://github.com/DAI-Lab/fibber

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

↑