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

Seq2Sick:用对抗性实例评估序列到序列模型的鲁棒性

Seq2Sick: Evaluating the Robustness of Sequence-to-Sequence Models with Adversarial Examples

UCLA(加州大学洛杉矶分校);JD AI Research(京东AI研究院);IBM Research(IBM研究院)

Minhao Cheng, Jinfeng Yi, Pin-Yu Chen, Huan Zhang, Cho-Jui Hsieh

摘要:

制作对抗性示例已成为评估深度神经网络(DNN)鲁棒性的重要技术。然而,由于图像分类问题的输入空间是连续的,而输出空间是有限的,因此现有的研究大多集中于解决这一问题。在本文中,我们研究了为序列到序列(seq2seq)模型制作对抗性示例的更具挑战性的问题,该模型的输入是离散文本字符串,输出几乎有无限多的可能性。为了解决离散输入空间带来的挑战,我们提出了一种结合组套索和梯度正则化的投影梯度方法。为了处理几乎无限的输出空间,我们设计了一些新的损失函数进行非重叠攻击和有针对性的关键字攻击。我们将我们的算法应用于机器翻译和文本摘要任务,并验证了所提出算法的有效性:通过改变少于3个单词,我们可以使seq2seq模型以高的成功率产生期望的输出。另一方面,我们认识到,与评估良好的基于CNN的分类器相比,seq2seq模型本质上对对抗攻击更具鲁棒性。

英文摘要:

Crafting adversarial examples has become an important technique to evaluate the robustness of deep neural networks (DNNs). However, most existing works focus on attacking the image classification problem since its input space is continuous and output space is finite. In this paper, we study the much more challenging problem of crafting adversarial examples for sequence-to-sequence (seq2seq) models, whose inputs are discrete text strings and outputs have an almost infinite number of possibilities. To address the challenges caused by the discrete input space, we propose a projected gradient method combined with group lasso and gradient regularization. To handle the almost infinite output space, we design some novel loss functions to conduct non-overlapping attack and targeted keyword attack. We apply our algorithm to machine translation and text summarization tasks, and verify the effectiveness of the proposed algorithm: by changing less than 3 words, we can make seq2seq model to produce desired outputs with high success rates. On the other hand, we recognize that, compared with the well-evaluated CNN-based classifiers, seq2seq models are intrinsically more robust to adversarial attacks.

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

↑