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

对抗性单词替换的认证鲁棒性

Certified Robustness to Adversarial Word Substitutions

Stanford University(斯坦福大学)

Robin Jia, Aditi Raghunathan, Kerem Göksel, Percy Liang

摘要:

最先进的NLP模型通常会被应用看似无害的标签保留转换(例如,释义)来输入文本。可能的转换数量随文本长度呈指数级增长,因此数据增强无法覆盖输入的所有转换。本文考虑一个指数级大的标签保持变换族,其中输入中的每个单词都可以用相似的单词替换。我们训练第一个模型,这些模型可证明对这个家族中的所有单词替换都是鲁棒的。我们的训练过程使用区间边界传播(IBP)来最小化任何单词替换组合可能引起的最坏情况损失的上限。为了评估模型对这些转换的鲁棒性,我们测量了应用于测试示例的逆向选择单词替换的准确性。我们的IBP训练模型在IMDB上的情感分析和SNLI上的自然语言推理上都达到了$75\%$对抗精度。相比之下,在IMDB上,正常训练的模型和使用数据增强训练的模型分别仅达到$8\%$和$35\%$的对抗精度。

英文摘要:

State-of-the-art NLP models can often be fooled by adversaries that apply seemingly innocuous label-preserving transformations (e.g., paraphrasing) to input text. The number of possible transformations scales exponentially with text length, so data augmentation cannot cover all transformations of an input. This paper considers one exponentially large family of label-preserving transformations, in which every word in the input can be replaced with a similar word. We train the first models that are provably robust to all word substitutions in this family. Our training procedure uses Interval Bound Propagation (IBP) to minimize an upper bound on the worst-case loss that any combination of word substitutions can induce. To evaluate models' robustness to these transformations, we measure accuracy on adversarially chosen word substitutions applied to test examples. Our IBP-trained models attain $75\%$ adversarial accuracy on both sentiment analysis on IMDB and natural language inference on SNLI. In comparison, on IMDB, models trained normally and ones trained with data augmentation achieve adversarial accuracy of only $8\%$ and $35\%$, respectively.

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

↑