TL;DR
This paper introduces the Intermediate Level Attack (ILA), a novel method to improve the transferability of adversarial examples to different neural network models. By fine-tuning adversarial examples on intermediate feature layers of a source model, ILA significantly boosts their effectiveness against unseen target models, outperforming existing state-of-the-art techniques.
What Problem Does This Paper Address?
Neural networks, particularly Convolutional Neural Networks (CNNs), are susceptible to adversarial examples – subtly modified inputs that cause misclassifications. While adversarial examples can often transfer between different models (black-box transfer), this transferability is often suboptimal. This is because existing adversarial attacks tend to overfit to the specific architecture and feature representations of the source model. This limitation hinders their practical application in real-world scenarios where the target model's architecture is unknown. The paper aims to bridge this gap by developing a method that enhances adversarial example transferability without requiring knowledge of the target model.
Methods
The core of the proposed method is the Intermediate Level Attack (ILA). ILA takes an existing adversarial example and fine-tunes it by increasing its perturbation on a pre-specified intermediate layer of the source model. The intuition is that while the original adversarial perturbation might not be optimal for transfer, it serves as a good starting point. ILA aims to modify this perturbation to be more effective across different models.
Two variants of ILA are proposed:
- Intermediate Level Attack Projection (ILAP): This variant focuses on maximizing the projection of the modified perturbation onto the direction of the original adversarial perturbation at a chosen intermediate layer. This helps maintain the essence of the original attack while increasing its norm.
- Intermediate Level Attack Flexible (ILAF): This variant offers more flexibility by explicitly balancing the maximization of the perturbation's norm with the fidelity to the original adversarial direction. It introduces an additional hyperparameter to control this trade-off.
A key contribution is the method for selecting the optimal intermediate layer for perturbation. This is achieved by analyzing the "disturbance" of the perturbation across different layers in the source model. The layer that exhibits the "last peak" in this disturbance graph is identified as the optimal layer for maximizing transferability, and this selection can be done without evaluating on target models.
Datasets
The primary dataset used for training and evaluation is CIFAR-10. The paper also mentions experiments conducted on ImageNet.
Key Insights and Ideas
- Intermediate Layers are Key: Perturbing intermediate feature maps, rather than just the input or output layers, is crucial for enhancing adversarial example transferability.
- "Last Peak" Heuristic for Layer Selection: A simple yet effective heuristic of identifying the "last peak" in a layer-wise disturbance graph of the source model allows for optimal layer selection for transferability without needing target models.
- BTD Approximation: The effectiveness of ILA is linked to how well the original adversarial perturbation approximates the "Best Transfer Direction" (BTD). Later layers in a network tend to have perturbations that are better aligned with the BTD.
- Linearity Matters: The increasing linearity of decision boundaries in later layers of a network plays a significant role in improving transferability. Conversely, excessive linearity in the final layers can sometimes degrade performance.
- ILA Outperforms Baselines: ILA consistently improves upon baseline attacks (like I-FGSM, FGSM, DeepFool, C&W, TAP) in terms of transferability across various models and datasets.
Key Results
- Significant Transferability Boost: ILA, particularly ILAP, demonstrates substantial improvements in adversarial example transferability. For instance, on CIFAR-10, ILAP can increase attack success rates from around 2-3% to over 40-50% for some model pairs, outperforming state-of-the-art methods like TAP.
- Optimal Layer Selection: The "last peak" heuristic for selecting the intermediate layer for perturbation proved effective, leading to optimal or near-optimal transferability without extensive hyperparameter tuning on target models.
- ImageNet Performance: ILA also showed improved transferability on the more complex ImageNet dataset, outperforming existing methods.
- Source Model Performance: Interestingly, ILA also showed improvements in fooling the source model itself, which the authors attribute to a simpler loss landscape.
Limitations and Future Work
- ILAF Tuning: While ILAF offers more flexibility, it requires substantial hyperparameter tuning (specifically the $\alpha$ parameter) to achieve its best performance, making ILAP a more "out-of-the-box" solution.
- Source Model Dependence: The optimal layer selection heuristic is based on the source model. While effective, it implies a reliance on the source model's internal structure.
- Future Work: The authors suggest exploring the interactions between ILA and existing adversarial attacks, extending ILA to other perturbation types (e.g., universal perturbations), and investigating other methods for attacking intermediate feature spaces. They also propose exploring the impact of different $\epsilon$ values on transferability.
Summary updated