Skip to content

In-Depth Exploration of Transferable Adversarial Examples and Black-Box AttacksDelving into Transferable Adversarial Examples and Black-box Attacks

arXiv· arXiv:1611.02770· Yanpei Liu, Xinyun Chen, Chang Liu, Dawn SongShanghai Jiao Tong University; University of the California, BerkeleyIndexed by this site · 25 days ago· Originally publishedSelected AttacksSelectedAttention40

Quick read

Attacks

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

The authors state that they systematically study adversarial example transferability on large ImageNet models and propose an ensemble method that makes targeted attack transfer matching rates reach 76%–99% (Table 3).

Threat modelAttacker goal: generate untargeted (misclassified) or targeted (classified as a specified target label) adversarial examples and transfer them to other models. Knowledge: white-box for the models used for generation (gradients known), black-box for the victim system Clarifai.com (model, training data, and label set all unknown). Capability: does not query the target system to train a substitute model, only submits images. Victim systems: 5 ImageNet models and Clarifai.com.

Questions
Adversarial examples can transfer between models, but prior research was mostly limited to small datasets such as MNIST and CIFAR-10; the transferability of untargeted and targeted adversarial examples on large ImageNet models is not yet clear, and the difficulty of black-box attacks is unknown.
Methods
Compares the transferability of three types of generation methods—optimization-based, FG, and FGS—on 5 ImageNet models, and proposes ensembling the softmax outputs of multiple models to generate adversarial examples, supplemented by geometric analyses such as decision boundaries.
Experiments and results
Targeted examples generated by single-model methods almost do not transfer (cross-model matching rate 0%–4%, Table 2); the ensemble method brings this to 76%–99% (Table 3), and untargeted transfer accuracy drops to ≤6% (Table 4); for the Clarifai.com black-box attack, 76% of ensemble targeted examples make it predict an unrelated label.
Limitations and future work
The paper does not specifically discuss limitations. The experiments use only 100 images and 5 ImageNet models; the Clarifai.com results are based on subjective judgment; the geometric analysis is based on a two-dimensional plane for a single image; the paper does not report the number of repeated experiments or statistical tests.
Experimental setupResNet-50、ResNet-101 et al. · ILSVRC 2012 validation set(从中选取 100 张五个模型均能正确分类的图片) · accuracy(非定向迁移性,越低越好)、matching rate(定向迁移性,越高越好) et al.
Evaluated models
ResNet-50ResNet-101ResNet-152GoogLeNetVGG-16Clarifai.com
Benchmarks
ILSVRC 2012 validation set(从中选取 100 张五个模型均能正确分类的图片)
Metrics
accuracy(非定向迁移性,越低越好)matching rate(定向迁移性,越高越好)RMSD(扰动失真度)
AI summaryand selection rationaleThe paper systematically studies the transferability of adversarial examples across multiple ImageNet models and proposes a model-ensemble-based generation method that enables adversarial examples with target labels to also transfer across models. Non-targeted adversarial examples generated from a single model transfer relatively easily, but targeted adversarial examples can almost never transfer with their target labels; after the ensemble method generates attacks on four models, on the held-out black-box model the target label matching rate is between 11% and 46%, and the accuracy of non-targeted examples does not exceed 6%. On Clarifai.com, 57% of VGG-16 targeted examples and 76% of ensemble targeted examples are misclassified into categories unrelated to the true label, and 18% of ensemble examples are predicted as close to the target label. The authors also find that the gradient directions of different models are approximately orthogonal and their decision boundaries are aligned with each other, and use these geometric properties to explain the transfer phenomenon.

The paper systematically studies the transferability of adversarial examples across multiple ImageNet models and proposes a model-ensemble-based generation method that enables adversarial examples with target labels to also transfer across models. Non-targeted adversarial examples generated from a single model transfer relatively easily, but targeted adversarial examples can almost never transfer with their target labels; after the ensemble method generates attacks on four models, on the held-out black-box model the target label matching rate is between 11% and 46%, and the accuracy of non-targeted examples does not exceed 6%. On Clarifai.com, 57% of VGG-16 targeted examples and 76% of ensemble targeted examples are misclassified into categories unrelated to the true label, and 18% of ensemble examples are predicted as close to the target label. The authors also find that the gradient directions of different models are approximately orthogonal and their decision boundaries are aligned with each other, and use these geometric properties to explain the transfer phenomenon.

Why it was selectedThe paper compares adversarial example transferability across ImageNet models and proposes an ensemble-based generation method, which can be used to understand the attack surface of black-box image classification services.

Related events and news

0 events · 1 news mentions

News that mentions this paper

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    The authors study the transferability of adversarial examples (especially targeted) on large ImageNet models, and propose an ensemble generation method to achieve black-box attacks.

    Core question: on large models and large-scale datasets (ImageNet), how transferable are adversarial examples, especially whether targeted adversarial examples can transfer with their target labels, thereby enabling black-box attacks.

    • Problem scenario: the transferable nature of adversarial examples can be used to attack black-box models, which the authors believe would hinder applications based on visual understanding such as autonomous driving; previous transferability research was mostly conducted on small datasets such as MNIST and CIFAR-10, and has not been sufficiently understood at ImageNet scale.
    • Shortcomings of existing methods: the authors report that targeted adversarial examples produced by single-model generation methods (optimization method, FG, FGS) almost never transfer with their target labels (Table 2 cross-model matching rate is only 0%–4%).
    • Core hypothesis: the authors hypothesize that if an adversarial example remains adversarial against multiple models, it is more likely to transfer to other models; on this basis they propose a method for generating adversarial examples against an ensemble of multiple models.
    • Threat model:
      • Goal: generate non-targeted (misclassified is sufficient) or targeted (classified as the target label specified by the attacker) adversarial examples and transfer them to other models.
      • Knowledge: white-box for the models used for generation (gradients need to be computed); black-box for the victim system Clarifai.com—the model, training data, training process, and label set are all unknown.
      • Capability: does not construct a substitute model by querying the target system; for Clarifai.com only submits images.
      • Victim systems: 5 ImageNet pretrained models (mutual transfer targets) and the Clarifai.com online classification service.
  2. What related research exists?

    The paper is related to three lines of work: early research on transferability, black-box attacks based on substitute models, and universal perturbations; the authors claim to go beyond these works on large scale and targeted transfer.

    Early research on transferability

    • Szegedy et al. (2013)—the earliest investigation of adversarial example transferability: between different models on the same dataset, and between models trained on different data subsets; but the paper notes that it studied only MNIST.
    • Goodfellow et al. (2014)—attributes transferability to adversarial perturbations being highly aligned with model weight vectors, tested on MNIST and CIFAR-10; the authors state that this paper shows this explanation does not hold for ImageNet models.

    Black-box attacks based on substitute models

    • Papernot et al. (2016a;b)—query the target model to label a synthetic training set, train a substitute model, then generate adversarial examples against the substitute model to attack black-box services; the authors relay that it demonstrated the feasibility of attacking hosted services from Amazon, Google, and MetaMind; Papernot et al. (2016a) also studied transfer between DNNs and models such as decision trees and kNN.
    • The paper points out three differences: in these works the training set and test set are controlled by the attacker, whereas for Clarifai.com attacked in this paper even the test label set is unknown; their datasets are small-scale data such as MNIST and GTSRB; this paper does not query the target system to construct a substitute model.

    Universal perturbations (parallel work)

    • Moosavi-Dezfooli et al. (2016)—parallel independent work, proving the existence of universal perturbations that transfer across images, and the adversarial images it generates can transfer between ImageNet models; the paper notes that it examines only non-targeted transfer, whereas this paper studies both targeted and non-targeted.

    Baselines and comparison setup: this paper has no external baseline methods; the comparisons are the differences among the same set of generation methods (optimization method, FG, FGS) under single-model and ensemble settings, and the comparison with Gaussian random perturbations; the evaluation is based on 100 images selected from the ILSVRC 2012 validation set.

    The authors position this paper as: the authors claim it is the first to systematically study transferability on large models and large-scale datasets, and the first to study the transfer of target labels of targeted adversarial examples.

  3. How does the paper address this problem?

    Compare the transferability of three types of single-model generation methods, propose an ensemble method that optimizes over a softmax ensemble of multiple models, and use geometric analysis to explain the transfer phenomenon.

    Overall approach: first systematically measure the transferability of untargeted and targeted adversarial examples generated by three types of existing methods on 5 ImageNet models; after finding that targeted examples do not transfer, propose ensemble-based approaches—generate in-distribution adversarial examples against an ensemble of multiple models to improve transfer to held-out models.

    Problem formulation

    • Given an image x (true label y), an untargeted adversarial example x* satisfies f(x*)≠y and d(x,x*)≤B; a targeted adversarial example satisfies f(x*)=y* (the attacker specifies the target label).
    • Distortion is measured by RMSD (root mean square deviation), with pixel values in the range [0,255].

    Three types of single-model generation methods

    • Optimization method: minimize λ d(x,x∗) − ℓ(1y, Jθ(x∗)) (untargeted), with the loss taken as (u,v)=log(1−u·v) (following the choice of Carlini & Wagner (2016)); the targeted version uses the cross-entropy loss. The authors set λ=0, use Adam for 100 iterations with learning rate 4 (untargeted and targeted single-model experiments).
    • FGS: take one step along the sign of the gradient, satisfying the L∞ constraint.
    • FG: take one step along the normalized gradient direction, satisfying the L2 norm constraint.

    Ensemble method

    • Weighted ensemble of the softmax outputs of k white-box models; the targeted objective is argminx∗ −log((∑i αi Ji(x∗))· 1y∗) + λ d(x,x∗), meaning: maximize the ensemble model's probability on the target label while constraining distortion.
    • Implementation: equal-weight ensemble; at each iteration, compute the Adam update for each of the 4 models separately, sum them, and add to the image; learning rate 8, 100 iterations (the authors state the loss has converged).
    • Evaluation protocol: the 5 models take turns serving as the black box, and the attack is generated using the ensemble of the remaining 4.

    Success criteria and measurement

    • Untargeted transferability: the top-1 accuracy on model j of adversarial examples generated for model i; lower is better for transfer.
    • Targeted transferability: the proportion predicted by model j as the target label (matching rate); higher is better.

    Geometric analysis

    • Compute the cosine of the angle between gradient directions of different models; on the two-dimensional plane spanned by the gradient direction and a random orthogonal direction, plot each model's decision regions and decision boundaries to explain the transfer phenomenon.
  4. What experiments did the paper conduct?

    Measures the transferability of the three types of methods on 5 ImageNet models and 100 images; ensembling brings targeted transfer to 76%–99% and successfully attacks Clarifai.com.

    Experimental setup

    • Models tested: ResNet-50, ResNet-101, ResNet-152, GoogLeNet, VGG-16 (all ImageNet pretrained, ILSVRC 2012 validation set top-1 accuracy 68.3%–74.6%, Table 7); black-box target Clarifai.com.
    • Dataset: 100 images randomly selected from the ILSVRC 2012 validation set that all five models classify correctly; the target labels for targeted attacks were manually selected to be semantically far from the true label.
    • Metrics: top-1 accuracy for untargeted (lower is better), top-1 matching rate for targeted (higher is better), RMSD for distortion; top-5 results are in the appendix.
    • Comparison: single-model methods (optimization method, FG, FGS) and the ensemble method; Gaussian random noise as a reference (100 noises per standard deviation × 100 images = 10,000 images).
    • Number of repetitions and statistical tests: not reported in the paper.

    Main results

    The transfer of single-model optimization method targeted attacks (Table 2, RMSD about 23) and the transfer of ensemble optimization method targeted attacks (Table 3, RMSD about 30–31) are compared below; cells are matching rate, rows are the generation setting used ("-X" means the ensemble of the four models other than X), columns are the evaluated model:

    Swipe horizontally to read the table

    Generation settingResNet-152ResNet-101ResNet-50VGG-16GoogLeNet
    Single model ResNet-152 (Table 2)100%2%1%1%1%
    Single model VGG-16 (Table 2)2%1%2%100%1%
    Single model GoogLeNet (Table 2)1%1%0%1%100%
    -ResNet-152 (Table 3)38%76%70%97%76%
    -VGG-16 (Table 3)74%78%68%24%63%
    -GoogLeNet (Table 3)90%87%83%99%11%

    (Tables 2 and 3 each have 5 rows; 2 rows are omitted here; the off-diagonal values of the omitted rows in Table 2 are likewise in the 0%–4% range. Bold on the diagonal means: the diagonal of Table 3 is the matching rate of the held-out model—i.e., the target model is not in the ensemble used for generation—which is 76%, 43%, 46%, 24%, 11%.)

    • The authors state: single-model targeted examples match the target label 100% on the generating model, but almost do not transfer across models; the ensemble method is the first to make a large proportion of targeted examples transfer with the target label.
    • The authors point out that ensemble examples do not all match the target label even on models within the ensemble (e.g., the -ResNet-152 row is 38% on ResNet-152), because the optimization objective directly supervises only the ensemble output, not individual models.
    • Transfer is better when the held-out model is a ResNet than VGG-16 or GoogLeNet (diagonal 76%/43%/46% vs. 24%/11%).

    Untargeted transfer and ensemble improvement

    • Single-model optimization method (Table 1 Panel A, RMSD about 23): diagonal 0% (completely misleads the generating model), cross-model accuracy 5%–39%; the authors state a large proportion of untargeted examples can transfer; same architecture (among ResNets) does not necessarily transfer better than different architectures.
    • Ensemble untargeted (Table 4, RMSD about 17): accuracy on held-out models does not exceed 6%, whereas the corresponding cross-model accuracy of single-model methods is at least 12%; the authors state that untargeted examples generated by the ensemble are almost fully transferable, with smaller RMSD.
    • FG single model (Table 1 Panel B) diagonal is 1%–5% (cannot completely mislead the generating model), and cross-model values are comparable to or lower than the optimization method; FGS transfers worse than FG (Table 19, 20), which the authors hypothesize is related to larger RMSD.

    Black-box attack on Clarifai.com

    • Submitted 100 original images and 400 adversarial examples (200 targeted: 100 generated by single-model VGG-16, 100 generated by the ensemble; 200 untargeted likewise).
    • Most untargeted examples transfer to Clarifai.com; among targeted examples, 57% (VGG-16 generated) and 76% (ensemble generated) make Clarifai.com predict a label unrelated to the true label.
    • 18% (ensemble) and 2% (VGG-16) of targeted examples are predicted as labels close to the target label; the authors state these numbers are based on a subjective measure, with examples in Table 6 and appendix Table 34.

    Analysis of geometric properties

    • The off-diagonal cosine values of gradient direction angles between different models are 0.01–0.04 (Table 33); the authors state the gradient directions of the models are almost mutually orthogonal.
    • Decision region visualization (Figure 3, based on the single image in Figure 2): the correctly classified region is limited to the center; along the gradient direction the image is quickly misclassified, and the first misclassified label is the same for the three ResNets; the total number of distinct regions in the plane is at most 21 (Table 5), which the authors state explains why 1-D subspace methods such as FG/FGS struggle to find targeted examples.
    • Decision boundaries (Figure 4, 5): the boundaries of the models align well, which the authors state explains untargeted transfer; on the targeted direction plane of the ensemble, the held-out ResNet-101 also has a region misled to the target label, only with smaller area.

    Other ablations and analyses

    • Gaussian noise reference (Table 11): at RMSD 23.59, each model's accuracy is still above 66%; the authors state the "transferability" of random noise is far worse than adversarial methods; targeted matching rate is 0% throughout.
    • Small-distortion optimization method (learning rate 0.125, RMSD about 1.2–1.6, Table 15): cross-model accuracy 84%–100%, i.e., small-distortion examples almost do not transfer.
    • Single-model targeted attacks with increased distortion (RMSD about 31) (Table 17): cross-model matching rate is still only 0%–5%; top-5 at most 10% (Table 18).
    • Minimum transferable RMSD (Figure 1, VGG-16→ResNet-152): FG and FGS reach 100% transfer within RMSD 80.91 and 86.56, respectively.
    • "Same error" effect (Table 9): when both models misclassify, in 12%–40% of cases they misclassify to the same label (based on VGG-16 generated examples).
    • FG/FGS on the ensemble (Table 21–24, 28–31): untargeted diagonal is nonzero, and targeted transfer is no better than single models; the authors hypothesize the reason is that the models' gradient directions are orthogonal and the 1-D subspace may contain few labels.
  5. What are some points that can be further explored?

    The paper does not specifically discuss limitations; the experiments cover 5 ImageNet models and 100 images, and the Clarifai.com results are subjective judgments.

    Limitations and future directions noted by the authors

    The paper does not specifically discuss limitations, and has no Limitations or Future Work section; the conclusion does not list future research directions.

    Scope of experiments

    • The models tested are ResNet-50, ResNet-101, ResNet-152, GoogLeNet, and VGG-16, 5 ImageNet pretrained models in total, plus the black-box system Clarifai.com (Section 2.3, Section 7).
    • The test set is 100 images selected from the ILSVRC 2012 validation set that all five models classify correctly; the target labels for targeted attacks were manually selected (Section 2.3).
    • For the Clarifai.com experiments, 100 original images and 400 adversarial examples were submitted in total; the success proportions are based on a subjective measure, and the paper does not report the number of judges or agreement (Section 7).
    • In the geometric analysis, the gradient direction cosines are based on all test images (Table 33), and the decision boundary visualizations are based on a single image (Figure 2–5).
    • The paper does not report the number of repeated experiments, statistical significance tests, or the model type and label set of Clarifai.com when attacking it (the authors state this information is unknown to them).
  6. Summarize the main content of the paper

    ICLR 2017 paper: systematically studies adversarial example transferability on ImageNet, and proposes an ensemble method to achieve targeted transfer and black-box attacks.

    An ICLR 2017 attack paper that studies the transferability of adversarial examples on large models and large-scale datasets, and uses transferability to achieve black-box attacks.

    • Problem: prior transferability research was limited to small datasets such as MNIST and CIFAR-10; the authors state this paper is the first to systematically study untargeted and targeted transferability on large ImageNet models.
    • Method: on 5 ImageNet models (ResNet-50/101/152, GoogLeNet, VGG-16), compare three types of single-model methods—optimization method, FG, FGS—and propose an ensemble method that performs Adam optimization over a softmax ensemble of multiple models; the test set is 100 images that all five models classify correctly.
    • Single-model targeted does not transfer: targeted examples generated by the optimization method have matching rate 100% on the generating model and only 0%–4% across models (Table 2); increasing distortion to RMSD about 31 does not improve this (Table 17).
    • Ensemble achieves targeted transfer: matching rate on held-out models is 76% (ResNet-152), 43% (ResNet-101), 46% (ResNet-50), 24% (VGG-16), 11% (GoogLeNet) (Table 3); untargeted examples have accuracy ≤6% on held-out models, better than the ≥12% of single-model methods (Table 4).
    • Black-box attack on Clarifai.com: 76% of ensemble targeted examples make it predict a label unrelated to the true label, and 18% are predicted as close to the target label (subjective measure); the authors state this is a successful attack when the model, training data, and label set are all unknown.
    • Geometric findings: the authors report that the gradient directions of the models are almost orthogonal (cosine 0.01–0.04) and that decision boundaries align well, which they believe explain respectively the poor performance of ensemble FG/FGS and the existence of untargeted transfer.
    • Authors' conclusion: untargeted transfer remains prominent on large models, and targeted transfer requires the ensemble method; the authors believe such transferable adversarial examples pose a threat to applications based on deep networks.

Related papers

Both use: ILSVRC 2012 validation set
Read originalarxiv.org