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

Towards Evaluating the Robustness of Neural Networks

Three new attacks show defensive distillation does not stop adversarial examples

  • Problem Defensive distillation cut the success of existing attacks from 95% to 0.5%, but it was unclear whether this reflected real robustness. The earlier attacks failed because their gradients vanish on distilled networks.
  • Method The authors build three targeted attacks, one for each of three distance metrics. Each attack minimizes the distance plus c times a margin loss, and it searches over c with binary search.
  • Results The attacks reach 100% success on distilled MNIST and CIFAR-10 networks, where earlier attacks found no adversarial examples. On undistilled MNIST, the best-case mean L2 distance is 1.36 for the authors' attack and 2.11 for Deepfool.

Why defensive distillation looked like a fix

Adversarial examples are inputs changed by a small amount so that a trained network assigns them a different label. For self-driving cars, that gap decides which tasks a network can safely be trusted with. Defensive distillation was proposed as a defense that can be added to any feed-forward network with one extra training pass. Its reported effect was large, since existing attacks fell from 95% to 0.5% success.

The open question is whether that drop reflects real robustness or only attacks that are too weak to find adversarial examples.

The recipe trains a teacher network whose softmax is divided by a temperature T. The teacher then labels every training instance with its soft outputs, and a student of the same shape is trained on those labels. The student is deployed at temperature 1, so an attacker faces the sharpened version of the output. That sharpening is where the trouble for attacks starts.

Why gradient attacks stall on the distilled model

The authors trace the failure of L-BFGS and Deepfool to gradients that are almost always zero. Training at temperature T and testing at 1 scales the logits up by a factor of T, which pushes the softmax output toward a hard 0 or 1. The authors measured this: the mean L1 norm of the logits is 5.8 on the undistilled network and 482 on the network distilled at T = 100.

At that scale most wrong-class probabilities round to zero in 32-bit floating point, so the gradient vanishes as well.

The authors read this as fragility in the loss function rather than as a property of distillation alone. Computing the loss through softmax of Z divided by T, or using their stable objective, lets L-BFGS keep making progress. JSMA-F fails because its softmax becomes a hard maximum, and it is the variant Papernot et al. used against distillation.

JSMA-Z avoids vanishing gradients, but it treats every change in the logits as equally important whatever it does to the output. Fast gradient sign fails at first for the same reason as L-BFGS, yet dividing the logits by T still leaves distillation effective, and the authors can't explain why.

One objective and a box constraint

The key idea is to replace the hard requirement that the target class wins with a function f that is at most zero exactly when it does. The attack then minimizes the distance plus c times f, so the constant c decides how much closeness is traded for success. \[ \min_{\delta}\; D(x,x+\delta) + c\cdot f(x+\delta) \quad \text{s.t.} \quad x+\delta\in[0,1]^n \] The authors list seven candidate choices of f, and the logit margin f6 is the one they found most effective.

In Table III, f6 with change of variables reaches a best-case mean L2 of 1.94 with 100% success on MNIST. The L2 attack uses a clipped version of the margin, \[ f(x') = \max\big(\max_{i\neq t} Z(x')_i - Z(x')_t,\; -\kappa\big) \], so the solver stops pushing once the target leads by κ. The authors set κ = 0 in their attacks, and κ is the knob that controls how confidently the target class wins.

To keep every pixel inside the valid range, the authors write δ_i as ½(tanh(w_i)+1) − x_i and optimize over w. They optimize w with Adam, which converged faster than the other solvers they tried while reaching the same quality. Greedy gradient descent can stall in a local minimum, so they also restart from several random points in a ball around the input.

Rather than tuning c by hand, the authors search over it: the smallest c that makes f at most zero gives a solution within 5% of optimal in 70% of cases. The attack runs 20 iterations of binary search over c, and each candidate c gets 10,000 Adam iterations.

Adapting the L2 machinery to L0 and L∞

The L0 distance counts changed pixels, which gradient descent can't optimize directly. So the authors run their L2 attack repeatedly and, in each round, fix the pixel whose removal costs the least. The choice uses the gradient g of f at the adversarial point, selecting the index i that minimizes g_i times δ_i. Picking the smallest |δ_i| is simpler but yields 1.5 times higher L0 distortion.

When the L2 search fails in a round, the authors double c and retry, and each round starts from the previous solution. That warm start cuts the number of gradient rounds, because the solution with k pixels held fixed is close to the one with k+1 fixed.

Penalizing the L∞ norm directly makes gradient descent oscillate, since the norm only penalizes the largest coordinate. The authors replace this naive penalty with an iterative procedure that avoids the oscillation.

The optimizer works on continuous values, so the authors round each pixel to the nearest integer intensity. A greedy search on the integer grid then restores attack quality, and it did not fail in any of their attacks.

Results on defensively distilled networks

On distilled MNIST and CIFAR-10 networks at T = 100, each of the three attacks succeeds on every image. In best-case mean distortion on MNIST, the distilled model needs 10 for L0, 1.7 for L2 and 0.14 for L∞. On the undistilled network the same best-case figures are 8.5, 1.36 and 0.13, so distillation adds only a small increase in needed change.

The earlier attacks, by contrast, fail to find any adversarial example on the distilled networks. The authors attribute that failure to the gradient problems described earlier, not to a lack of adversarial examples.

The authors' Figure 8 plots mean adversarial distance against distillation temperature on MNIST and reports that the two are uncorrelated.

Comparison on undistilled networks

On undistilled MNIST, the best-case mean L2 distance is 1.36 for the authors' attack and 2.11 for Deepfool. On the same model and metric, the authors' attack lands closer to the original image than Deepfool.

Under L0, the best-case mean on MNIST is 8.5 for the authors' attack, compared to 20 for JSMA-Z and 17 for JSMA-F. The gain comes at a runtime cost, since the L0 attack is slower than the authors' own optimized JSMA. The authors warn that exact runtime comparisons can mislead, so they don't report precise timings.

The authors claim their L0 attack is the first published attack to cause targeted misclassification on ImageNet.

Limitations

The distillation results cover only MNIST and CIFAR-10, and the attack tables use the single temperature T = 100. The ImageNet experiments attack the pre-trained Inception v3 model, and the authors did not re-implement distillation there. On ImageNet the best and worst cases are approximated by sampling 100 random target classes out of 1,000.

The authors leave the choice of distance metric open and accept that L0, L2 and L∞ are imperfect proxies for human perception. The selected text describes the transferability test but does not show its numbers. The attacks assume full white-box access to the architecture and all parameters.

Paper info

Authors
Carlini, Nicholas, Wagner, David
Venue
arXiv · Preprint
First published
2016-8-16
Added
2026-11-11
Updated
2017-3-22
Version
v2
arXiv
1608.04644
Category
cs.CR · cs.CV
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

Carlini, Nicholas, Wagner, David (2016). Towards Evaluating the Robustness of Neural Networks. arXiv:1608.04644v2. https://arxiv.org/abs/1608.04644v2

BibTeX
@misc{nicholas2016towards,
  title = {{Towards Evaluating the Robustness of Neural Networks}},
  author = {Carlini, Nicholas and Wagner, David},
  year = {2016},
  eprint = {1608.04644},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1608.04644v2}
}

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