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

SAFER: A Structure-free Approach for Certified Robustness to Adversarial Word Substitutions

About

State-of-the-art NLP models can often be fooled by human-unaware transformations such as synonymous word substitution. For security reasons, it is of critical importance to develop models with certified robustness that can provably guarantee that the prediction is can not be altered by any possible synonymous word substitution. In this work, we propose a certified robust method based on a new randomized smoothing technique, which constructs a stochastic ensemble by applying random word substitutions on the input sentences, and leverage the statistical properties of the ensemble to provably certify the robustness. Our method is simple and structure-free in that it only requires the black-box queries of the model outputs, and hence can be applied to any pre-trained models (such as BERT) and any types of models (world-level or subword-level). Our method significantly outperforms recent state-of-the-art methods for certified robustness on both IMDB and Amazon text classification tasks. To the best of our knowledge, we are the first work to achieve certified robustness on large systems such as BERT with practically meaningful certified accuracy.

Mao Ye, Chengyue Gong, Qiang Liu• 2020

Related benchmarks

TaskDatasetResultRank
Text ClassificationAGNews
Clean Accuracy93.7
118
Text ClassificationIMDB (test)
CA93.5
79
Sentiment AnalysisIMDB (test)
Clean Accuracy (%)93.75
37
Text ClassificationIMDB
Clean Accuracy93.2
32
Topic ClassificationAGNews
Clean Acc Change (Abs %)-3.7
16
Rumor DetectionPheme
DeepWordBug ASR47.32
16
Harmful Content DetectionPHEME New Attacks: ExplainDrive (test)
Accuracy77.27
15
Sentiment AnalysisMR
Clean Accuracy Change1.3
6
Natural Language InferenceMNLI
Clean Accuracy Change-5.5
6
Sentiment AnalysisSST-2
Clean Accuracy Delta-3.1
6
Showing 10 of 11 rows

Other info

Follow for update