Don’t sweat the small stuff, classify the rest: Sample Shielding to protect text classifiers against adversarial attacks
Deep learning (DL) is being used extensively for text classification. However, researchers have demonstrated the vulnerability of such classifiers to adversarial attacks. Attackers modify the text in a way which misleads the classifier while keeping the original meaning close to intact. State-of-the-art (SOTA) attack algorithms follow the general principle of making minimal changes to the text so as to not jeopardize semantics. Taking advantage of this we propose a novel and intuitive defense strategy called Sample Shielding.It is attacker and classifier agnostic, does not require any reconfiguration of the classifier or external resources and is simple to implement. Essentially, we sample subsets of the input text, classify them and summarize these into a final decision. We shield three popular DL text classifiers with Sample Shielding, test their resilience against four SOTA attackers across three datasets in a realistic threat setting. Even when given the advantage of knowing about our shielding strategy the adversary’s attack success rate is <=10% with only one exception and often < 5%. Additionally, Sample Shielding maintains near original accuracy when applied to original texts. Crucially, we show that the ‘make minimal changes’ approach of SOTA attackers leads to critical vulnerabilities that can be defended against with an intuitive sampling strategy.
Code (1)
Tasks
text-classificationText ClassificationSimilar Papers 제목 키워드 기반
Don't sweat the small stuff, classify the rest: Sample Shielding to protect text classifiers against adversarial attacks
Deep learning (DL) is being used extensively for text classification. However, researchers have demonstrated the vulnerability of such classifiers to adversarial attacks. Attackers modify the text in a way which misleads…
text-classificationText ClassificationRobot Critics that Sweat the Small Stuff
Large vision-language models contain several priors about the world and object interactions, making them useful critics during inference to steer robot policies towards success. However, closed-loop robot manipulation re…
Robot ManipulationDon't Sweat the Small Stuff: Segment-Level Meta-Evaluation Based on Pairwise Difference Correlation
This paper introduces Pairwise Difference Pearson (PDP), a novel segment-level meta-evaluation metric for Machine Translation (MT) that address limitations in previous Pearson's $ρ$-based and and Kendall's $τ$-based meta…
Machine TranslationTransWeather: Transformer-based Restoration of Images Degraded by Adverse Weather Conditions
Removing adverse weather conditions like rain, fog, and snow from images is an important problem in many applications. Most methods proposed in the literature have been designed to deal with just removing one type of deg…
AllDecoderImage RestorationNeural Architecture Search+4ArchesWeather & ArchesWeatherGen: a deterministic and generative model for efficient ML weather forecasting
Weather forecasting plays a vital role in today's society, from agriculture and logistics to predicting the output of renewable energies, and preparing for extreme weather events. Deep learning weather forecasting models…
GPUWeather Forecasting