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

TextBugger: Generating Adversarial Text Against Real-world Applications

About

Deep Learning-based Text Understanding (DLTU) is the backbone technique behind various applications, including question answering, machine translation, and text classification. Despite its tremendous popularity, the security vulnerabilities of DLTU are still largely unknown, which is highly concerning given its increasing use in security-sensitive applications such as sentiment analysis and toxic content detection. In this paper, we show that DLTU is inherently vulnerable to adversarial text attacks, in which maliciously crafted texts trigger target DLTU systems and services to misbehave. Specifically, we present TextBugger, a general attack framework for generating adversarial texts. In contrast to prior works, TextBugger differs in significant ways: (i) effective -- it outperforms state-of-the-art attacks in terms of attack success rate; (ii) evasive -- it preserves the utility of benign text, with 94.9\% of the adversarial text correctly recognized by human readers; and (iii) efficient -- it generates adversarial text with computational complexity sub-linear to the text length. We empirically evaluate TextBugger on a set of real-world DLTU systems and services used for sentiment analysis and toxic content detection, demonstrating its effectiveness, evasiveness, and efficiency. For instance, TextBugger achieves 100\% success rate on the IMDB dataset based on Amazon AWS Comprehend within 4.61 seconds and preserves 97\% semantic similarity. We further discuss possible defense mechanisms to mitigate such attack and the adversary's potential countermeasures, which leads to promising directions for further research.

Jinfeng Li, Shouling Ji, Tianyu Du, Bo Li, Ting Wang• 2018

Related benchmarks

TaskDatasetResultRank
Adversarial AttackGLUE
SST-2 Speedup2.97
32
Natural Language UnderstandingGLUE
SST-2 Speedup2.29
32
Sentiment ClassificationLaptop14
Accuracy81.82
28
Adversarial Evasion AttackMGTBench Essay
ASR47
24
Adversarial Evasion AttackMGTBench WP
ASR77
24
Adversarial Evasion AttackMGTBench Reuters
ASR17
24
Adversarial Evasion AttackMGT-Academic Humanity
ASR15
22
Adversarial Evasion AttackMGT-Academic Social Science
Attack Success Rate (ASR)11
22
Adversarial Evasion AttackMGT Academic STEM
ASR6
22
Adversarial AttackPC
GL18.08
18
Showing 10 of 13 rows

Other info

Follow for update