不要担心小东西,分类其余的:示例屏蔽保护文本分类器免受对抗攻击
Don't sweat the small stuff, classify the rest: Sample Shielding to protect text classifiers against adversarial attacks
摘要:
深度学习(DL)正被广泛用于文本分类。然而,研究人员已经证明了这种分类器对对抗攻击的脆弱性。攻击者以误导分类器的方式修改文本,同时保持原始含义接近完整。最先进的(SOTA)攻击算法遵循对文本进行最小更改的一般原则,以便不危及语义。利用这一点,我们提出了一种新颖而直观的防御策略,称为样本屏蔽。它与攻击者和分类器无关,不需要重新配置分类器或外部资源,并且易于实现。从本质上讲,我们对输入文本的子集进行采样,对它们进行分类,并将其总结为最终决策。我们使用Sample Shielding屏蔽了三个流行的DL文本分类器,在现实的威胁环境中测试了它们对三个数据集上的四个SOTA攻击者的弹性。即使在了解我们的屏蔽策略的优势下,对手的攻击成功率也<=10%,只有一个例外,通常<5%。此外,样本屏蔽在应用于原始文本时保持接近原始的准确性。至关重要的是,我们表明,SOTA攻击者的“做最小的改变”的方法导致关键的漏洞,可以防御一个直观的采样策略。
英文摘要:
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.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。