[Paper Review] Mathematical Analysis of Adversarial Attacks
This paper provides a mathematical analysis of adversarial attacks, proving that the untargeted and targeted Fast Gradient Sign Method (FGSM) can fool any ReLU-activated convolutional neural network (CNN) with small perturbations. For a two-layer network, it demonstrates that the Carlini-Wagner $L_2$ (CW-L2) attack increases the probability ratio between the target and true class, validated numerically on CIFAR-10 using ResNet56.
In this paper, we analyze efficacy of the fast gradient sign method (FGSM) and the Carlini-Wagner's L2 (CW-L2) attack. We prove that, within a certain regime, the untargeted FGSM can fool any convolutional neural nets (CNNs) with ReLU activation; the targeted FGSM can mislead any CNNs with ReLU activation to classify any given image into any prescribed class. For a special two-layer neural network: a linear layer followed by the softmax output activation, we show that the CW-L2 attack increases the ratio of the classification probability between the target and ground truth classes. Moreover, we provide numerical results to verify all our theoretical results.
Motivation & Objective
- To theoretically analyze the efficacy of FGSM and CW-L2 attacks on ReLU-activated deep neural networks.
- To establish conditions under which untargeted and targeted FGSM can successfully mislead any CNN with ReLU activation.
- To investigate how the CW-L2 attack affects the probability ratio between target and ground-truth classes in a two-layer network.
- To validate theoretical findings with numerical experiments on ResNet56 using the CIFAR-10 benchmark.
- To provide theoretical guidance for applying targeted and untargeted adversarial attacks in practice.
Proposed method
- Prove that for small attack strength $\epsilon$, untargeted FGSM can fool any ReLU-activated CNN by maximizing the loss under an $L_\infty$ perturbation constraint.
- Derive the targeted FGSM update rule as $x' = x - \epsilon \cdot \text{sign}(\nabla_x L(x, e_t))$, where $e_t$ is the one-hot target label.
- Analyze the CW-L2 attack on a two-layer network (linear layer + softmax), showing it increases the ratio of classification probabilities between target and true class.
- Use first-order approximation to derive the FGSM update: $x' = x + \epsilon \cdot \text{sign}(\nabla_x L(x, y))$ for untargeted attacks.
- Implement iterative FGSM (IFGSM) with clipping to maintain perturbation bounds: $x^{(m)} = \text{Clip}_{x,\alpha}\{x^{(m-1)} + \epsilon \cdot \text{sign}(\nabla_x L(x^{(m-1)}, y))\}$.
- Apply Adam optimizer with $c=10$, $\kappa=0$, and learning rate $0.01$ to solve the CW-L2 objective function over 10 iterations for numerical validation.
Experimental results
Research questions
- RQ1Under what conditions can the untargeted FGSM attack successfully fool any ReLU-activated CNN?
- RQ2Can the targeted FGSM attack reliably misclassify any input image into any prescribed target class for ReLU-activated networks?
- RQ3How does the CW-L2 attack affect the relative classification probability between the target and ground-truth classes in a two-layer network?
- RQ4What is the relationship between attack strength $\epsilon$ and the success rate of FGSM and IFGSM attacks on ResNet56?
- RQ5To what extent does the CW-L2 attack shift the probability distribution of predictions toward the target class in practice?
Key findings
- For small $\epsilon$, the untargeted FGSM attack monotonically reduces classification accuracy on ResNet56, with accuracy decaying as $\epsilon$ increases beyond 0.1.
- The success rate of targeted FGSM increases with the number of iterations, reaching over 90% for $\epsilon = 0.02$ and 10 iterations on CIFAR-10.
- For $\epsilon \leq 0.015$, the targeted FGSM success rate increases with $\epsilon$, but drops sharply beyond this threshold, indicating an optimal perturbation range.
- The CW-L2 attack successfully misclassified 750 out of 1000 cat images as dogs, shifting the probability mass from class 4 (cat) to class 6 (dog).
- The probability of misclassifying cat images as class 9 decreased from 0.0048 to 0.004 after the CW-L2 attack, confirming the model's increased confidence in the target class.
- Numerical results confirm that the CW-L2 attack increases the ratio of classification probabilities between the target and ground-truth classes, as predicted by the theoretical analysis.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.