Masked Language Model Based Textual Adversarial Example Detection
College of Computer and Information Science, Southwest University(西南大学计算机与信息科学学院);School of Information Technology, Deakin University(迪肯大学信息技术学院);School of Computer Science, University of Technology Sydney(悉尼科技大学计算机科学学院);School of Cyber Science and Engineering, Huazhong University of Science and Technology(华中科技大学网络空间安全学院);School of Information and Communication Technology, Griffith University(格里菲斯大学信息与通信技术学院)
Adversarial attacks are a serious threat to the reliable deployment of machine learning models in safety-critical applications. They can misguide current models to predict incorrectly by slightly modifying the inputs. Recently, substantial work has shown that adversarial examples tend to deviate from the underlying data manifold of normal examples, whereas pre-trained masked language models can fit the manifold of normal NLP data. To explore how to use the masked language model in adversarial detection, we propose a novel textual adversarial example detection method, namely Masked Language Model-based Detection (MLMD), which can produce clearly distinguishable signals between normal examples and adversarial examples by exploring the changes in manifolds induced by the masked language model. MLMD features a plug and play usage (i.e., no need to retrain the victim model) for adversarial defense and it is agnostic to classification tasks, victim model's architectures, and to-be-defended attack methods. We evaluate MLMD on various benchmark textual datasets, widely studied machine learning models, and state-of-the-art (SOTA) adversarial attacks (in total $3*4*4 = 48$ settings). Experimental results show that MLMD can achieve strong performance, with detection accuracy up to 0.984, 0.967, and 0.901 on AG-NEWS, IMDB, and SST-2 datasets, respectively. Additionally, MLMD is superior, or at least comparable to, the SOTA detection defenses in detection accuracy and F1 score. Among many defenses based on the off-manifold assumption of adversarial examples, this work offers a new angle for capturing the manifold change. The code for this work is openly accessible at \url{https://github.com/mlmddetection/MLMDdetection}.
Exploring Gradient-Guided Masked Language Model to Detect Textual Adversarial Attacks
School of Information and Communication Technology, Griffith University(格里菲斯大学信息与通信技术学院);School of Computer Science, University of Technology Sydney(悉尼科技大学计算机科学学院);College of Computer and Information Science, Southwest University(西南大学计算机与信息科学学院);School of Cyber Science and Engineering, Huazhong University of Science and Technology(华中科技大学网络空间科学与工程学院)
Randomized Smoothing with Masked Inference for Adversarially Robust Text Classifications
Nanyang Technological University(南洋理工大学);Salesforce AI(Salesforce人工智能研究院);Birla Institute of Technology and Science, Pilani(皮拉尼比特拉技术科学学院);A*STAR(新加坡科技研究局)
MIMIR: Masked Image Modeling for Mutual Information-based Adversarial Robustness
Radboud University Nijmegen(拉德博德大学尼姆维根分校);Vrije Universiteit Amsterdam(自由大学阿姆斯特丹);University of Zagreb Faculty of Electrical Engineering and Computing(Zagreb大学电子工程与计算学院)
Less is More: Understanding Word-level Textual Adversarial Attack via n-gram Frequency Descend
Southern University of Science and Technology(南方科技大学);Hong Kong University of Science and Technology(香港科技大学);Agency for Science, Technology and Research(新加坡科技研究局);Tencent AI Lab(腾讯AI实验室);OPPO Mobile Telecommunications Corp.(OPPO移动通信公司)
Word-level Textual Adversarial Attacking as Combinatorial Optimization
Tsinghua University(清华大学);Beijing National Research Center for Information Science and Technology(北京信息科学与技术国家研究中心);Huawei Noah’s Ark Lab(华为诺亚方舟实验室);Columbia University(哥伦比亚大学)
Probing the Robustness of Vision-Language Pretrained Models: A Multimodal Adversarial Attack Approach
School of Computing, Macquarie University(麦考瑞大学计算学院);Microsoft Corporation(微软公司);School of Information Technology, Deakin University(迪肯大学信息技术学院);Data61, CSIRO(联邦科学与工业研究组织Data61研究院)
Can LLMs Fool Graph Learning? Exploring Universal Adversarial Attacks on Text-Attributed Graphs
School of Cyberspace, Hangzhou Dianzi University(杭州电子科技大学信息学院);Hangzhou Dianzi University(杭州电子科技大学);Beihang University(北京航空航天大学);Institute of Computing Technology, Chinese Academy of Sciences(中国科学院计算技术研究所)
Multi-Granularity Tibetan Textual Adversarial Attack Method Based on Masked Language Model
School of Information Science and Technology, Tibet University(西藏大学信息科学技术学院);Collaborative Innovation Center for Tibet Informatization by MOE and Tibet Autonomous Region(教育部与西藏自治区西藏信息化协同创新中心);Engineering Research Center of Tibetan Information Technology, Ministry of Education(教育部藏信息技术工程研究中心)
RTD-Guard: A Black-Box Textual Adversarial Detection Framework via Replacement Token Detection
Institute of Information Engineering, Chinese Academy of Sciences(中国科学院信息工程研究所);School of Cyber Security, University of Chinese Academy of Sciences(中国科学院大学网络安全学院)
When and Where do Data Poisons Attack Textual Inversion?
College of Computing and Data Science, Nanyang Technological University, Singapore(计算与数据科学学院,南洋理工大学,新加坡);Rapid-Rich Object Search (ROSE) Lab, Nanyang Technological University, Singapore(快速丰富对象搜索(ROSE)实验室,南洋理工大学,新加坡)
Reversible Jump Attack to Textual Classifiers with Modification Reduction
School of Computer Science, University of Technology Sydney(悉尼科技大学计算机科学学院);School of Information Science and Technology, ShanghaiTech University(上海科技大学信息科学与技术学院)
TSCheater: Generating High-Quality Tibetan Adversarial Texts via Visual Similarity
Minzu University of China(中央民族大学);National Language Resource Monitoring & Research Center Minority Languages Branch(国家语言资源监测与研究中心少数民族语言分中心);Tibet University(西藏大学);Collaborative Innovation Center for Tibet Informatization by Ministry of Education & Tibet Autonomous Region(教育部-西藏自治区西藏信息化协同创新中心)