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.
Adv-BERT: BERT is not robust on misspellings! Generating nature adversarial samples on BERT
University of Illinois at Chicago(伊利诺伊大学芝加哥分校);Salesforce Research(Salesforce研究院)
越来越多的文献声称,深度神经网络在处理恶意创建的对抗性示例时是脆弱的。然而,目前还不清楚这些模型在经常存在\textit{natural rather than malicious}对抗实例的现实场景中将如何表现。本文系统地探讨了BERT(NLP中最先进的Transformer风格模型)在处理噪声数据(特别是无意中出现的键盘输入错误)时的鲁棒性。对情感分析和问答基准的密集实验表明:(i)句子中各个单词的错别字影响不相等。信息词中的错别字是造成损害的最主要因素,其次是插入、删除等; (iii)人类和机器在识别对抗攻击方面有不同的侧重点。
CogniDir: Combating Cognitive Malicious Comments via Adaptive Distributional Learning for Robust Fake News Detection
Institute of Information Engineering, Chinese Academy of Sciences(中国科学院信息工程研究所);University of Minnesota(明尼苏达大学);Queen Mary University of London(伦敦玛丽女王大学);New Laboratory of Pattern Recognition (NLPR), Institute of Automation, Chinese Academy of Sciences(中国科学院自动化研究所模式识别新实验室)
Enhance Robustness of Language Models Against Variation Attack through Graph Integration
Institute for Intelligent Computing, Alibaba Group(阿里巴巴集团智能计算研究院);School of Information Management, Wuhan University(武汉大学信息管理学院);Worcester Polytechnic Institute(伍斯特理工学院)
CharBERT: Character-aware Pre-trained Language Model
iFLYTEK Research(科大讯飞研究);State Key Laboratory of Cognitive Intelligence(认知智能国家重点实验室);Harbin Institute of Technology(哈尔滨工业大学);Research Center for Social Computing and Information Retrieval (SCIR)(社会计算与信息检索研究中心(SCIR));iFLYTEK AI Research (Hebei)(科大讯飞AI研究(河北));University of Maryland(马里兰大学)