[Paper Review] Are Generative Classifiers More Robust to Adversarial Attacks?
This paper proposes Deep Bayes, a deep generative classifier that models class-conditional data distributions using variational autoencoders and applies Bayesian inference for classification. It demonstrates that generative classifiers are more robust than discriminative counterparts against adversarial attacks, particularly when combined with likelihood-based detection methods that reject out-of-manifold inputs.
There is a rising interest in studying the robustness of deep neural network classifiers against adversaries, with both advanced attack and defence techniques being actively developed. However, most recent work focuses on discriminative classifiers, which only model the conditional distribution of the labels given the inputs. In this paper, we propose and investigate the deep Bayes classifier, which improves classical naive Bayes with conditional deep generative models. We further develop detection methods for adversarial examples, which reject inputs with low likelihood under the generative model. Experimental results suggest that deep Bayes classifiers are more robust than deep discriminative classifiers, and that the proposed detection methods are effective against many recently proposed attacks.
Motivation & Objective
- To investigate whether generative classifiers, which model the conditional distribution of inputs given labels, are more robust to adversarial attacks than discriminative classifiers.
- To address the poor performance of classical generative models like naive Bayes on image classification tasks by introducing a deep latent variable model (LVM) framework.
- To develop effective detection mechanisms for adversarial examples based on likelihood under the generative model and classifier confidence.
- To evaluate the robustness of the proposed method against multiple $ε$-bounded adversarial attacks, including white-box and black-box variants.
- To demonstrate the practical utility of combining generative and discriminative features for improved robustness in deep learning models.
Proposed method
- Proposes Deep Bayes, a deep Bayes classifier that uses a conditional deep latent variable model (LVM) to model $p(\bm{x}|\bm{y})$ via a variational autoencoder (VAE) framework.
- Employs importance sampling to approximate Bayes' rule for inference: $p(\bm{y}|\bm{x}) \propto \mathbb{E}_{q(\bm{z}|\bm{x})}[p(\bm{x}|\bm{y}, \bm{z})p(\bm{y})]$.
- Introduces three adversarial detection methods: (1) likelihood thresholding based on $p(\bm{x}|\bm{y}_c)$, (2) logit-based confidence scoring, and (3) KL divergence-based rejection.
- Trains the VAE using stochastic gradient variational Bayes (SGVB) with reparameterization gradients to optimize the variational lower bound.
- Fuses deep discriminative features (e.g., from VGG16) with generative features from the Deep Bayes model to enhance robustness.
- Applies standard adversarial attacks (FGSM, PGD, MIM) and evaluates robustness via clean and adversarial accuracy under $\ell_\infty$ perturbations.
Experimental results
Research questions
- RQ1Are generative classifiers more robust to adversarial attacks than discriminative classifiers, especially under the off-manifold hypothesis?
- RQ2Can deep generative models with learned latent representations outperform classical generative models (e.g., naive Bayes) on image classification tasks while maintaining robustness?
- RQ3How effective are likelihood-based and confidence-based detection methods in identifying adversarial examples?
- RQ4Does combining generative and discriminative features improve robustness against strong adversarial attacks on standard benchmarks?
- RQ5How does the robustness of Deep Bayes compare to Bayesian neural networks and other defense mechanisms under white-box and black-box attack settings?
Key findings
- On MNIST, the Deep Bayes classifier (DBX-128) achieved 98.6% test accuracy under $\ell_\infty$ FGSM attacks with $\epsilon = 0.5$, significantly outperforming the baseline VGG16.
- For the CIFAR-10 binary classification task, the fusion model (DBX-128) achieved 98.4% accuracy under PGD attacks with $\epsilon = 8/255$, surpassing the VGG16 baseline.
- The likelihood-based detection method reduced adversarial success rates to below 1% for $\epsilon = 0.3$ on MNIST, indicating strong rejection capability.
- GBZ-128 and GBY-128 variants achieved over 98% accuracy on MNIST under MIM attacks with $\epsilon = 0.5$, demonstrating robustness across diverse attack types.
- The proposed detection method based on output confidence (TP marginal) reduced adversarial accuracy to 41.5% on MNIST under FGSM with $\epsilon = 0.1$, showing effectiveness in identifying low-confidence adversarial inputs.
- Fusing discriminative features from VGG16 with generative features from Deep Bayes improved robustness on CIFAR-10, achieving 92.7% accuracy under PGD attacks with $\epsilon = 8/255$, compared to 84.8% for the baseline VGG16.
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.