arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1812.05271cs.CRcs.CLcs.LG
收藏

TextBugger:生成针对真实应用程序的对抗性文本

TextBugger: Generating Adversarial Text Against Real-world Applications

Zhejiang University(浙江大学);Alibaba-Zhejiang University Joint Research Institute of Frontier Technologies(阿里巴巴-浙江大学前沿技术联合研究院);University of Illinois Urbana-Champaign(伊利诺伊大学厄巴纳-香槟分校);Lehigh University(理海大学)

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

摘要:

基于深度学习的文本理解(DLTU)是各种应用背后的骨干技术,包括问答、机器翻译和文本分类。尽管DLTU非常受欢迎,但其安全漏洞在很大程度上仍然是未知的,这是高度关注的,因为它越来越多地用于安全敏感的应用程序,如情感分析和有毒内容检测。在本文中,我们表明DLTU本质上容易受到对抗性文本攻击,其中恶意制作的文本会触发目标DLTU系统和服务的不当行为。具体来说,我们提出了TextBugger,一个用于生成对抗性文本的通用攻击框架。与之前的作品相比,TextBugger在以下方面有很大的不同:(i)有效-它在攻击成功率方面优于最先进的攻击;(ii)规避-它保留了良性文本的实用性,94.9%的敌对文本被人类读者正确识别;(iii)高效-它生成的敌对文本的计算复杂性与文本长度呈次线性关系。我们在一组用于情感分析和有毒内容检测的真实DLTU系统和服务上对TextBugger进行了经验评估,证明了其有效性、规避性和效率。例如,TextBugger在基于Amazon AWS Comprehend的IMDB数据集上在4.61秒内实现了100\%的成功率,并保留了97\%的语义相似度。我们进一步讨论了可能的防御机制,以减轻这种攻击和对手的潜在对策,这导致有前途的方向,进一步研究。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑