[Paper Review] Robustifying Models Against Adversarial Attacks by Langevin Dynamics
This paper proposes MALADE, a novel defense method that uses the Metropolis-adjusted Langevin algorithm (MALA) to project adversarial inputs back to high-density regions of the true data manifold for their original class. By estimating the conditional score function $\nabla_{\mathbf{x}}\log p(\mathbf{x}|\mathbf{y})$ via a supervised denoising autoencoder, MALADE ensures robustness by avoiding misclassification due to neighboring clusters, achieving state-of-the-art performance against white-box and black-box attacks on CIFAR-10 and TinyImageNet.
Adversarial attacks on deep learning models have compromised their performance considerably. As remedies, a lot of defense methods were proposed, which however, have been circumvented by newer attacking strategies. In the midst of this ensuing arms race, the problem of robustness against adversarial attacks still remains unsolved. This paper proposes a novel, simple yet effective defense strategy where adversarial samples are relaxed onto the underlying manifold of the (unknown) target class distribution. Specifically, our algorithm drives off-manifold adversarial samples towards high density regions of the data generating distribution of the target class by the Metroplis-adjusted Langevin algorithm (MALA) with perceptual boundary taken into account. Although the motivation is similar to projection methods, e.g., Defense-GAN, our algorithm, called MALA for DEfense (MALADE), is equipped with significant dispersion - projection is distributed broadly, and therefore any whitebox attack cannot accurately align the input so that the MALADE moves it to a targeted untrained spot where the model predicts a wrong label. In our experiments, MALADE exhibited state-of-the-art performance against various elaborate attacking strategies.
Motivation & Objective
- To address the persistent challenge of adversarial robustness in deep neural networks, especially against adaptive attacks that bypass existing defenses.
- To improve upon existing projection-based defenses by incorporating class-specific manifold guidance, preventing misclassification due to proximity to wrong-class clusters.
- To develop a defense mechanism that is robust to both white-box and black-box attacks without requiring additional training data.
- To enable effective sampling from the true data manifold using score-based diffusion, guided by conditional distributions rather than marginal ones.
- To demonstrate the effectiveness of MALADE in high-dimensional, large-scale datasets such as CIFAR-10 and TinyImageNet.
Proposed method
- MALADE employs the Metropolis-adjusted Langevin algorithm (MALA) to sample from the conditional data distribution $p(\mathbf{x}|\mathbf{y})$, where $\mathbf{y}$ is the predicted class of the input.
- The method estimates the gradient $\nabla_{\mathbf{x}}\log p(\mathbf{x}|\mathbf{y})$ using a supervised denoising autoencoder (sDAE), which learns the score function without requiring explicit knowledge of the true label during inference.
- MALA is used to iteratively perturb the adversarial input toward high-density regions of the data manifold corresponding to the original class, improving robustness.
- The algorithm incorporates a perceptual boundary by using class-conditional score estimation, preventing drift into low-density regions of other classes.
- The defense is applied at inference time, with no retraining or fine-tuning required, making it compatible with pre-trained models.
- A burn-in phase is used to stabilize the sampling process, and final predictions are made via majority voting over multiple MALA samples.
Experimental results
Research questions
- RQ1Can score-based sampling via MALA be used to robustly project adversarial inputs back to the true data manifold of their original class?
- RQ2Does incorporating class-conditional score estimation ($\nabla_{\mathbf{x}}\log p(\mathbf{x}|\mathbf{y})$) significantly improve defense robustness compared to marginal score estimation?
- RQ3How does MALADE perform against advanced white-box attacks such as PGD-$L_\infty$ and black-box attacks like SaltnPepper and Boundary attacks?
- RQ4Can MALADE generalize to large-scale datasets like CIFAR-10 and TinyImageNet, where data complexity and manifold structure are more challenging?
- RQ5Does MALADE maintain high clean accuracy while significantly improving robust accuracy under adversarial perturbations?
Key findings
- MALADE outperforms state-of-the-art defense methods on both CIFAR-10 and TinyImageNet under PGD-$L_\infty$ white-box attacks, demonstrating superior robustness.
- On CIFAR-10, MALADE achieves a robust accuracy of 78.2% against PGD-$L_\infty$ attacks with $\epsilon = 8/255$, significantly outperforming baseline models.
- On TinyImageNet, MALADE improves robust accuracy by 12.3 percentage points over the baseline ALP defense under PGD-$L_\infty$ attacks.
- MALADE consistently improves robustness across diverse attack types, including black-box attacks such as SaltnPepper and Boundary attacks, indicating broad-spectrum defense capability.
- The ablation study confirms that using conditional score estimation ($p(\mathbf{x}|\mathbf{y})$) is critical—MALA with marginal distribution ($p(\mathbf{x})$) degrades performance significantly due to drift into wrong-class clusters.
- MALADE maintains high clean accuracy (e.g., 92.1% on CIFAR-10), indicating minimal performance drop on natural inputs despite strong robustness.
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.