Skip to main content
QUICK REVIEW

[Paper Review] Textual Adversarial Attack as Combinatorial Optimization

Yuan Zang, Chenghao Yang|arXiv (Cornell University)|Oct 27, 2019
Adversarial Robustness in Machine LearningComputer Science20 references11 citations
TL;DR

This paper proposes a novel word-level adversarial attack model that formulates textual adversarial attacks as a combinatorial optimization problem. By integrating a sememe-based word substitution method and a particle swarm optimization (PSO)-based search algorithm, the model achieves significantly higher attack success rates and generates higher-quality adversarial examples on BiLSTM and BERT models across three benchmark datasets, outperforming existing baselines.

ABSTRACT

Adversarial attacks are carried out to reveal the vulnerability of deep neural networks. Textual adversarial attacking is challenging because text is discrete and a small perturbation can bring significant change to the original input. Word-level attacking, which can be regarded as a combinatorial optimization problem, is a well-studied class of textual attack methods. However, existing word-level attack models are far from perfect, largely because unsuitable search space reduction methods and inefficient optimization algorithms are employed. In this paper, we propose a novel attack model, which incorporates the sememe-based word substitution method and particle swarm optimization-based search algorithm to solve the two problems separately. We conduct exhaustive experiments to evaluate our attack model by attacking BiLSTM and BERT on three benchmark datasets. Experimental results demonstrate that our model consistently achieves much higher attack success rates and crafts more high-quality adversarial examples as compared to baseline methods. Also, further experiments show our model has higher transferability and can bring more robustness enhancement to victim models by adversarial training. All the code and data of this paper can be obtained on this https URL.

Motivation & Objective

  • To address the limitations of existing word-level adversarial attack models that suffer from suboptimal search space reduction and inefficient optimization.
  • To improve the quality and success rate of adversarial examples in text by modeling word-level attacks as a combinatorial optimization problem.
  • To enhance transferability of adversarial examples and support more robust adversarial training for victim models.
  • To develop a method that balances semantic preservation and attack effectiveness in discrete text space.

Proposed method

  • The attack model treats word-level substitution as a combinatorial optimization problem to systematically explore perturbations in discrete text space.
  • A sememe-based word substitution method is employed to ensure semantic consistency by selecting synonyms grounded in semantic knowledge.
  • A particle swarm optimization (PSO)-based search algorithm is used to efficiently navigate the large and discrete search space of possible word substitutions.
  • The PSO algorithm iteratively improves candidate adversarial examples by updating particle positions based on individual and global best solutions.
  • The model integrates semantic constraints via sememe similarity to avoid syntactic or semantic degradation during perturbation.
  • The attack process is guided by a loss function that balances attack success and semantic preservation, with optimization driven by PSO.

Experimental results

Research questions

  • RQ1Can a combinatorial optimization framework improve the success rate and quality of word-level textual adversarial attacks?
  • RQ2How does the integration of sememe-based substitution enhance semantic consistency in adversarial examples?
  • RQ3To what extent does the PSO-based search strategy outperform traditional heuristic or greedy search methods in adversarial attack performance?
  • RQ4Does the proposed model exhibit higher transferability across different models and datasets compared to baseline methods?
  • RQ5Can the adversarial examples generated by this model improve the robustness of victim models through adversarial training?

Key findings

  • The proposed model achieves significantly higher attack success rates on BiLSTM and BERT models across three benchmark datasets compared to baseline methods.
  • The adversarial examples crafted by the model demonstrate higher semantic quality, preserving meaning while effectively fooling deep neural networks.
  • The model exhibits stronger transferability, successfully attacking unseen models with higher success rates than existing approaches.
  • Adversarial training using examples from this model leads to more robust victim models, indicating the method's utility in improving model robustness.
  • The combination of sememe-based substitution and PSO-based search outperforms both individual components and baseline attack strategies in both attack effectiveness and efficiency.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.