Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

Certified Robustness to Text Adversarial Attacks by Randomized [MASK]

About

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 methods across multiple datasets.

Jiehang Zeng, Xiaoqing Zheng, Jianhan Xu, Linyang Li, Liping Yuan, Xuanjing Huang• 2021

Related benchmarks

TaskDatasetResultRank
Sentiment ClassificationSST2 (test)
Accuracy81.6
214
Text ClassificationIMDB (test)
CA93.2
79
Sentiment AnalysisIMDB (test)
Clean Accuracy (%)94.33
37
AI-generated text detectionCross-genre (test)
OA87
32
AIGT detectionHC3 PWWS attack, AI to Human (in-domain)
Overall Accuracy100
28
AI-generated text detectionmixed-source AI -> Human GPT-2, GPT-Neo, GPT-J, LLaMa, GPT-3
Overall Accuracy94
26
AI-generated text detectionHC3 (test)
F1 (Overall)95.67
18
AIGT detectionHC3 Deep-Word-Bug attack Overall (in-domain)
OA100
14
AIGT detectionHC3 Pruthi attack Overall (in-domain)
Overall Accuracy100
14
AI-generated text detectionSeqXGPT-Bench cross-genre
Precision (AI)89.84
14
Showing 10 of 27 rows

Other info

Follow for update