[Paper Review] GAT: Generative Adversarial Training for Adversarial Example Detection and Robust Classification
This paper proposes GAT (Generative Adversarial Training), a principled method for detecting adversarial examples that remains robust under adaptive, norm-constrained white-box attacks. By training K binary classifiers to distinguish in-class samples from adversarially perturbed samples of other classes, and interpreting them as unnormalized density models, GAT enables both robust detection and generative classification, achieving state-of-the-art performance with mean $L_2$ distortion improvements of 5.65 on MNIST and 1.5 on CIFAR-10.
The vulnerabilities of deep neural networks against adversarial examples have become a significant concern for deploying these models in sensitive domains. Devising a definitive defense against such attacks is proven to be challenging, and the methods relying on detecting adversarial samples are only valid when the attacker is oblivious to the detection mechanism. In this paper we propose a principled adversarial example detection method that can withstand norm-constrained white-box attacks. Inspired by one-versus-the-rest classification, in a K class classification problem, we train K binary classifiers where the i-th binary classifier is used to distinguish between clean data of class i and adversarially perturbed samples of other classes. At test time, we first use a trained classifier to get the predicted label (say k) of the input, and then use the k-th binary classifier to determine whether the input is a clean sample (of class k) or an adversarially perturbed example (of other classes). We further devise a generative approach to detecting/classifying adversarial examples by interpreting each binary classifier as an unnormalized density model of the class-conditional data. We provide comprehensive evaluation of the above adversarial example detection/classification methods, and demonstrate their competitive performances and compelling properties.
Motivation & Objective
- Address the vulnerability of deep neural networks to adversarial examples in safety-critical applications such as healthcare, finance, and autonomous systems.
- Overcome the limitations of existing detection methods that fail under adaptive attacks where attackers are aware of the detection mechanism.
- Develop a principled detection framework that maintains high performance even when adversaries tailor attacks to evade detection.
- Explore generative modeling derived from the detection framework to improve interpretability and robustness of predictions.
- Demonstrate that models trained with GAT produce predictions with semantically meaningful features, unlike standard robust classifiers that can be fooled by unrecognizable inputs.
Proposed method
- Train K binary classifiers for a K-class classification problem, where the i-th classifier distinguishes clean samples of class i from adversarially perturbed samples of all other classes.
- At inference, use the original classifier to predict the input’s label $\hat{k}$, then apply the $\hat{k}$-th binary classifier to determine if the input is clean or adversarial.
- Interpret each binary classifier as an unnormalized density model of the class-conditional data distribution, enabling generative detection and classification.
- Use projected gradient descent (PGD) attacks with varying steps and step-sizes to evaluate robustness under adaptive threat models.
- Apply targeted attacks to generate adversarial samples and compare the semantic coherence of generated inputs between GAT-based and standard robust classifiers.
- Evaluate performance using AUC scores, FPR at 0.95 TPR, and mean $L_2$ distortion on perturbed inputs to measure detection robustness and generalization.
Experimental results
Research questions
- RQ1Can a detection framework remain effective under adaptive, white-box attacks where the attacker knows the detection mechanism?
- RQ2How does the performance of GAT compare to state-of-the-art detection methods under PGD attacks with varying attack configurations?
- RQ3To what extent do generative models derived from the detection framework improve interpretability of model predictions compared to standard robust classifiers?
- RQ4Do adversarial examples generated to fool GAT-based models retain more semantic meaning than those fooling standard robust classifiers?
- RQ5What is the impact of different attack hyperparameters (e.g., step size, number of steps) on the robustness of the proposed detection method?
Key findings
- The proposed GAT method achieves a mean $L_2$ distortion of 5.65 on MNIST under $L_2$-constrained PGD attacks, improving from the prior state-of-the-art of 3.68.
- On CIFAR-10, the method achieves a mean $L_2$ distortion of 1.5, surpassing the previous state-of-the-art of 1.1 under the same evaluation protocol.
- The AUC scores of the binary classifiers $d_1$ and $d_2$ remain above 0.92 and 0.95 respectively across various PGD attack configurations, demonstrating strong robustness.
- Generative detection outperforms integrated detection and state-of-the-art methods, particularly under combined attacks and higher perturbation limits.
- Adversarial samples generated to fool the generative classifier retain clear semantic features of the target class, whereas those fooling standard robust classifiers are often unrecognizable.
- The generative classifier produces high logit outputs only on inputs with interpretable, semantically meaningful features, unlike the softmax robust classifier, which is easily fooled by nonsense inputs.
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.