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

基于块稀疏的对抗攻击欺骗基于transformer的文本分类器

Block-Sparse Adversarial Attack to Fool Transformer-Based Text Classifiers

EPFL(洛桑联邦理工学院);Armasuisse S+T(瑞士联邦国防采购局科学技术部)

Sahar Sadrizadeh, Ljiljana Dolamic, Pascal Frossard

摘要:

最近,有研究表明,尽管深度神经网络在不同领域表现出色,但它们很容易受到对抗性样本的影响。在本文中,我们提出了一个基于梯度的对抗攻击对基于transformer的文本分类器。在我们的方法中,对抗性扰动被施加为块稀疏的,因此得到的对抗性示例与原始句子只有几个单词不同。由于文本数据的离散性,我们执行梯度投影来找到我们提出的优化问题的最小值。实验结果表明,虽然我们的对抗攻击保持了句子的语义,但它可以将GPT-2在不同数据集(AG News,MNLI和Yelp Reviews)上的准确率降低到5%以下。此外,所提出的优化问题的块稀疏性约束导致对抗性示例中的小扰动。

英文摘要:

Recently, it has been shown that, in spite of the significant performance of deep neural networks in different fields, those are vulnerable to adversarial examples. In this paper, we propose a gradient-based adversarial attack against transformer-based text classifiers. The adversarial perturbation in our method is imposed to be block-sparse so that the resultant adversarial example differs from the original sentence in only a few words. Due to the discrete nature of textual data, we perform gradient projection to find the minimizer of our proposed optimization problem. Experimental results demonstrate that, while our adversarial attack maintains the semantics of the sentence, it can reduce the accuracy of GPT-2 to less than 5% on different datasets (AG News, MNLI, and Yelp Reviews). Furthermore, the block-sparsity constraint of the proposed optimization problem results in small perturbations in the adversarial example.

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

↑