TL;DR
This paper introduces two novel black-box adversarial attack methods, MCMC and CASCADA, designed to fool deep learning models that process categorical sequences. These methods overcome challenges like non-differentiability and input constraints by operating in an embedded space, demonstrating effective attacks on real-world datasets like financial transactions and medical records.
What Problem Does This Paper Address?
Deep learning models, while powerful, are vulnerable to adversarial attacks – subtle input modifications that cause misclassification without being noticeable to humans. While much research has focused on image-based attacks, categorical sequences (like text, transaction histories, or medical codes) are also susceptible, and attacking them presents unique challenges. These include the discrete nature of the data (making gradient-based attacks difficult) and real-world constraints on how sequences can be altered (e.g., you can't remove a past transaction, only add one). This paper aims to develop effective adversarial attack strategies for these categorical sequence models, addressing these specific challenges.
Methods
The authors propose two main black-box adversarial attack methods:
- MCMC Walk: This approach adapts Markov Chain Monte Carlo (MCMC) methods. It generates new adversarial sequences by taking steps in the embedded space. The "energy" function guiding these steps balances the similarity between the original and generated sequences with the drop in the classifier's confidence. This method is versatile and can be applied in various scenarios.
- CASCADA (Categorical Sequences Continuous Adversarial Attack): This method offers a more sophisticated, end-to-end approach. It leverages differentiable versions of sequence distance metrics (specifically, a learned "Deep Levenshtein" distance) and a surrogate classifier that operates in the embedded space. This "continuous relaxation" allows the use of standard gradient-based optimization techniques to find adversarial sequences that are similar to the original but fool the target classifier. CASCADA computes the Word Error Rate (WER) and runs a beam search only once, making it computationally more efficient than MCMC for certain tasks.
Both methods utilize a seq2seq model with an attention mechanism for generating adversarial sequences.
Datasets
The authors evaluated their methods on three types of datasets:
- NLP: AG News dataset, focusing on topic identification.
- Bank Transactions: A dataset for predicting gender based on transaction sequences.
- Medical Insurance: A dataset for fraud detection based on patient visit histories, including drug codes and amounts spent.
The paper notes that for the transactions dataset, sequences are constructed from transaction type, Merchant Category Code (MCC), and transaction amount bins, with a mean sequence length of 10.25.
Key Insights and Ideas
- Operating in the Embedded Space is Key: The core insight is that by moving adversarial attacks into the continuous, differentiable "embedded space" of sequence representations, the challenges posed by discrete input data can be overcome.
- Balancing Similarity and Misclassification: A crucial aspect of effective adversarial attacks is generating sequences that are perceptually similar to the original while still fooling the model. The proposed methods explicitly balance these two objectives.
- Differentiable Surrogates for Discrete Problems: The CASCADA approach's use of differentiable surrogates for both sequence distance and classification is a significant innovation, enabling gradient-based optimization where it was previously difficult.
- Versatility Beyond NLP: The paper demonstrates that these attacks are applicable not just to text but also to other forms of categorical sequences like financial transactions and medical records, highlighting the broad applicability of the techniques.
Key Results
The paper presents results showing that their proposed methods (MCMC and CASCADA) generate reasonable adversarial sequences that are close to the original ones but effectively fool machine learning models.
- Performance Comparison: In Table 2, embedding-based approaches (MCMC and CASCADA) are shown to perform better than baseline attacks like HotFlip across various datasets (Transactions Gender, AG News, Healthcare Insurance) in terms of ROC AUC drop, accuracy drop, and normalized NAD (a metric combining accuracy drop and WER).
- Efficiency: CASCADA is noted as being computationally less expensive than naive and MCMC attacks for deep seq2seq architectures.
- Robustness: Figure 2 suggests that the seq2seq model used for generation is robust to hyperparameter variations, with mean WER and accuracy drop showing an expected inverse relationship.
Limitations and Future Work
- Hyperparameter Sensitivity: The selection of hyperparameters can affect attack performance, although the authors explored a wide range of configurations to find robust settings.
- Computational Cost: While CASCADA is more efficient, adversarial attack generation can still be computationally intensive, especially for large datasets or complex models.
- Future Work: The paper suggests that further research could explore more sophisticated differentiable surrogates and investigate adversarial attacks in more complex sequence generation tasks. The authors also mention the possibility of constructing adversarial attacks with a target direction and training embeddings for sequences.
Summary updated