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

Searching for a Search Method: Benchmarking Search Algorithms for Generating NLP Adversarial Examples

University of Virginia(弗吉尼亚大学)

Jin Yong Yoo, John X. Morris, Eli Lifland, Yanjun Qi

英文摘要:

We study the behavior of several black-box search algorithms used for generating adversarial examples for natural language processing (NLP) tasks. We perform a fine-grained analysis of three elements relevant to search: search algorithm, search space, and search budget. When new search algorithms are proposed in past work, the attack search space is often modified alongside the search algorithm. Without ablation studies benchmarking the search algorithm change with the search space held constant, one cannot tell if an increase in attack success rate is a result of an improved search algorithm or a less restrictive search space. Additionally, many previous studies fail to properly consider the search algorithms' run-time cost, which is essential for downstream tasks like adversarial training. Our experiments provide a reproducible benchmark of search algorithms across a variety of search spaces and query budgets to guide future research in adversarial NLP. Based on our experiments, we recommend greedy attacks with word importance ranking when under a time constraint or attacking long inputs, and either beam search or particle swarm optimization otherwise. Code implementation shared via https://github.com/QData/TextAttack-Search-Benchmark

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

↑