[Paper Review] Efficient Combinatorial Optimization for Word-level Adversarial Textual Attack
This paper proposes a local search algorithm (LS) for word-level adversarial textual attacks, formulating the optimization problem as set maximization with partition matroid constraints. LS achieves state-of-the-art performance with up to 10x fewer queries and higher attack success rates, while also improving adversarial example quality, transferability, and robustness gains in adversarial training.
Over the past few years, various word-level textual attack approaches have been proposed to reveal the vulnerability of deep neural networks used in natural language processing. Typically, these approaches involve an important optimization step to determine which substitute to be used for each word in the original input. However, current research on this step is still rather limited, from the perspectives of both problem-understanding and problem-solving. In this paper, we address these issues by uncovering the theoretical properties of the problem and proposing an efficient local search algorithm (LS) to solve it. We establish the first provable approximation guarantee on solving the problem in general cases.Extensive experiments involving 5 NLP tasks, 8 datasets and 26 NLP models show that LS can largely reduce the number of queries usually by an order of magnitude to achieve high attack success rates. Further experiments show that the adversarial examples crafted by LS usually have higher quality, exhibit better transferability, and can bring more robustness improvement to victim models by adversarial training.
Motivation & Objective
- To address the lack of theoretical understanding and efficient solving methods for the combinatorial optimization step in word-level adversarial attacks.
- To develop a query-efficient optimization algorithm that balances high attack success rate and low query cost.
- To establish the first provable approximation guarantee for word-level adversarial attack optimization in general cases.
- To enable plug-and-play integration with existing word substitution methods and future attack frameworks.
- To improve the quality, transferability, and robustness benefits of adversarial examples in training.
Proposed method
- Formulates the word-level adversarial attack optimization as a set maximization problem with partition matroid constraints, proven to be NP-hard.
- Proposes a local search algorithm (LS) that iteratively selects substitutions based on marginal gain while considering three types of perturbations: synonym, sememe-based, and context-aware.
- Employs a termination condition based on diminishing marginal gains to avoid excessive queries.
- Introduces a performance approximation bound, providing the first general theoretical guarantee for this problem class.
- Designs the algorithm to be independent of word substitution methods, enabling plug-and-play use with any existing substitution technique.
- Uses a greedy selection strategy that prioritizes substitutions offering the highest immediate improvement in attack success while maintaining grammaticality and naturalness.
Experimental results
Research questions
- RQ1What is the theoretical hardness of the word-level adversarial optimization problem, and can we establish a performance guarantee?
- RQ2Can we design a query-efficient optimization algorithm that achieves high attack success rates without relying on gradient information?
- RQ3How does the proposed LS algorithm compare to existing methods in terms of query efficiency, success rate, and adversarial example quality?
- RQ4To what extent do adversarial examples generated by LS improve model robustness through adversarial training?
- RQ5Can LS be generalized across different word substitution methods and NLP models?
Key findings
- LS reduces the number of model queries by up to an order of magnitude compared to baseline methods while achieving higher attack success rates across 5 NLP tasks and 26 models.
- Adversarial examples crafted by LS exhibit higher grammaticality and naturalness, leading to better-quality perturbations.
- LS-generated examples show superior transferability across different models and datasets, especially under black-box settings.
- Adversarial training using LS-crafted examples leads to larger robustness improvements than training with examples from baseline methods.
- The algorithm maintains strong performance even after adversarial training, indicating it is less susceptible to defensive fine-tuning than baseline approaches.
- The theoretical approximation bound of LS provides the first provable performance guarantee for word-level adversarial optimization in general cases.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.