arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2405.03789cs.LGcs.AIcs.CLcs.CR
收藏

通过扰动潜在表示生成文本分类对抗样本

On Adversarial Examples for Text Classification by Perturbing Latent Representations

Baylor University(贝勒大学);School of Engineering & Computer Science(工程与计算机科学学院);Department of Computer Science(计算机科学系);Baylor.AI lab(贝勒人工智能实验室)

Korn Sooksatra, Bikram Khanal, Pablo Rivas

AI总结:

针对文本分类器离散输入限制白盒攻击的问题,本文提出在嵌入向量空间实施扰动并映射回文本,构建基于梯度的鲁棒性评估框架。

摘要:

近年来,随着深度学习的发展,文本分类中的若干应用取得了显著进展。然而,这种进步也伴随着代价,因为深度学习容易受到对抗样本的攻击。这一弱点表明深度学习的鲁棒性并不强。幸运的是,文本分类器的输入是离散的,因此这可以使分类器抵御最先进的攻击。尽管如此,以往的工作已经生成了黑盒攻击,通过成功操纵输入的离散值来寻找对抗样本。因此,本文不再改变离散值,而是将输入转换为包含实数值的嵌入向量,以执行最先进的白盒攻击。随后,我们将受扰动的嵌入向量转换回文本,并将其命名为对抗样本。总之,我们创建了一个通过利用分类器梯度来衡量文本分类器鲁棒性的框架。

英文摘要:

Recently, with the advancement of deep learning, several applications in text classification have advanced significantly. However, this improvement comes with a cost because deep learning is vulnerable to adversarial examples. This weakness indicates that deep learning is not very robust. Fortunately, the input of a text classifier is discrete. Hence, it can prevent the classifier from state-of-the-art attacks. Nonetheless, previous works have generated black-box attacks that successfully manipulate the discrete values of the input to find adversarial examples. Therefore, instead of changing the discrete values, we transform the input into its embedding vector containing real values to perform the state-of-the-art white-box attacks. Then, we convert the perturbed embedding vector back into a text and name it an adversarial example. In summary, we create a framework that measures the robustness of a text classifier by using the gradients of the classifier.

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

↑