TL;DR
This paper introduces a novel probabilistic framework for generating adversarial examples on discrete data, specifically focusing on text classification. They propose two attack methods, Greedy Attack and Gumbel Attack, which demonstrate significant success in fooling state-of-the-art models, even with minimal perturbations. Notably, character-based models are shown to be particularly vulnerable.
What Problem Does This Paper Address?
Adversarial attacks have been a significant area of research, primarily focusing on continuous data like images. However, many real-world applications involve discrete data, such as text, where traditional gradient-based attack methods are not directly applicable. Generating effective adversarial examples for discrete data is challenging because small changes can drastically alter the meaning or structure of the input, and finding such perturbations systematically is non-trivial. This paper aims to bridge this gap by developing robust adversarial attack methods for discrete data, particularly in the context of text classification.
Methods
The authors propose a two-stage probabilistic framework for generating adversarial examples on discrete data.
- Stage 1: Feature Selection: Identifies the most "important" features of the input to be perturbed.
- Stage 2: Perturbation: Replaces the selected features with values chosen from a dictionary.
Two instantiations of this framework are presented:
- Greedy Attack: This method iteratively selects features and their replacements to maximize the probability of a successful attack. It's described as a perturbation-based method that evaluates models with single-feature perturbed inputs.
- Gumbel Attack: This is a more scalable, learning-based method. It trains parametric sampling distributions for perturbations, aiming for better efficiency, especially for real-time or large-scale attacks. It utilizes the "Gumbel trick" to create differentiable approximations of categorical distributions, allowing for gradient-based optimization during training.
Datasets
The paper evaluates its methods on the following datasets:
- IMDB: A dataset for sentiment classification of movie reviews.
- AG's News: A corpus for text classification.
- Yahoo! Answers: A dataset for topic classification.
Key Insights and Ideas
- Discrete Data Vulnerability: The research highlights that discrete data, particularly in text classification, is susceptible to adversarial attacks, and character-based models are surprisingly vulnerable.
- Trade-offs in Attack Design: Greedy Attack and Gumbel Attack illustrate different trade-offs between attack success rate and computational efficiency. Greedy Attack achieves higher success but is more computationally intensive, while Gumbel Attack is more scalable but may have a slightly lower success rate.
- Human Perception vs. Model Vulnerability: The study suggests that adversarial perturbations generated by their methods are often imperceptible to humans, even though they can significantly fool machine learning models.
Key Results
- Greedy Attack Effectiveness: Greedy Attack achieves state-of-the-art attack success rates across various models, including word-based CNNs and LSTMs.
- Character-Based Model Vulnerability: The accuracy of character-based convolutional networks drops to the level of random selection by modifying only five characters through Greedy Attack.
- Gumbel Attack Efficiency: Gumbel Attack is presented as a scalable method with low model-evaluation complexity, making it suitable for large-scale attacks.
- Transferability: Adversarial examples generated by Greedy and Gumbel attacks show a degree of transferability across different model architectures, even when the model structure is significantly altered.
- Human Evaluation: Human evaluation indicates that adversarial examples generated by Greedy Attack are less likely to mislead humans compared to other methods, requiring fewer perturbations on average.
Limitations and Future Work
- Greedy Attack Query Inefficiency: Greedy Attack is relatively query inefficient, as its computational cost scales linearly with the number of features and the size of the sub-dictionary.
- Gumbel Attack Compromised Success Rate: Gumbel Attack, while efficient, compromises on the success rate of the attack compared to Greedy Attack.
- Fixed Perturbation Count for Gumbel Attack: A limitation of Gumbel Attack is that its training requires a pre-specified fixed number of features to be perturbed.
Future work suggested includes:
- Combining Greedy Attack and Gumbel Attack to achieve a balance of high efficiency and success rate.
- Modeling the number of features to be perturbed as a learnable random variable in Gumbel Attack.
- Exploring ways to improve the query efficiency of Greedy Attack.
Summary updated