Certified Robustness to Text Adversarial Attacks by Randomized [MASK]
Jiehang Zeng, Xiaoqing Zheng, Jianhan Xu, Linyang Li, Liping Yuan and, Xuanjing Huang

TL;DR
This paper introduces a randomized masking defense method that certifiably guarantees text classifier robustness against synonym substitutions and character-level attacks without prior knowledge of attack strategies.
Contribution
It proposes a novel randomized smoothing approach that does not assume knowledge of adversary methods, enhancing robustness certification for text classifiers.
Findings
Certifies over 50% of texts on AGNEWS to be robust against 5-word perturbations.
Certifies over 50% of texts on SST2 to be robust against 2-word perturbations.
Outperforms existing defense methods across multiple datasets.
Abstract
Recently, few certified defense methods have been developed to provably guarantee the robustness of a text classifier to adversarial synonym substitutions. However, all existing certified defense methods assume that the defenders are informed of how the adversaries generate synonyms, which is not a realistic scenario. In this paper, we propose a certifiably robust defense method by randomly masking a certain proportion of the words in an input text, in which the above unrealistic assumption is no longer necessary. The proposed method can defend against not only word substitution-based attacks, but also character-level perturbations. We can certify the classifications of over 50% texts to be robust to any perturbation of 5 words on AGNEWS, and 2 words on SST2 dataset. The experimental results show that our randomized smoothing method significantly outperforms recently proposed defense…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsHate Speech and Cyberbullying Detection · Adversarial Robustness in Machine Learning
MethodsRandomized Smoothing
