Meta-adversarial perturbations: a one-step gradient update can mislead deep neural networks with high probabilityMeta Adversarial Perturbations
The authors propose meta-adversarial perturbation (MAP): an initial perturbation obtained via meta-learning that, after one step of gradient update on CIFAR-10, can attack 7 models; the authors state that it outperforms the FGSM and UAP baselines.
The attacker's goal is to make natural images misclassified; the attacker has access to the trained target model (using its gradient for a one-step gradient ascent update, a white-box setting); the perturbation magnitude is limited by l∞ distance ε=8/255; the victim system is an image classifier trained on CIFAR-10.
- Iterative adversarial attacks require solving a time-consuming optimization from scratch for each new data point; more steps yield stronger but slower attacks. The authors ask: can an initial perturbation be found that becomes a strong attack after one step of gradient update?
- Drawing on MAML meta-learning, a meta-adversarial perturbation (MAP) is trained as an initialization: the inner loop performs one step of gradient ascent on the perturbation to adapt to new data, and the outer loop updates the initial perturbation by maximizing the loss on the adapted perturbation, then projects it into the ε ball.
- Evaluated on 7 models on CIFAR-10, MAP after one-step update yields test set accuracy lower than the FGSM and UAP baselines for all models (Table 1); the authors state that it can transfer across architectures (Table 2), and that a MAP computed using only 10 images still reduces accuracy by about 15% more than FGSM (Figure 1).
- The authors state that future directions include extending to time-efficient adversarial training and evaluating on robust pre-trained models and other data modalities (Conclusion). The experiments were conducted only on CIFAR-10 image classification, with ε=8/255, under non-targeted attacks; the paper does not report the number of repetitions or variance.
- Evaluated models
- VGG11VGG19ResNet18ResNet50DenseNet121SENetMobileNetV2
- Benchmarks
- CIFAR-10
- Metrics
- accuracy(攻击下准确率,越低攻击越强)
The researchers propose meta-adversarial perturbations (MAP): after using them as initialization, natural images need only a one-step gradient ascent update to be misclassified with high probability, and the paper also provides an algorithm for computing such perturbations. The motivation is that although iterative attacks are strong, generating a perturbation for each new sample requires solving a time-consuming optimization problem from scratch. Extensive experiments show that state-of-the-art deep neural networks are vulnerable to meta-perturbations; such perturbations are neither specific to a particular image nor to a particular model, and a single perturbation transfers well across unseen data points and different network architectures.
Paper analysis
What problem does this paper attempt to solve?
The authors want to find an initial perturbation that becomes a strong attack after one step of gradient update, eliminating the need for per-point optimization from scratch.
Core problem: iterative adversarial attacks must solve a time-consuming optimization problem from scratch for each new data point; can a single initial perturbation be found that, after a one-step gradient ascent update, becomes an effective attack.
- Problem setting: DNNs are vulnerable to adversarial examples; iterative methods such as PGD, BIM, and MIM have high success rates, but producing a stronger attack usually requires more gradient ascent steps, and computation time is linear in the number of iterations (Introduction).
- Shortcomings of existing methods: FGSM needs only one step but is weaker; although UAP is image-agnostic, the authors point out that its effectiveness is proportional to the amount of data used, requiring a large amount of data to achieve a high fooling ratio, and that when transferring to very different architectures the fooling ratio is usually below 50% (Section 2.2).
- Core observation: drawing on the meta-learning idea of "learning a good initialization so as to quickly adapt to new tasks," the authors believe there exists a quasi-imperceptible meta adversarial perturbation such that natural images are misclassified with high probability after a one-step gradient ascent update (Abstract, Introduction).
- What the paper proposes: the concept of meta adversarial perturbation (MAP) and an algorithm to compute it; the algorithm is plug-and-play and compatible with any gradient-based iterative attack method; and experiments verify its image-agnostic and model-agnostic properties (Introduction).
- Threat model:
- Goal: non-targeted attack, making natural images misclassified (Section 4.1).
- Knowledge: the attack uses the gradient of the target model for a one-step update (Eq. (1), (5)), a white-box setting; the paper does not use terms such as black-box.
- Capability: the perturbation magnitude is limited by l∞ distance ε=8/255; only one step of gradient ascent is performed when adapting to new data.
- Victim system: 7 image classification models trained on CIFAR-10 (Section 4).
What related research exists?
Related work falls into three categories: data-dependent perturbations, universal adversarial perturbations (UAP), and meta-learning; the authors use FGSM and UAP as baselines.
Data-dependent adversarial perturbations
- FGSM (Goodfellow, Shlens, and Szegedy 2014) — generates a perturbation by maximizing the loss in one step using the sign of the gradient (Eq. (1)).
- Iterative methods (Kurakin et al. 2016; Madry et al. 2017; Dong et al. 2018; Xie et al. 2019) — multi-step updates improve attack success rate (Eq. (2)), but the authors point out that more iterations are more time-consuming.
- DeepFool (Moosavi-Dezfooli, Fawzi, and Frossard 2016), C&W (Carlini and Wagner 2017), EAD (Chen et al. 2018) — construct adversarial examples point by point by solving an optimization problem.
Universal adversarial perturbations (UAP)
- UAP (Moosavi-Dezfooli et al. 2017) — shows that an image-agnostic single perturbation exists that, added to most data points, fools the classifier, with no further optimization needed for new data points. The authors point out two shortcomings: achieving a high fooling ratio requires a large amount of data; and when transferring across architectures the fooling ratio is usually below 50%, more so when the target and surrogate architectures differ greatly (Section 2.2).
Meta-learning
- MAML (Finn, Abbeel, and Levine 2017) — model-agnostic meta-learning that learns an initialization that can quickly adapt to new tasks; the method in this paper is inspired by it (Section 3).
- First-order/efficient meta-learning (Li et al. 2017; Nichol, Achiam, and Schulman 2018; Raghu et al. 2019; Rajeswaran et al. 2019, etc.) — reduces the Hessian computation overhead in the meta-gradient; the authors consider that the computational efficiency of MAP can benefit from these methods (Section 3).
Work close to this paper
- Yuan et al. 2021 (Meta gradient adversarial attack) — uses a meta-learning-like architecture to improve the cross-model transferability of adversarial examples; Yang et al. 2021 (Model-Agnostic Meta-Attack) — learns an optimizer parameterized by a recurrent neural network to generate attacks. The authors state that the goals of both differ from this paper: this paper seeks a single perturbation that can efficiently adapt to new data points (Section 2.2).
Baselines and benchmarks: the experiments use FGSM and UAP as baselines, compared on CIFAR-10, with the baselines using the same hyperparameters as MAP (where applicable) (Section 4). The authors position this paper as: unlike data-dependent methods that optimize point by point, and unlike UAP which requires no adaptation — MAP is an initialization perturbation that "can adapt to new data with one or a few update steps."
How does the paper address this problem?
Train the initial perturbation v with MAML-style bilevel optimization: the inner loop performs one step of gradient ascent to adapt to the data, and the outer loop maximizes the loss after adaptation.
Overall idea: analogize "finding a good attack initialization" to MAML's "finding a good model initialization", and use bilevel optimization to train a meta-adversarial perturbation (MAP) v, such that after one (or a few) steps of gradient ascent adaptation to new data it becomes a strong attack.
Problem formulation
- Given a trained model f (parameters θ), cross-entropy loss L, and dataset D, the goal is to learn a randomly initialized perturbation v such that the adapted v' on new data causes "most" x∼µ to be misclassified, i.e., f(x+v′) ≠ f(x) for "most" x∼µ (Eq. (4)).
- One-step adaptation is defined as v′ = v + α∇v L(fθ, B+v) (Eq. (5)), where the step size α is a hyperparameter that can be viewed as γ in Eq. (2); the method can be directly extended to multi-step updates.
- Meta-objective: maxv 𝔼B∼ D L(fθ, B′ + (v + α∇v L(fθ, B+v))) (Eq. (6)), i.e., optimize over v, but the loss is computed on the adapted v' using a new batch B'.
Algorithm procedure (Algorithm 1)
- Randomly initialize v.
- Inner loop: for a sampled minibatch B, compute v' = v + α∇v L(fθ, B+v).
- Outer loop: sample another batch B', update v ← v + β∇v L(fθ, B'+v') with stochastic gradient ascent (Eq. (7)), where β is the meta step size.
- Projection v ← Πε(v), projecting perturbations exceeding ε back into the feasible set; the authors note that a smaller ε makes the attack less perceptible to human eyes.
Key design choices
- plug-and-play: the authors state that the algorithm is compatible with any gradient-based iterative attack method; adding MAP at the initialization suffices, without multi-step updates (Introduction).
- meta-gradient overhead: the update involves gradients of gradients, requiring Hessian-vector products and additional backpropagation; the authors point out that with multiple inner steps the computation and memory overhead are large, and efficiency can be improved with first-order approximation methods following MAML (Section 3).
Default experimental setup (Section 4)
- Dataset CIFAR-10; following the UAP protocol, the set D used to compute the perturbation contains 100 training set images (about 10 per class on average), and the test set T contains 10,000 images.
- ε=8/255 (l∞); when computing MAP, the inner loop uses one-step update with fixed step size α=ε=8/255, and the optimizer is FGSM.
- Attack type: non-targeted attacks; FGSM and MAP perform one step of gradient ascent per image, while UAP is added directly to the test set without adaptation (Section 4.1).
What experiments did the paper conduct?
MAP is compared with FGSM and UAP on 7 models on CIFAR-10; after a one-step attack MAP gives lower accuracy on all, and cross-architecture transfer and D-size ablation were also tested.
Experimental Setup
- Models under test: VGG11, VGG19, ResNet18, ResNet50, DenseNet121, SENet, MobileNetV2, 7 trained models in total (Section 4).
- Dataset: CIFAR-10; D is 100 training images (about 10 per class), T is 10,000 test images; T does not participate in perturbation computation (Section 4, 4.1).
- Baselines: FGSM, UAP, using the same hyperparameters where applicable (Section 4).
- Metric: classification accuracy under attack, lower means a stronger attack; reported on D and T respectively (Table 1).
- Attack configuration: non-targeted attack; ε=8/255 (l∞); both MAP and FGSM use a one-step update, UAP is added directly without adaptation (Section 4.1).
- Number of repetitions: not reported in the paper.
Main Results
According to Table 1 (accuracy on test set T, lower means a stronger attack; the D row is accuracy on the set used to compute the perturbation):
Swipe horizontally to read the table
Attack VGG11 VGG19 ResNet18 ResNet50 DenseNet121 SENet MobileNetV2 Clean (T) 92.6% 93.7% 95.3% 95.4% 95.4% 95.8% 94.1% FGSM (T) 29.3% 49.4% 41.4% 35.7% 35.5% 38.2% 32.8% UAP (T) 88.9% 83.3% 45.8% 33.5% 25.5% 32.5% 45.8% MAP (T) 22.0% 36.1% 20.3% 17.4% 20.8% 17.6% 16.3% - The authors state that MAP outperforms the baselines on all networks, "roughly 10-20% improvement" (Section 4.1); according to the T column of Table 1, the accuracy drop of MAP relative to FGSM is 13.3 percentage points on VGG19 and 21.1 percentage points on ResNet18.
- The authors state that a one-step attack using only MAP as initialization causes lower robustness than naive FGSM, and that a single MAP is effective on all test data (image-agnostic).
- UAP performs poorly on some models (e.g., T accuracy 88.9% on VGG11); the authors consider this consistent with the existing finding that "UAP requires a large amount of data to achieve a high fooling ratio."
Cross-architecture Transfer (Table 2)
- What was tested: MAP was generated on each of the 7 architectures, a one-step update was performed on all 7 models, and accuracy on T was measured, forming a 7×7 transfer matrix; the bottom row gives the FGSM results without MAP initialization.
- Results: the accuracy of all transfer cells (16.1%–37.2%) is lower than the FGSM bottom row of the corresponding column (29.3%–49.4%); e.g., MAP generated on DenseNet121 transferred to ResNet50 gives 16.1%, lower than the 35.7% of FGSM in that column.
- Authors' interpretation: the authors state that MAP generalizes well and is model-agnostic; they give the example that when attacking other networks with MAP computed on DenseNet121, it is stronger than methods starting from scratch (Section 4.2).
D-size Ablation (Figure 1)
- What was tested: MAP was computed with ResNet18, varying the number of images in D (10, 100, 500, 1000, 5000), and accuracy on T was measured and compared with FGSM.
- Results: the authors report that a larger D brings better results; MAP computed with only 10 images still lowers accuracy by about 15% more than naive FGSM (the vertical axis of Figure 1 is Accuracy (%), the horizontal axis is Number of Images; specific curve values are not labeled with numbers in the figure).
- Authors' interpretation: the authors state that this verifies the generalization ability of MAP to unseen data points and that it can be computed on a very small training set (Section 4.3).
Other Ablations and Analysis
- Apart from the above D-size ablation, the paper has no other ablations; no parameter experiments on multi-step updates, different α/β, or different ε are reported.
- Negative/exception: UAP reaches T accuracy of 88.9% and 83.3% on VGG11 and VGG19 respectively, close to the Clean level; the authors attribute this to UAP requiring a large amount of data (Section 4.1).
What are some points that can be further explored?
The authors state that future work can extend to efficient adversarial training, robust pre-trained models and other modalities; the experiments cover only CIFAR-10 image classification.
Limitations and future directions noted by the authors
- The authors plan to extend this idea to time-efficient adversarial training (Section 5 Conclusion and Future Work).
- The authors state that evaluating the attack on robust pre-trained models is another research direction (Section 5).
- The authors state that evaluating on different data modalities is also a research direction (Section 5).
- The authors believe that the computational efficiency of MAP can benefit from a class of methods following MAML that reduce the computational overhead of the Hessian (Section 3).
Scope of experiments
- The evaluated models are VGG11, VGG19, ResNet18, ResNet50, DenseNet121, SENet, and MobileNetV2, 7 in total, all CIFAR-10 image classifiers (Section 4).
- The dataset is only CIFAR-10; D is 100 training images and T is 10,000 test images (Section 4).
- The attack configuration is non-targeted attack, ε=8/255 (l∞), one-step gradient update; the baselines are FGSM and UAP (Section 4.1).
- The transfer experiments cover a 7×7 source-target architecture matrix, with one-step update performed on the target model (Table 2).
- The paper does not report the number of repeated experiments, variance, or statistical tests, nor results under multi-step updates, different ε, or different step sizes.
Summarize the main content of the paper
The authors propose the meta adversarial perturbation MAP: an attack initialization obtained by meta-learning that can attack 7 CIFAR-10 models with a one-step update and can transfer across architectures.
An adversarial attack paper: to address the time-consuming problem of per-point optimization from scratch in iterative attacks, the authors propose meta-adversarial perturbation (MAP)—an initial perturbation trained with MAML-style bilevel optimization that, once added to data and updated with one step of gradient ascent, becomes a strong attack.
- Method: the inner loop performs one step of gradient ascent on the perturbation to adapt to a new batch, and the outer loop updates the initial perturbation by maximizing the loss on the adapted perturbation, then projects it into the ε ball; the authors call the algorithm plug-and-play and compatible with any gradient-based iterative attack.
- Main results: on CIFAR-10, with ε=8/255, under non-targeted attacks, the one-step MAP attack reduces the accuracy of 7 models on test set T to 16.3%–36.1%, lower than FGSM (29.3%–49.4%) and UAP (25.5%–88.9%) (Table 1).
- Transferability: in the 7×7 source-target transfer matrix, the accuracy of all cells is lower than the corresponding FGSM bottom row; the authors state that MAP is not only image-agnostic but also model-agnostic (Table 2).
- Data efficiency: a MAP computed using only 10 training images still reduces accuracy by about 15% more than FGSM (Figure 1, ResNet18).
- Authors' conclusion: the authors state that the experiments show SOTA deep networks are vulnerable to MAP attacks, and plan to extend in the future to time-efficient adversarial training, robust pre-trained models and other data modalities (Section 5).