Skip to content

Enhancing adversarial attacks with momentumBoosting Adversarial Attacks with Momentum

arXiv· arXiv:1710.06081· Yinpeng Dong, Fangzhou Liao, Tianyu Pang, Hang Su, Jun Zhu, Xiaolin Hu, Jianguo LiDepartment of Computer Science and Technology, Tsinghua Lab of Brain and Intelligence; Beijing National Research Center for Information Science and Technology, BNRist Lab; Tsinghua University; Intel Labs ChinaIndexed by this site · 27 days ago· Originally publishedSelected AttacksSelectedAttention45

Quick read

Attacks

Based on the paper PDF (AI-generated); refer to the original

The authors propose the momentum iterative attack MI-FGSM, which achieves more than twice the black-box success rate of I-FGSM on ImageNet and breaks ensemble adversarial training models.

Threat modelAttacker goal: generate adversarial examples that cause the model to misclassify (non-targeted) or output a specified label (targeted), with the L∞ or L2 norm bounded. Knowledge: black-box, without knowing the target model's structure and parameters, and without querying; generating samples requires access to the gradients of one or more local models. Victim system: ImageNet classifiers, including normally trained models and models trained with ensemble adversarial training.

Questions
Existing adversarial attacks have low success rates in black-box settings: iterative and optimization-based methods have poor transferability, single-step methods are weak in white-box settings, and adversarially trained models are harder to break. The authors aim to improve black-box attack success rates without querying the target model.
Methods
Introducing a momentum term into the iterative gradient attack yields MI-FGSM: accumulating historical gradients with a decay factor to stabilize the update direction and escape poor local maxima; then performing an ensemble attack by weighted fusion of the logits of multiple models, and extending to the L2 norm and targeted attacks.
Experiments and results
On 1000 ImageNet images, MI-FGSM achieves near 100% white-box success rates, and in most cases its black-box success rate is more than twice that of I-FGSM; a six-model ensemble attack achieves a black-box success rate of 40.3% against the adversarially trained model Inc-v3ens4. The method won first place in both the non-targeted and targeted adversarial attack competitions at NIPS 2017.
Limitations and future work
The authors note that targeted black-box attacks struggle to deceive adversarially trained models, leaving this for future research (Appendix B.1). The experiments are limited to 7–8 image classification models on ImageNet, with perturbation norms L∞ and L2; the paper does not report evaluations against detection-based defenses or adaptive attacks.
Experimental setupInception v3 (Inc-v3)、Inception v4 (Inc-v4) et al. · ILSVRC 2012 validation set(1000 张图像)、NIPS 2017 Adversarial Attacks and Defenses Competition · success rate(误分类率,%)
Evaluated models
Inception v3 (Inc-v3)Inception v4 (Inc-v4)Inception Resnet v2 (IncRes-v2)Resnet v2-152 (Res-152)Inc-v3ens3Inc-v3ens4IncRes-v2ens
Benchmarks
ILSVRC 2012 validation set(1000 张图像)NIPS 2017 Adversarial Attacks and Defenses Competition
Metrics
success rate(误分类率,%)
AI summaryand selection rationaleResearchers from Tsinghua University and Intel Labs China propose the momentum iterative attack method MI-FGSM, which introduces a momentum term into the iterative attack to generate adversarial examples with stronger transferability. Its mechanism is to accumulate, during iteration, a velocity vector in the direction of the loss function gradient, stabilizing the update direction and escaping poor local maxima. On ImageNet, under the setting of ϵ=16 and 10 iterations, MI-FGSM achieves a success rate close to 100% against white-box models, and in most black-box attack scenarios its success rate exceeds twice that of I-FGSM; after fusing the logits of Inc-v4, IncRes-v2 and Res-152 for an ensemble attack, it achieves an 87.9% success rate against the held-out Inc-v3. The paper also shows that strong defense models obtained through ensemble adversarial training are likewise vulnerable under black-box attacks; adversarial examples generated by an ensemble of the remaining six models achieve a success rate of over 40% against Inc-v3 ens4. The method won first place in both the non-targeted and targeted adversarial attack competitions at NIPS 2017, and the authors hope it will serve as a benchmark for evaluating the robustness of deep models and defense methods.

Researchers from Tsinghua University and Intel Labs China propose the momentum iterative attack method MI-FGSM, which introduces a momentum term into the iterative attack to generate adversarial examples with stronger transferability. Its mechanism is to accumulate, during iteration, a velocity vector in the direction of the loss function gradient, stabilizing the update direction and escaping poor local maxima. On ImageNet, under the setting of ϵ=16 and 10 iterations, MI-FGSM achieves a success rate close to 100% against white-box models, and in most black-box attack scenarios its success rate exceeds twice that of I-FGSM; after fusing the logits of Inc-v4, IncRes-v2 and Res-152 for an ensemble attack, it achieves an 87.9% success rate against the held-out Inc-v3. The paper also shows that strong defense models obtained through ensemble adversarial training are likewise vulnerable under black-box attacks; adversarial examples generated by an ensemble of the remaining six models achieve a success rate of over 40% against Inc-v3 ens4. The method won first place in both the non-targeted and targeted adversarial attack competitions at NIPS 2017, and the authors hope it will serve as a benchmark for evaluating the robustness of deep models and defense methods.

Why it was selectedThe paper introduces a momentum term into iterative adversarial attacks to improve transferability, exceeding I-FGSM by more than two times in success rate in most black-box scenarios and breaking ensemble adversarially trained models.

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    To address the low black-box success rates of existing adversarial attacks, the authors propose momentum iterative attacks and ensemble attacks.

    Core problem: existing adversarial attacks have low success rates in black-box settings, especially against models with defense mechanisms, and the authors aim to improve black-box attack success rates without querying the target model.

    • Setting and importance: deep neural networks are vulnerable to adversarial examples, and the transferability of adversarial examples makes black-box attacks feasible in real-world applications; the authors consider this a practical security problem, and attacks can also serve as a means to evaluate model robustness before deployment.
    • Shortcomings of existing methods: the authors state that adversarial examples generated by optimization-based and iterative methods have poor transferability, while single-step gradient methods have better transferability but low white-box success rates, creating a trade-off between attack capability and transferability; ensemble adversarial training improves robustness, and most existing methods cannot break it in a black-box setting. Papernot et al. [16] train a substitute model with adaptive queries, but this requires full prediction confidence of the target model and a large number of queries, which the authors consider impractical on large-scale datasets such as ImageNet.
    • Core observation: the authors introduce momentum into the iterative process, arguing that a velocity vector accumulating gradient directions can stabilize the update direction and escape poor local maxima, thereby alleviating the trade-off between white-box attack capability and transferability; if a sample can simultaneously deceive multiple models, it is more likely to transfer to other black-box models [12].
    • Proposed in this paper: a class of momentum iterative gradient attack methods (MI-FGSM and its L2 and targeted variants), and an ensemble attack scheme that fuses the logits of multiple models.
    • Threat model:
      • Goal: generate non-targeted adversarial examples that cause the classifier to misclassify, or targeted adversarial examples that cause the classifier to output a specified target label, with perturbations satisfying an Lp norm constraint (L∞ and L2 are used in experiments).
      • Knowledge: black-box—the structure and parameters of the target model are unknown, and the target model is further not queried.
      • Capability: when generating adversarial examples, the gradients of one or more local models (including normally trained models) are accessible.
      • Victim systems: ImageNet image classifiers, including normally trained models and models trained with ensemble adversarial training.
  2. What related research exists?

    Related work is divided into three categories: attack methods, defense methods, and black-box transfer attacks; this paper uses FGSM and I-FGSM as baselines.

    Attack Methods (Sec 2.1)

    • Single-step gradient methods: FGSM (Goodfellow et al. [5]) perturbs in one step along the sign of the loss gradient; FGM is its L2-norm generalization. The paper states that such methods have relatively good transferability but low white-box success rates.
    • Iterative methods: I-FGSM (Kurakin et al. [9]) iterates multiple times with a small step size. The paper states that iterative methods are stronger in white-box settings but have worse transferability [10, 24].
    • Optimization-based methods: L-BFGS (Szegedy et al. [23]) and Carlini & Wagner [1] directly optimize the perturbation distance. The paper states that such methods cannot guarantee that the L∞/L2 distance is below the required value, and their black-box performance is poor; the experimental section explains that they are not directly compared because the perturbation distance cannot be explicitly controlled.

    Defense Methods (Sec 2.2)

    • Adversarial training: injecting adversarial examples into the training process [5, 10, 24], the most studied defense; the paper states that it cannot defend against black-box attacks.
    • Ensemble adversarial training (Tramèr et al. [24]): augmenting training data with adversarial examples from other held-out models; the paper states that it is robust to single-step attacks and black-box attacks, and it is the main target of this paper's attacks.
    • Other defense attempts: the paper lists various defenses such as perturbation detection [13] and distillation [17], without discussing them one by one.

    Black-box and Transfer Attacks

    • Papernot et al. [16]: train a substitute model with adaptive queries, turning a black-box attack into a white-box attack; the paper criticizes it for requiring full prediction confidence and a large number of queries, making it impractical at ImageNet scale.
    • Liu et al. [12]: studies transferable adversarial examples and black-box attacks, and proposes the idea of attacking an ensemble of multiple models; this paper's ensemble in predictions scheme comes from that work, and on this basis it proposes logits fusion.

    Baselines and Benchmarks: the baseline methods are FGSM (and its L2 variant FGM) and I-FGSM (and I-FGM); the dataset is 1000 images randomly selected from the ILSVRC 2012 validation set (each belonging to one of 1000 categories and correctly classified by all models under test).

    Positioning of This Paper: the authors state that this is the first work to show that strong defense models obtained by ensemble adversarial training can also be broken by black-box attacks; methodologically, it introduces momentum into iterative attacks and proposes an ensemble attack with logits fusion, positioned as a benchmark attack for evaluating model and defense robustness.

  3. How does the paper address this problem?

    Introducing a momentum term into iterative FGSM to stabilize the update direction, then performing an ensemble attack by fusing the logits of multiple models.

    Overall idea: in the iterative gradient attack, accumulate historical gradients with a decay factor (momentum) to stabilize the update direction and escape poor local maxima, so that adversarial examples have both white-box attack strength and transferability; then perform an ensemble attack by weighted fusion of the logits of multiple models, further improving the black-box success rate. The methods are collectively called momentum iterative gradient-based methods.

    Problem formulation

    • Non-targeted attack: solve argmaxx∗ J(x∗, y), s.t. |x∗ − x|∞ ≤ ϵ, where J is the cross-entropy loss and ε is the perturbation size.
    • Targeted attack: minimize the loss J(x*, y*) so that the model outputs the attacker-specified target label y*.

    MI-FGSM algorithm (Algorithm 1)

    • Momentum accumulation: gt+1 = μ · gt + (∇x J(xt∗, y))/(|∇x J(xt∗, y)|1), where g is the accumulated gradient and µ is the decay factor; when µ = 0 it degenerates to I-FGSM.
    • Update sample: x* is updated along the sign(g) direction with step size α = ε/T, where T is the number of iterations.
    • Gradient normalization: at each iteration the current gradient is normalized by its L1 distance; the authors state the reason is that they noticed variation in gradient scale across iterations (any distance metric would work).

    Ensemble attack (Algorithm 2)

    • Logits fusion: weighted sum of the logits of K models l(x) = Σ wk·lk(x), with non-negative weights summing to 1, and the loss is the softmax cross-entropy on the fused logits. The authors argue that logits preserve the logarithmic relationships among probability predictions and aggregate the fine-grained outputs of each model, making their vulnerabilities easier to find.
    • Comparison schemes: ensemble in predictions (averaging predicted probabilities, from [12]) and ensemble in loss (averaging the losses of each model); the three differ only in where the multi-model outputs are combined.

    Extension to L2 and targeted attacks

    • MI-FGM (L2 norm): the update direction is changed to g itself divided by its L2 norm, α = ε/T.
    • Targeted variant: the accumulated gradient is changed to the gradient of the target-label loss, and updates are along the negative sign direction (subtracting α·sign(g) or α·g/‖g‖₂).
    • The authors state that any iterative method can be extended to a momentum variant by replacing the current gradient with the historical accumulated gradient.

    Key parameters

    • Main experiments: ε = 16 (pixel values [0, 255]), I-FGSM/MI-FGSM with 10 iterations, µ = 1.0; 20 iterations when attacking adversarially trained models.
    • Competition configuration: non-targeted attack ensembles 8 models, with the first 7 weighted 1/7.25 and Inc-v3adv weighted 0.25/7.25; targeted attack uses two graph structures by perturbation size, with 40 or 20 iterations, µ = 1.0.
  4. What experiments did the paper conduct?

    Tested on 1000 ImageNet images across 7 models; in most cases the black-box success rate of MI-FGSM is more than twice that of I-FGSM.

    Experimental Setup

    • Models under test: 4 normally trained models Inc-v3, Inc-v4, IncRes-v2, Res-152; 3 ensemble adversarial training models Inc-v3ens3, Inc-v3ens4, IncRes-v2ens (the paper calls the latter three "adversarially trained models"); the competition configuration additionally includes Inc-v3adv.
    • Dataset: 1000 images randomly selected from the ILSVRC 2012 validation set, belonging to 1000 categories, all correctly classified by all models under test.
    • Baselines: FGSM (FGM for the L2 version) and I-FGSM (I-FGM for the L2 version); optimization-based methods were not directly compared because the perturbation distance cannot be explicitly controlled.
    • Metric: success rate (%), i.e., the misclassification rate of the model on adversarial images; for targeted attacks, the proportion classified as the target label.
    • Hyperparameters: ε = 16 (pixels [0, 255]), 10 iterations (20 iterations when attacking adversarially trained models), µ = 1.0; L2 experiments set the L2 bound to 16√N.
    • Evaluation method: automatically determined by the model's output label, with no human or LLM review; the paper does not report the number of repetitions.

    Main Results

    Single-model attacks (non-targeted, L∞, ε = 16, 10 iterations, µ = 1.0; according to Table 1, success rates are in %, * denotes white-box):

    Swipe horizontally to read the table

    Source modelMethodInc-v3Inc-v4IncRes-v2Res-152Inc-v3ens3Inc-v3ens4IncRes-v2ens
    Inc-v3FGSM72.3*28.226.225.311.310.94.8
    Inc-v3I-FGSM100.0*22.819.916.27.56.44.1
    Inc-v3MI-FGSM100.0*48.848.035.615.115.27.8
    IncRes-v2FGSM32.628.155.3*25.813.112.17.5
    IncRes-v2I-FGSM37.820.899.6*22.88.97.85.8
    IncRes-v2MI-FGSM69.862.199.5*50.626.120.915.7
    Res-152FGSM35.028.227.572.9*14.613.27.5
    Res-152MI-FGSM53.648.944.798.5*22.121.712.9

    (Inc-v4 source rows omitted; in black-box cells the target model differs from the source model.)

    • The authors state that MI-FGSM maintains near 100% white-box success rates, and in most cases its black-box success rate is more than twice that of I-FGSM.
    • The authors also note that samples generated from a single model remain ineffective against adversarially trained models (e.g., less than 16% against IncRes-v2ens), motivating ensemble attacks.

    Ensemble Attacks and Breaking Adversarially Trained Models

    • Comparison of three ensemble schemes (Table 2, 4 models held out in turn, ε = 16, 10 iterations): ensemble in logits outperforms both predictions and loss fusion across all attack methods and model combinations; e.g., when attacking the logits ensemble of Inc-v4/IncRes-v2/Res-152 with Inc-v3 held out, MI-FGSM achieves a black-box success rate of 87.9% (predictions 83.3%, loss 81.9%).
    • Attacking adversarially trained models (Table 3, 7 models with 1 held out in turn and the other 6 equally weighted in the ensemble, 20 iterations): MI-FGSM achieves black-box success rates of 37.6%, 40.3%, and 23.3% against the held-out Inc-v3ens3, Inc-v3ens4, and IncRes-v2ens, respectively, while I-FGSM achieves only 18.6%, 18.7%, and 9.9%, and FGSM achieves 15.4%, 15.0%, and 6.4%. The authors state that ensemble adversarial training models also cannot effectively defend against their black-box attacks.

    Parameter and Mechanism Analysis

    • Decay factor µ (Figure 2, attacking Inc-v3, µ from 0 to 2.0): the black-box success rate curve is unimodal, with the maximum around µ = 1.0.
    • Number of iterations (Figure 3, attacking Inc-v3, 1–10 iterations): as iterations increase, the black-box success rate of I-FGSM gradually decreases, while MI-FGSM remains high; the authors state this supports the argument that "iterative methods overfit the white-box model, and momentum alleviates the trade-off."
    • Stability of update direction (Figure 4, attacking Inc-v3, averaged over 1000 images): the cosine similarity between two consecutive perturbations of MI-FGSM is higher than that of I-FGSM; the authors therefore argue that momentum makes the update direction more stable, helping to escape poor local regions that are hard to transfer from.
    • Perturbation size (Figure 5, ε from 1 to 40, attacking Inc-v3): the black-box success rate grows linearly with ε, and MI-FGSM grows faster; the white-box success rate of single-step FGSM decreases when the perturbation is large.

    Other Ablations and Analyses

    • L2 non-targeted ensemble attacks (Table 4, 6-model ensemble, 20 iterations): MI-FGM achieves a black-box success rate of 89.7% against the held-out Inc-v3, and 59.8%, 66.5%, and 56.4% against Inc-v3ens3, Inc-v3ens4, and IncRes-v2ens, respectively.
    • L2 single-model attacks (Table 5): conclusions are consistent with L∞; e.g., MI-FGM generated from IncRes-v2 achieves 81.7% black-box success against Inc-v3.
    • L∞ targeted attacks (Table 6, ε = 48, 20 iterations): MI-FGSM achieves near 100% white-box ensemble success, 11.4%–17.6% against normally trained black-box models, but only 0.2%–0.9% against the three adversarially trained models.
    • L2 targeted attacks (Table 7): MI-FGM achieves 17.4%–21.8% against normally trained black-box models, and 0.5%–2.0% against adversarially trained models.
    • Negative result: the authors state that targeted black-box attacks cannot effectively deceive adversarially trained models, leaving this as an open problem (Appendix B.1).
    • Competition: the method in this paper won first place in both the non-targeted and targeted adversarial attack competitions at NIPS 2017 (evaluation used 5000 ImageNet-compatible images provided by the organizers, with ε between 4 and 16).
  5. What are some points that can be further explored?

    The authors note that targeted attacks still fail against adversarially trained models; the experiments are limited to ImageNet image classification models.

    Limitations and Future Directions Noted by the Authors

    • Targeted attacks are ineffective against adversarially trained models: Appendix B.1 notes that MI-FGSM cannot effectively generate targeted adversarial examples to deceive adversarially trained models, and this "remains an open issue for future researches."
    • Transferring other training techniques to attacks: In Sec 5 Discussion, the authors suggest that other techniques that improve model generalization (such as SGD) could also be incorporated into adversarial attacks to achieve better transferability.
    • Single-model attacks are ineffective against adversarially trained models: Sec 4.2 notes that samples generated from a single model remain ineffective for black-box attacks against adversarially trained models (e.g., less than 16% against IncRes-v2ens), requiring ensemble methods.

    Scope of Experiments

    • The models under test are ImageNet classifiers: 4 normally trained models and 3 ensemble adversarial training models, with the competition configuration additionally including Inc-v3adv, for a total of 8 (Sec 4.1, 4.4).
    • The data are 1000 images from the ILSVRC 2012 validation set; the competition evaluation additionally uses 5000 images from the organizers (Sec 4.1, 4.4).
    • The attack settings cover non-targeted and targeted, L∞ and L2 norms, and single-model and ensemble attacks; defense evaluations target only ensemble adversarial training models (Sec 4.3.2, Appendices A, B).
    • The paper does not report attack experiments against detection-based defenses, distillation, or other defenses, nor evaluations of adaptive attacks (where the attacker knows the defense and designs accordingly).
    • The paper does not report the number of experimental repetitions or variance; the mechanism analysis (Figure 4 cosine similarity) is an average over 1000 images.
  6. Summarize the main content of the paper

    The momentum iterative attack MI-FGSM balances white-box strength and transferability, and black-box breaks ensemble adversarially trained models.

    An adversarial example attack method paper: to address the low black-box success rates of existing attacks, it proposes MI-FGSM, which introduces momentum into iterative gradient attacks, and an ensemble attack that fuses the logits of multiple models.

    • Problem: iterative and optimization-based attacks have poor transferability, and single-step methods are weak in white-box settings; ensemble adversarial training models previously withstood most black-box attacks.
    • Method: during iteration, accumulate historical gradients with a decay factor µ and apply L1 normalization, then update the sample along the sign direction, stabilizing the update direction and escaping poor local maxima; compute the loss after weighted fusion of the logits of K models to generate samples that can simultaneously deceive multiple models; the method is extended to the L2 norm (MI-FGM) and targeted attacks.
    • Single-model results (Table 1, 1000 ImageNet images, ε = 16): MI-FGSM achieves near 100% white-box success rates, and in most cases its black-box success rate is more than twice that of I-FGSM; e.g., samples generated from Inc-v3 achieve 48.8% against Inc-v4 (I-FGSM 22.8%).
    • Ensemble attack results: logits fusion outperforms predictions and loss fusion (Table 2); a 6-model ensemble attack achieves a black-box success rate of 40.3% against the adversarially trained model Inc-v3ens4 (Table 3), and the authors state that such strong defense models are also broken in the black-box setting.
    • Boundary: targeted black-box attacks achieve 11.4%–21.8% success against normally trained models, but only 0.2%–2.0% against the three adversarially trained models (Tables 6, 7), which the authors call an open problem.
    • Conclusion and implications: the authors argue that finding adversarial examples is analogous to training a model and transferability is analogous to generalization, so it is reasonable that momentum and ensembles improve transferability; the method won first place in both the non-targeted and targeted adversarial attack competitions at NIPS 2017, and the authors hope it will serve as a benchmark for evaluating model and defense robustness.

Related papers

Both use: ILSVRC 2012 validation set
Read originalarxiv.org