[Paper Review] Effective and Imperceptible Adversarial Textual Attack via Multi-objectivization
This paper proposes HydraText, a multi-objective evolutionary algorithm that formulates adversarial textual attack as a dual-objective optimization problem balancing attack success and imperceptibility. By integrating imperceptibility as a primary objective, HydraText generates more natural, human-like adversarial examples with competitive attack success rates across both score-based and decision-based settings, outperforming prior methods in fluency and stealthiness.
The field of adversarial textual attack has significantly grown over the last few years, where the commonly considered objective is to craft adversarial examples (AEs) that can successfully fool the target model. However, the imperceptibility of attacks, which is also essential for practical attackers, is often left out by previous studies. In consequence, the crafted AEs tend to have obvious structural and semantic differences from the original human-written text, making them easily perceptible. In this work, we advocate leveraging multi-objectivization to address such issue. Specifically, we reformulate the problem of crafting AEs as a multi-objective optimization problem, where the attack imperceptibility is considered as an auxiliary objective. Then, we propose a simple yet effective evolutionary algorithm, dubbed HydraText, to solve this problem. To the best of our knowledge, HydraText is currently the only approach that can be effectively applied to both score-based and decision-based attack settings. Exhaustive experiments involving 44237 instances demonstrate that HydraText consistently achieves competitive attack success rates and better attack imperceptibility than the recently proposed attack approaches. A human evaluation study also shows that the AEs crafted by HydraText are more indistinguishable from human-written text. Finally, these AEs exhibit good transferability and can bring notable robustness improvement to the target model by adversarial training.
Motivation & Objective
- Address the lack of imperceptibility in existing adversarial textual attack methods, which often produce unnatural or grammatically flawed perturbations.
- Reframe adversarial attack generation as a multi-objective optimization problem to simultaneously maximize attack success and minimize perceptibility.
- Develop a unified framework applicable to both score-based and decision-based black-box attack settings, which are common in real-world deployment.
- Improve the realism of adversarial examples by ensuring they remain semantically and syntactically close to human-written text.
- Enable the use of adversarial examples for robustness evaluation and adversarial training by generating high-quality, transferable perturbations.
Proposed method
- Reformulate adversarial attack generation as a multi-objective optimization problem with two objectives: attack success (maximization) and imperceptibility (maximization).
- Use a novel evolutionary algorithm, HydraText, to explore the search space of word substitutions while maintaining grammaticality and semantic coherence.
- Define the attack success objective as the model’s confidence in predicting the target label (score-based) or as an infinite reward if the target label is achieved (decision-based).
- Define the imperceptibility objective using sentence-level similarity metrics (e.g., BLEU, BERTScore) to ensure the adversarial example remains close to the original in semantics and structure.
- Employ a non-dominated sorting mechanism to maintain a diverse set of high-quality solutions across both objectives, favoring those that are both effective and natural.
- Support both score-based and decision-based settings by adapting the objective function accordingly, enabling broader applicability without requiring model gradients.
Experimental results
Research questions
- RQ1Can multi-objectivization effectively balance attack success and imperceptibility in adversarial textual attacks?
- RQ2How does HydraText compare to existing state-of-the-art methods in terms of attack success rate and naturalness across different NLP models?
- RQ3To what extent can HydraText generate adversarial examples that are indistinguishable from human-written text in human evaluation?
- RQ4Does HydraText maintain strong performance across both score-based and decision-based attack settings?
- RQ5Can the adversarial examples generated by HydraText improve the robustness of target models through adversarial training?
Key findings
- HydraText achieves competitive attack success rates—73.90% on BERT, 74.66% on Infersent, and 70.93% on ESIM in the score-based setting—while significantly outperforming baselines in imperceptibility.
- In the decision-based setting, HydraText achieves 82.57% success on BERT, 84.27% on Infersent, and 79.12% on ESIM, with higher similarity scores (0.571, 0.610, 0.601) than all baselines.
- Human evaluation confirms that HydraText-generated adversarial examples are more natural and indistinguishable from human-written text compared to baselines.
- The adversarial examples crafted by HydraText exhibit strong transferability and effectively improve model robustness when used in adversarial training.
- HydraText reduces the number of queries required per attack (e.g., 244.4 on BERT in score-based setting) compared to some baselines, indicating improved query efficiency.
- In targeted attack settings, HydraText maintains high success rates (e.g., 82.57% on BERT) while achieving superior similarity scores, demonstrating its effectiveness in constrained attack scenarios.
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.