[Paper Review] Fast Gradient Projection Method for Text Adversary Generation and Adversarial Training
This paper proposes Fast Gradient Projection Method (FGPM), a synonym substitution-based adversarial attack for text that is ~20× faster than prior methods while maintaining comparable attack success rates. By integrating FGPM into adversarial training, the authors develop ATFL—a defense method that enhances model robustness and reduces adversarial transferability.
Adversarial training is the most empirically successful approach in improving the robustness of deep neural networks for image classification.For text classification, however, existing synonym substitution based adversarial attacks are effective but not efficient to be incorporated into practical text adversarial training. Gradient-based attacks, which are very efficient for images, are hard to be implemented for synonym substitution based text attacks due to the lexical, grammatical and semantic constraints and the discrete text input space. Thereby, we propose a fast text adversarial attack method called Fast Gradient Projection Method (FGPM) based on synonym substitution, which is about 20 times faster than existing text attack methods and could achieve similar attack performance. We then incorporate FGPM with adversarial training and propose a text defense method called Adversarial Training with FGPM enhanced by Logit pairing (ATFL). Experiments show that ATFL could significantly improve the model robustness and block the transferability of adversarial examples.
Motivation & Objective
- To address the inefficiency of existing synonym substitution-based adversarial attacks in text adversarial training.
- To develop a gradient-based method that respects lexical, grammatical, and semantic constraints in discrete text space.
- To enable fast and effective adversarial training for text classification models.
- To reduce the transferability of adversarial examples across models.
Proposed method
- Proposes Fast Gradient Projection Method (FGPM), a gradient-based attack that performs synonym substitution while respecting text constraints.
- Uses a projection step to ensure each word substitution maintains grammatical correctness and semantic similarity.
- Integrates FGPM into adversarial training to generate adversarial examples during model optimization.
- Enhances adversarial training with logit pairing to stabilize learning and improve robustness.
- Employs a fast iterative optimization scheme to accelerate convergence compared to prior methods.
- Leverages gradient information from the model's loss to guide efficient word substitutions in discrete text space.
Experimental results
Research questions
- RQ1Can a gradient-based method be efficiently adapted to discrete text input space with lexical and grammatical constraints?
- RQ2How does FGPM compare in speed and attack success rate to existing synonym substitution-based text attack methods?
- RQ3To what extent does integrating FGPM into adversarial training improve model robustness?
- RQ4Does the proposed ATFL defense reduce the transferability of adversarial examples across models?
Key findings
- FGPM achieves approximately 20× faster attack generation compared to existing synonym substitution-based methods.
- FGPM maintains attack performance comparable to state-of-the-art text adversarial attack methods.
- The proposed ATFL defense significantly improves model robustness on benchmark text classification datasets.
- ATFL effectively reduces the transferability of adversarial examples across different models.
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.