Source-linked AI summary

Boosting Adversarial Attacks with Momentum

Yinpeng Dong, Fangzhou Liao, Tianyu Pang, Hang Su, Jun Zhu, Xiaolin Hu, Jianguo Li

arXiv:1710.06081v3cs.LGstat.ML

TL;DR

Deep neural networks are vulnerable to adversarial examples, while existing attacks often struggle against black-box and defended models. The paper introduces momentum-based iterative attacks and ensemble methods, reporting stronger black-box transferability and vulnerability of ensemble-adversarially trained models.

  • Problem

    Existing attacks have low efficacy against black-box models, especially defended models, while query-based attacks require impractical target-model access and large numbers of queries.

    Source: §1 · p. 2
  • Method

    The paper accumulates gradients with momentum during iterative attacks and applies these attacks to ensembles of models to improve transferability.

    Source: §1 · p. 2, §3.2 · p. 4
  • Results

    Momentum iterative methods outperform one-step and vanilla iterative methods in black-box attacks, and ensemble-adversarially trained models remain vulnerable to the proposed black-box attacks.

    Source: §1 · p. 2, §6 · p. 8
  • Takeaways & Limitations

    The proposed attacks provide a benchmark for evaluating the robustness of deep models and defense methods.

    Source: §1 · p. 2, §6 · p. 8

    Optimization-based methods lack a guarantee that the perturbation satisfies the required L∞ or L2 bound, and single-model momentum attacks remain ineffective against some adversarially trained models.

    Source: §2.1 · p. 3, §4.2 · p. 5

Abstract

from arXiv · show

Deep neural networks are vulnerable to adversarial examples, which poses security concerns on these algorithms due to the potentially severe consequences. Adversarial attacks serve as an important surrogate to evaluate the robustness of deep learning models before they are deployed. However, most of existing adversarial attacks can only fool a black-box model with a low success rate. To address this issue, we propose a broad class of momentum-based iterative algorithms to boost adversarial attacks. By integrating the momentum term into the iterative process for attacks, our methods can stabilize update directions and escape from poor local maxima during the iterations, resulting in more transferable adversarial examples. To further improve the success rates for black-box attacks, we apply momentum iterative algorithms to an ensemble of models, and show that the adversarially trained models with a strong defense ability are also vulnerable to our black-box attacks. We hope that the proposed methods will serve as a benchmark for evaluating the robustness of various deep models and defense methods. With this method, we won the first places in NIPS 2017 Non-targeted Adversarial Attack and Targeted Adversarial Attack competitions.

1. Introduction

Adversarial examples expose security vulnerabilities in DNNs and help evaluate model robustness, but black-box attacks often have low efficacy. The paper introduces momentum-based iterative attacks and ensemble strategies to improve transferability and attack success.

1. Introduction

  • Adversarial examples are small, human-imperceptible perturbations that can induce inaccurate predictions and support robustness assessment before deployment.They also provide varied training data for DNN algorithms [5, 10].Source: §1 · p. 1
  • Black-box attacks are difficult because existing methods trade off white-box attack strength against transferability, while query-based alternatives require impractical access and queries.This motivates attacks that work without knowing the target model’s architecture or parameters and without querying it.Source: §1 · p. 2
  • Momentum iterative methods accumulate loss gradients across iterations to stabilize update directions and escape poor local maxima.The method is designed to improve adversarial-example success rates in both white-box and black-box settings.Source: §1 · p. 2
  • Momentum-based attacks outperform one-step and vanilla iterative methods in black-box attacks while retaining near-100% white-box success.MI-FGSM achieves more than twice I-FGSM’s success rates in most black-box attack cases.Source: §1 · p. 2
  • Ensemble attacks fuse information from multiple models to improve transferability, making adversarial examples more likely to fool other black-box models.The paper studies ensemble approaches because examples that fool multiple models are more likely to transfer [12].Source: §1 · p. 2
  • The paper reports that ensemble-adversarially trained models with strong defenses remain vulnerable to its black-box attacks.This finding raises security concerns and motivates using the attacks to benchmark model and defense robustness.Source: §1 · p. 2

2. Backgrounds

The background defines adversarial examples and reviews attack and defense methods. It contrasts one-step, iterative, and optimization-based attacks with adversarial training, emphasizing their differing norm constraints, white-box strength, and black-box transferability.

2. Backgrounds

  • An adversarial example stays within an allowed Lp perturbation bound but causes a classifier to misclassify an input or output a specified target label.Non-targeted attacks require f(x*) ≠ y, whereas targeted attacks require f(x*) = y* with y* ≠ y.Source: §2 · p. 2

2.1. Attack methods

  • FGSM applies one gradient-sign step under an L∞ constraint, while FGM generalizes the approach to an L2 constraint.Both methods use the gradient of the loss with respect to the input.Source: §2.1 · p. 2
  • Iterative methods repeatedly apply fast gradient updates with a small step size, producing stronger white-box attacks but typically worse transferability.The perturbation can be clipped into the ε-neighborhood or use α = ε/T over T iterations [10].Source: §2.1 · p. 3
  • Optimization-based methods directly optimize distance and misclassification, but they lack a guarantee that the perturbation satisfies the required L∞ or L2 bound and have poor black-box efficacy.Box-constrained L-BFGS is one example of this class [23].Source: §2.1 · p. 3

2.2. Defense methods

  • Adversarial training injects adversarial examples into training to improve robustness, while ensemble adversarial training adds samples generated by held-out models.The ensemble variant is described as robust against one-step and black-box attacks.Source: §2.2 · p. 3

3. Methodology

The methodology introduces momentum-based iterative attacks, extends them to ensemble models, and generalizes them across norm constraints and targeted settings.

3. Methodology

  • The methodology’s core algorithm iteratively updates an adversarial example under an L∞ constraint using perturbation size ϵ, iteration count T, and decay factor µ.The algorithm initializes the accumulated gradient to zero and returns the final iterate after T updates.Source: §3 · p. 3

3.1. Momentum iterative fast gradient sign method

  • Momentum accumulates normalized gradients across iterations to stabilize update directions, escape poor local maxima, and retain attack strength while improving transferability.MI-FGSM reduces to iterative FGSM when the decay factor µ is 0; each update uses the sign of the accumulated gradient with step size α.Source: §3.1 · pp. 3–4
  • The method addresses iterative FGSM’s tendency to overfit a source model by preserving transferability as iterations increase while remaining a strong white-box attack.FGSM can underfit when distortion is large, whereas iterative FGSM can overfit and become less transferable.Source: §3.1 · pp. 3–4

3.2. Attacking ensemble of models

  • Ensemble attacks combine multiple models because examples adversarial to several models are more likely to transfer to other black-box models.The paper compares fusion in logits, predictions, and loss, with the ensemble weights constrained to be nonnegative and sum to one.Source: §3.2 · p. 4
  • Ensemble-in-logits fuses model logits before computing softmax cross-entropy loss, aggregating detailed outputs to expose shared vulnerabilities.Logits are the inputs to softmax, and the resulting loss drives the momentum iterative update.Source: §3.2 · p. 4

3.3. Extensions

  • The momentum framework generalizes to L2-bounded and targeted attacks by replacing the current gradient with the accumulated gradient from previous steps.For L2 attacks, α = ϵ/T; targeted attacks minimize the loss for the chosen target class.Source: §3.3 · pp. 4–5

4. Experiments

Experiments show that momentum-based attacks preserve near-100% white-box success while substantially improving black-box transferability, especially when applied to model ensembles. Across parameter studies and competitions, the method stabilizes updates, reduces transferability loss, and defeats adversarially trained models in black-box settings.

4.2. Attacking a single model

  • MI-FGSM maintains near-100% white-box success and achieves more than twice I-FGSM’s success rates in most black-box cases.Source: §4.2 · p. 5

4.2.1 Decay factor µ

  • At µ = 1.0, MI-FGSM reaches the maximum black-box success rate in the tested decay-factor sweep.The sweep attacks Inc-v3 with ϵ = 16 and 10 iterations while varying µ from 0.0 to 2.0.Source: §4.2.1 · p. 6, Figure 2 · p. 6

4.2.2 The number of iterations

  • As iterations increase, I-FGSM’s black-box success declines whereas MI-FGSM remains high, alleviating the white-box-versus-transferability trade-off.Source: §4.2.2 · p. 6, Figure 3 · p. 6

4.2.3 Update directions

  • MI-FGSM produces more stable update directions than I-FGSM, reflected by higher cosine similarity between successive perturbations.The authors attribute improved transferability to escaping exceptional decision regions associated with poor local maxima.Source: §4.2.3 · p. 6, Figure 4 · p. 6

4.2.4 The size of perturbation

  • For black-box attacks, MI-FGSM’s success rate grows faster with perturbation size, allowing a smaller perturbation for a required success rate.Source: §4.2.4 · p. 7, Figure 5 · p. 7

4.3.1 Comparison of ensemble methods

  • Ensemble-in-logits consistently outperforms ensemble-in-predictions and ensemble-in-loss across tested white-box and black-box attacks.Source: §4.3.1 · p. 7, Table 2 · p. 7
  • MI-FGSM attacking an ensemble of Inc-v4, IncRes-v2, and Res-152 fools hold-out Inc-v3 with an 87.9% success rate.The result demonstrates high transferability against normally trained models.Source: §4.3.1 · p. 7

4.3.2 Attacking adversarially trained models

  • Ensemble momentum attacks fool the adversarially trained Inc-v3ens4 model with more than 40% of adversarial examples in the black-box setting.Source: §4.3.2 · p. 8, Table 3 · p. 8

5. Discussion

The paper frames adversarial-example generation as training and transferability as generalization. Under this analogy, momentum and model ensembles improve transferability similarly to momentum optimization and additional training data improving model generalization.

  • The paper treats adversarial-example generation as training on models and adversarial-example transferability as generalization to other models.Source: §5 · p. 8

6. Conclusion

The paper concludes that momentum-based iterative attacks effectively fool both white-box and black-box models, while ensemble attacks expose vulnerabilities in adversarially trained models. Supplementary experiments consistently support these methods under L2-bounded non-targeted and targeted settings.

6. Conclusion

  • Momentum-based iterative methods effectively fool both white-box and black-box models.Source: §6 · p. 8
  • Ensemble attacks using fused logits improve transferability and can fool models trained with ensemble adversarial training.Source: §6 · p. 8

Appendix

  • Supplementary experiments consistently demonstrate the effectiveness of momentum-based methods for L2-bounded non-targeted and targeted attacks.Source: Appendix · p. 10

A. Non-targeted attacks based on L2 norm bound

The L2-bounded non-targeted attack experiments define distance using the Euclidean norm and report results against an ensemble of white-box models and a hold-out black-box target.

A. Non-targeted attacks based on L2 norm bound

A.1. Attacking a single model

Single-model experiments compare FGM, I-FGM, and MI-FGM across seven networks, showing that MI-FGM preserves near-perfect white-box success while substantially improving black-box attacks.

A.1. Attacking a single model

  • The experiment evaluates FGM, I-FGM, and MI-FGM across seven networks, using 10 iterations for the iterative methods and decay factor 1.0 for MI-FGM.Source: §A.1 · p. 10
  • MI-FGM achieves a near 100% success rate on white-box models, matching I-FGM.Source: §A.1 · p. 10
  • MI-FGM significantly outperforms FGM and I-FGM in black-box attacks.Source: §A.1 · p. 10

A.2. Attacking an ensemble of models

Ensemble attacks use six source models and one hold-out target, with MI-FGM achieving strong transferability and about 60% success against adversarially trained models.

A.2. Attacking an ensemble of models

  • The experiment attacks an ensemble of six models while holding one model out as the black-box target, using equal ensemble weights.Source: §A.2 · p. 10
  • MI-FGM fools adversarially trained models with about 60% success rates in black-box attacks.Source: §A.2 · p. 10
  • MI-FGM achieves much higher black-box success than the other tested methods, indicating good transferability.Source: §A.2 · p. 10
  • Iterative methods achieve near 100% success on the ensemble of white-box models.Source: §A.2 · p. 10

B.1. L∞norm bound

Targeted attacks are evaluated under an L∞ norm bound using ensembles, because black-box targeted attacks require producing a specific target label. MI-FGSM substantially outperforms one-step FGSM against normally trained black-box models but remains ineffective against adversarially trained models.

B.1. L∞norm bound

  • MI-FGSM achieves success rates close to 100% on white-box models and above 10% on normally trained black-box models, whereas FGSM can hardly attack either ensemble.The evaluation uses targeted success rate, defined as the percentage of adversarial examples classified as the target label.Source: §B.1 · p. 10, Table 6 · p. 11
  • Targeted adversarial examples are generated for an ensemble of six models while one model is held out as the black-box target.The table reports success rates against both the white-box ensemble and the hold-out black-box model.Source: §B.1 · p. 10, Table 6 · p. 11
  • MI-FGSM cannot effectively generate targeted adversarial examples against adversarially trained models, leaving this an open issue for future research.Source: §B.1 · p. 11

B.2. L2 norm bound

Under an L2 norm bound, the experiments attack an ensemble of six models while holding out one model for black-box evaluation. MI-FGSM easily fools white-box models but remains ineffective against adversarially trained models in targeted black-box attacks.

B.2. L2 norm bound

  • The L2-norm experiments use Inc-v3, Inc-v4, IncRes-v2, Res-152, Inc-v3ens3, Inc-v3ens4, and IncRes-v2ens models.One model is held out while the other six are attacked as an equally weighted ensemble using FGM, I-FGM, or MI-FGM.Source: §B.2 · p. 11
  • The L2-norm evaluation uses 20 iterations for I-FGM and MI-FGM and a decay factor of 1.0 for MI-FGM.Source: §B.2 · p. 11
  • MI-FGM easily fools the white-box ensemble but cannot effectively fool adversarially trained models in targeted black-box attacks.The success rates are reported for both the white-box ensemble and the hold-out black-box target model.Source: Table 7 · p. 11, §B.2 · p. 12
Loading 1710.06081v3…