[Paper Review] Towards Defending against Adversarial Examples via Attack-Invariant Features
This paper proposes an adversarial noise removing network (ARN) that restores natural inputs by learning attack-invariant features (AIFs) across diverse adversarial attacks. By disentangling AIFs via adversarial feature learning and normalizing their latent space to reduce bias, ARN achieves superior robustness—especially against unseen and adaptive attacks—outperforming state-of-the-art defenses on CIFAR-10 and MNIST under pixel- and spatial-constrained attacks.
Deep neural networks (DNNs) are vulnerable to adversarial noise. Their adversarial robustness can be improved by exploiting adversarial examples. However, given the continuously evolving attacks, models trained on seen types of adversarial examples generally cannot generalize well to unseen types of adversarial examples. To solve this problem, in this paper, we propose to remove adversarial noise by learning generalizable invariant features across attacks which maintain semantic classification information. Specifically, we introduce an adversarial feature learning mechanism to disentangle invariant features from adversarial noise. A normalization term has been proposed in the encoded space of the attack-invariant features to address the bias issue between the seen and unseen types of attacks. Empirical evaluations demonstrate that our method could provide better protection in comparison to previous state-of-the-art approaches, especially against unseen types of attacks and adaptive attacks.
Motivation & Objective
- Address the generalization gap in adversarial defense, where models trained on seen attacks fail against unseen or adaptive attacks.
- Overcome the bias in learned features caused by uneven distribution of attack types during training.
- Develop a pre-processing defense mechanism that restores natural examples by extracting invariant semantic features across attacks.
- Improve robustness against both pixel-constrained and spatially-constrained attacks, especially for previously unseen attack types.
- Enable effective defense without requiring access to the target model’s architecture or gradients during inference.
Proposed method
- Propose an autoencoder-based ARN framework that separates attack-invariant features (AIFs) from adversarial noise using a paired encoder and discriminator.
- Use adversarial feature learning: the discriminator distinguishes attack-specific information (e.g., attack type) from the encoded AIF space, while the encoder learns features indistinguishable from the discriminator’s perspective.
- Introduce a normalization term in the AIF latent space to match feature distributions to a multivariate Gaussian prior, reducing bias between seen and unseen attacks.
- Train the decoder to minimize pixel-wise reconstruction loss between synthesized examples and original natural inputs, enabling accurate restoration of clean data.
- Jointly optimize the encoder and decoder to learn robust, generalizable AIFs that preserve semantic content while removing adversarial perturbations.
- Use multiple attack types (e.g., PGD, AA, STA) during training to improve coverage of potential unseen attacks and enhance generalization.
Experimental results
Research questions
- RQ1Can attack-invariant features (AIFs) be effectively learned across diverse adversarial attacks to enable robust defense?
- RQ2How does normalizing the AIF latent space mitigate bias between seen and unseen attack types?
- RQ3To what extent can ARN generalize to unseen and adaptive attacks not seen during training?
- RQ4Does the removal of adversarial noise via AIFs make restored examples indistinguishable from natural examples to detection models?
- RQ5How does ARN compare to state-of-the-art defenses in terms of robust accuracy across different attack types and constraints?
Key findings
- ARN achieves state-of-the-art robust accuracy on CIFAR-10, with 88.7% against unseen AutoAttack (AA N), 86.9% against PGD N, and 85.1% against spatial transform attack (STA N), significantly outperforming prior methods.
- The ablation study confirms that removing the normalization loss ($\mathcal{L}_{nor}$) causes a sharp drop in robustness—e.g., accuracy against unseen STA N drops from 85.1% to 64.3%—demonstrating its critical role in generalization.
- When the attack-invariant feature learning loss ($\mathcal{L}_{att}$) is removed, ARN’s robustness collapses, with accuracy dropping below 50% on unseen attacks, proving its necessity for disentangling AIFs.
- Adversarial example detection via local intrinsic dimensionality (LID) shows only 1.26% recall on MNIST and 8.48% on CIFAR-10 for restored examples, indicating they are nearly indistinguishable from natural data.
- The method generalizes well to cross-model defense: ARN-preprocessed examples maintain high robustness even when tested on different target models, confirming its pre-processing effectiveness.
- The model remains robust under adaptive attacks, demonstrating that AIFs capture semantic invariance that resists perturbation patterns from evolving attack strategies.
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.