Text-CRS: A Generalized Certified Robustness Framework for Textual Adversarial AttacksText-CRS: A Generalized Certified Robustness Framework against Textual Adversarial Attacks
The researchers propose Text-CRS, a generalized certified robustness framework for NLP based on randomized smoothing, for defending against four types of word-level textual adversarial attacks: synonym substitution, word reordering, insertion, and deletion. Addressing the limitation that existing NLP certification schemes can only certify ℓ0 perturbations in synonym substitution attacks, the framework represents each word-level adversarial operation as a combination of permutation and embedding transformations, proposes new smoothing theorems, derives robustness bounds in the permutation space and embedding space, and selects appropriate noise distributions based on the numerical relationships of discrete words. Experiments on multiple language models and datasets show that Text-CRS covers all four types of word-level adversarial operations and significantly improves certified accuracy; the authors state that it provides the first benchmark for certified accuracy and radius across the four types of operations, and that it surpasses existing state-of-the-art certification methods on synonym substitution attacks.