Profile

Settings

Loading…

← Papers

Help

FAQ

Which features require signing in?

You can read the commentary, paper info, Model Structure and related papers of public papers without signing in. Sign in to manage your account or contact us about your inquiries.

Can I upload a PDF file?

Upload papers with an arXiv or DOI link; the commentary is public to everyone. Papers whose source and terms of use can't be verified, so the commentary can't be made public, can't be uploaded. Uploading PDF files and keeping papers private are for subscribers only, and a paper uploaded as a file is saved as private only. Searching for official info by title runs only when you press the button.

Are the figures and AI commentary accurate?

Figures come only from the original paper, and only those whose terms of use are verified are shown. The commentary is written by AI and may be wrong. Check important claims, numbers and figure context against the evidence in the original paper.

I want to report a copyright issue.

Terms of use and the source of the original paper are on the Paper info tab. If there's a problem, choose "Paper content, figures and copyright" under Contact us and send the paper link, the part in question, and evidence that you hold the rights. Receiving your report doesn't confirm any rights or remove anything right away. You can see the result of the review under My inquiries.

I forgot my password.

If you signed up with email, use Forgot password in the sign-in window to reset it with your verified email. If you signed up with Google, Naver or Kakao, change your password with that service.

What should I include in an inquiry?

Tell us which screen you were on and what you were doing when the problem happened, along with the paper link. Don't include personal information such as passwords, API keys, verification codes or phone numbers. Inquiries and replies are stored in Refivu and you can see them under My inquiries.

How do I delete my account?

In Settings, under My account, press Delete account. Review what will be deleted and complete identity verification to delete your account. For other requests, choose "Account" under Contact us.

Paper commentary

Adversarial Machine Learning at Scale

Adversarial training scales to ImageNet and keeps clean accuracy close to baseline

  • Problem Adversarial training had mostly been tested on small datasets. It was unclear whether it could make a large model like Inception v3 robust on ImageNet without costing too much clean accuracy.
  • Method The authors mix adversarial examples into each minibatch of Inception v3 training. They regenerate them from the current network at every step, using the step l.l. attack with a random epsilon per example.
  • Results The adversarially trained model reached 73.9% top-1 accuracy on adversarial images at epsilon 16. Clean top-1 accuracy was 77.6%, against 78.4% for the baseline.

Why adversarial training at ImageNet scale

Neural networks can be pushed into wrong predictions by small changes to their input at test time, and this weakness has been shown across several model families. Adversarial examples also transfer, so a model can be attacked without access to its parameters by crafting inputs on a substitute model and deploying them against the target. Injecting adversarial examples into the training set, usually called adversarial training, was reported to raise robustness, but the defense studies so far used small datasets such as MNIST and CIFAR10.

The study therefore asks whether the same recipe holds for a large architecture and a large dataset, namely Inception v3 trained on ImageNet. It also asks how much clean accuracy the robustness costs, since the authors frame the defense as a trade between the two.

Attack methods used in the study

Every attack starts from a clean image X and produces a candidate adversarial image, with epsilon bounding the L∞ size of the perturbation. Epsilon is always stated in pixel values on the 0 to 255 scale, and the clipping step keeps each pixel of the candidate inside the range given by the clean value plus or minus epsilon.

The fast gradient sign method changes each pixel by epsilon in the direction of the sign of the loss gradient, written as \(X_{adv} = X + \epsilon\,\mathrm{sign}(\nabla_X J(X, y_{true}))\).

The one-step target-class variant moves the input toward a chosen class instead of away from the true class, using \(X_{adv} = X - \epsilon\,\mathrm{sign}(\nabla_X J(X, y_{target}))\). Step l.l. takes the least likely class predicted by the network as the target, while step rnd. takes a random class.

The basic iterative method repeats the FGSM update with a step size of 1 for each pixel, using min(epsilon + 4, 1.25 epsilon) iterations. The iterative least-likely class method repeats the step l.l. update and clips after each step; the authors note that its examples were misclassified in more than 99% of cases.

How the adversarial minibatches are built

Adversarial training generates new adversarial examples at every training step, and scaling it to ImageNet is paired here with batch normalization.

Each training step reads a minibatch of clean examples, converts the first k of them into adversarial examples using the current network, and swaps those in for their clean counterparts. The resulting batch has the same total size as before, and one training step is taken on it, so the clean examples in the batch are no longer kept alongside their adversarial versions.

The authors describe this replacement of each clean example by its adversarial counterpart as a departure from earlier approaches.

The loss separates the clean and adversarial terms, with a weight lambda that sets how strongly the adversarial examples count, and with the total minibatch size m and the number k of adversarial examples as separate controls. The experiments use lambda = 0.3, a minibatch of 32 examples and k = 16 adversarial examples. Huang et al. replaced the entire minibatch with adversarial examples, but their experiments were on MNIST and CIFAR-10, where adversarial training did not lower clean accuracy.

The authors found that their approach works better for ImageNet models, and they report the comparison in an appendix.

A fixed epsilon during training produces networks that are robust only to that one value. The authors therefore draw epsilon independently for each training example, and their best results came from magnitudes drawn from a truncated normal distribution on [0, 16] with underlying normal distribution N(mu = 0, sigma = 8).

Training schedule and evaluation protocol

Training was synchronous and distributed across 50 machines, with 32 examples on each machine. The optimizer was RMSProp with a learning rate of 0.045 unless otherwise indicated.

Dropout, label smoothing and weight decay are on by default for Inception v3, and the authors varied them alongside adversarial training. Turning off label smoothing or dropout lowered clean top-1 accuracy by 0.1% to 0.5% and raised adversarial top-1 accuracy by 1% to 1.5%, while reducing weight decay lowered both clean and adversarial accuracy.

Adversarial training was also delayed by 0, 10k, 20k or 40k iterations, with only clean examples used before the switch. After more than 70k iterations, a delay had almost no effect on clean accuracy, but larger delays could cost up to 4% of accuracy on adversarial examples with high perturbation magnitude.

Robustness to one-step attacks and the clean-accuracy cost

Adversarial training with any one-step method raised robustness to every one-step type tested, although a gap remained between clean and adversarial accuracy. Step l.l. and step rnd. gave the best test accuracy when used for training, and the models trained with them also resisted the other one-step examples, so step l.l. was used in the final experiments.

For the baseline Inception v3, clean top-1 accuracy was 78.4% and top-1 accuracy at epsilon 16 fell to 29.5%. After adversarial training with step l.l., clean top-1 accuracy was 77.6%, and top-1 accuracy on adversarial images stayed between 73.5% and 74.5% across epsilon 2 to 16, reaching 73.9% at epsilon 16. Top-5 accuracy at epsilon 16 rose from 57.2% to 91.4% over the same comparison.

The authors report that the clean-accuracy loss is about 0.8%, which they accept as the price of the robustness gain. The deeper model, with two additional Inception blocks, reached 78.7% clean top-1 accuracy without adversarial training and 74.4% at epsilon 16 with it, against 78.1% on clean images. The authors say the deeper model benefits more from adversarial training and loses less clean accuracy than the smaller model.

The authors suggest that adversarial training acts as a regularizer, which helps when a model overfits but can raise training error on models such as ImageNet classifiers that already have high training error. Based on this, they recommend using adversarial training when a model overfits and a regularizer is needed, or when security against adversarial examples is a concern.

Iterative attacks remain effective

The adversarially trained network was evaluated after 140k iterations on iterative examples. Against iter. l.l. at epsilon 16, top-1 accuracy was 1.5% for the adversarially trained model and 0.7% for the baseline. Against iter. basic at epsilon 16, the adversarially trained model scored 23.2% and the baseline scored 25.9%.

Training on one-step examples therefore does not confer resistance to iterative examples. The authors also tried training with iterative examples, but it was computationally costly and gave no robustness gain and no protection against the drop in clean accuracy. They suggest that much larger models may be needed to resist such a large class of inputs, which is a hypothesis they did not test.

Label leaking in one-step adversarial evaluation

A label counts as leaked when the model classifies the example built with the true label correctly, yet misclassifies the corresponding example built without it. When the model was trained and evaluated with FGSM examples, accuracy on the adversarial images rose above accuracy on clean images, and the same effect appeared, to a lesser degree, with other one-step methods that take the true label.

The authors believe the true label induces a simple, predictable change to the input, which the model learns to recognize, so the construction leaks information about the label into the input. The effect disappears when the construction avoids the true label, and it also disappears for iterative methods, whose outputs the authors describe as more diverse.

Table 3 compares the two settings at 150k iterations with initial learning rate 0.0225. With FGSM for both training and evaluation, top-1 accuracy was 76.6% on clean images and 86.2% at epsilon 2, with 87.0% at epsilon 16. With step l.l. for both, clean top-1 accuracy was 77.3% and the adversarial top-1 accuracy stayed between 72.0% and 73.4%.

Because of this effect, the authors advise against FGSM and other methods defined with the true label for evaluating robustness, and suggest replacing the true label with the most likely predicted label. They also mention maximizing the cross-entropy between the predicted distribution on the clean and perturbed inputs as an alternative, citing Miyato et al.

(2016b).

The authors revisited the adversarially trained MNIST classifier from Goodfellow et al. (2014), and it also leaks labels. At epsilon 0.3 on data in [0, 1], the model leaks 79 labels on the 10,000-example test set. The authors note that the leakage is small next to the error caused by adversarial examples, and that the error on adversarial examples exceeds the error on clean examples for several epsilon values, which they say explains why the effect was not noticed earlier.

Model capacity and robustness

Model size is varied by a scale factor rho that multiplies the number of filters in each convolution, with rho equal to 1 giving the unchanged Inception v3. For each rho in [0.5, 2.0] two models were trained, one with adversarial training and one without, and both were evaluated on clean and adversarial images.

Clean accuracy kept rising with rho, though more slowly for larger values, so the authors measure robustness with the ratio of adversarial to clean accuracy. A ratio of 1 means the adversarial images are classified as well as the clean ones, and a ratio above 1 would mean the adversary helps the model, which the authors take as a sign of a defective construction such as label leaking.

Without adversarial training, robustness peaked at one intermediate rho, and models that were too large or too small performed worse. With adversarial training, robustness increased consistently with size, and models at twice the normal size had a ratio approaching 1 for one-step examples. The authors did not find where this trend ends, and on iterative examples the trend held with some exceptions while no model approached a ratio of 1.

Based on these results the authors recommend exploring larger models together with adversarial training as a route to more robustness.

Transfer of adversarial examples between models

Transferability was measured between two Inception v3 copies with different random initializations, Inception v4, and an Inception v3 variant with ELU activations in place of ReLU. The ELU variant reached 78.0% top-1 and 94.1% top-5 accuracy, comparable to the ReLU model. For each source and target pair, 1000 random test images were perturbed on the source model, and only examples misclassified by the source were kept.

The transfer rate is the fraction of those kept examples that the target model also misclassifies.

The authors summarize that FGSM examples transfer the most and iter. l.l. the least.

Iter. l.l. fools its own source network in more than 99% of cases, while FGSM is the least likely to fool it, which suggests an inverse relationship between how well a method transfers and how well it fools the network. The authors did not study this relationship further, and they offer a possible explanation that iterative methods overfit to the specific parameters of the network.

For every method the transfer rate rises as epsilon grows, so a black-box attacker has an incentive to use a larger epsilon. The numerator of the transfer rate grows faster than its denominator: when epsilon goes from 8 to 16, the denominator grows by less than 1% for each method, while the numerator grows by more than 20%.

Limitations

Adversarial training of Inception v3 lowered clean top-1 accuracy by about 0.8%. Robustness to iterative attacks was not obtained by training on one-step examples, and training on iterative examples was not made to work in the authors' attempts.

Larger delays before adversarial training can cost up to 4% of accuracy on high-magnitude adversarial examples. The capacity experiments vary only the number of filters of Inception v3, and the transfer experiments use Inception v3 and v4 with an ELU variant.

The authors did not find where the robustness gain from model size stops, and no model reached a ratio of 1 on iterative examples. Whether the larger-model trend holds for other architectures or datasets is not tested in these units.

Paper info

Authors
Alexey Kurakin, Ian Goodfellow, Samy Bengio
Venue
arXiv · Preprint
First published
2016-11-4
Added
2026-11-12
Updated
2017-2-11
Version
v2
arXiv
1611.01236
Category
cs.CV · cs.CR · cs.LG · stat.ML
Original paper terms
arXiv non-exclusive 1.0
What we show
Paper info and commentary

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

Quote from the paper

Alexey Kurakin, Ian Goodfellow, Samy Bengio (2016). Adversarial Machine Learning at Scale. arXiv:1611.01236v2. https://arxiv.org/abs/1611.01236v2

BibTeX
@misc{kurakin2016adversarial,
  title = {{Adversarial Machine Learning at Scale}},
  author = {Alexey Kurakin and Ian Goodfellow and Samy Bengio},
  year = {2016},
  eprint = {1611.01236},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1611.01236v2}
}

See related papersBrowse other papers

Paper preview
Account security

Connect Google account

If you connect a Google account, you can sign in with it too.

Refivu

Delete account

Refivu
Refivu

Sign up