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

用鲁棒的单词识别来对抗性拼写错误

Combating Adversarial Misspellings with Robust Word Recognition

Carnegie Mellon University(卡内基梅隆大学)

Danish Pruthi, Bhuwan Dhingra, Zachary C. Lipton

摘要:

为了对抗对抗性拼写错误,我们建议在下游分类器之前放置一个单词识别模型。我们的单词识别模型建立在RNN半字符架构的基础上,引入了几种新的退避策略来处理罕见和不可见的单词。训练识别随机添加,下降,交换和键盘错误损坏的单词,我们的方法实现了32%的相对(和3.3%的绝对)错误减少香草半字符模型。值得注意的是,我们的管道赋予下游分类器鲁棒性,优于对抗训练和现成的拼写检查器。与针对情感分析进行微调的BERT模型相比,单个敌对选择的字符攻击将准确率从90.3%降低到45.8%。我们的防御系统可以将准确率恢复到75%。令人惊讶的是,更好的单词识别并不总是需要更强的鲁棒性。我们的分析表明,鲁棒性还取决于一个量,我们表示的灵敏度。

英文摘要:

To combat adversarial spelling mistakes, we propose placing a word recognition model in front of the downstream classifier. Our word recognition models build upon the RNN semi-character architecture, introducing several new backoff strategies for handling rare and unseen words. Trained to recognize words corrupted by random adds, drops, swaps, and keyboard mistakes, our method achieves 32% relative (and 3.3% absolute) error reduction over the vanilla semi-character model. Notably, our pipeline confers robustness on the downstream classifier, outperforming both adversarial training and off-the-shelf spell checkers. Against a BERT model fine-tuned for sentiment analysis, a single adversarially-chosen character attack lowers accuracy from 90.3% to 45.8%. Our defense restores accuracy to 75%. Surprisingly, better word recognition does not always entail greater robustness. Our analysis reveals that robustness also depends upon a quantity that we denote the sensitivity.

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

↑