TL;DR
This paper introduces DifAttack, a novel black-box adversarial attack method that achieves high success rates and query efficiency by disentangling an image's latent features into "adversarial" and "visual" components. This allows for more targeted optimization of the adversarial aspect while preserving the image's appearance, leading to improved performance, especially in challenging open-set scenarios.
What Problem Does This Paper Address?
Deep Neural Networks (DNNs) are susceptible to adversarial examples (AEs) – subtly modified images that can fool the model into making incorrect predictions. Developing effective black-box attacks, where the attacker only has access to the model's outputs (like class predictions or scores) and not its internal architecture or weights, is crucial for understanding and improving DNN robustness. Existing black-box attacks often struggle with either achieving high success rates (ASR) or requiring an excessive number of queries to the target model, especially in "open-set" scenarios where the attacker doesn't know the model's training data. Furthermore, many current methods optimize the entire feature space of an image, which can lead to inefficient perturbations that are constrained by the model's architecture and potentially reduce attack effectiveness.
Methods
DifAttack tackles these challenges by introducing a novel approach based on a "Disentangled Feature Space." The core idea is to decompose an image's latent representation into two distinct components:
- Adversarial Feature: This component is primarily responsible for the image's adversarial capability – its ability to fool the classifier.
- Visual Feature: This component dictates the image's visual appearance, ensuring it remains perceptually similar to the original.
The method involves two main stages:
- Training Stage: An autoencoder is trained using pairs of clean images and their corresponding adversarial examples (generated via white-box attacks on surrogate models). This autoencoder, equipped with a "Decouple-Fusion (DF)" module, learns to disentangle the latent features into the adversarial and visual components. It also learns to reconstruct images from these disentangled features.
- Attack Stage: During the attack, DifAttack iteratively optimizes the adversarial feature based on feedback from the victim model (querying the model with perturbed images). Crucially, the visual feature is kept constant, ensuring the perturbed image remains visually similar to the original. This iterative optimization continues until a successful adversarial example is generated.
This disentanglement approach avoids directly optimizing the entire feature space and bypasses the need for surrogate model gradients during the black-box attack phase, which is particularly beneficial for open-set scenarios.
Datasets
The paper evaluates DifAttack on several standard image classification datasets:
- ImageNet-1k: Used for training and evaluating the model.
- Cifar-10: Used for training and evaluating the model.
- Cifar-100: Used for evaluating performance in open-set scenarios.
The authors also mention using pre-trained models from torchvision for Cifar-10 and Cifar-100.
Key Insights and Ideas
- Feature Disentanglement is Key: The core insight is that an image's adversarial vulnerability and its visual appearance can be separated into distinct latent feature components. Optimizing only the "adversarial" component while preserving the "visual" component leads to more efficient and effective attacks.
- Open-Set Advantage: By not relying on surrogate model gradients during the attack phase, DifAttack inherently possesses better generalizability and attack capability in open-set scenarios where the victim model's training data is unknown.
- Visual Consistency: Maintaining the visual feature invariant during optimization ensures that the generated adversarial examples are less likely to be detected by human inspection or simple visual filters.
- Beyond Pixel Perturbations: Instead of directly manipulating pixels, DifAttack operates in a disentangled latent feature space, offering a more abstract and potentially more powerful way to generate adversarial examples.
Key Results
DifAttack demonstrates significant improvements over state-of-the-art (SOTA) score-based black-box attack methods:
- High Attack Success Rate (ASR): Achieves near-perfect (100%) ASR in most close-set scenarios on ImageNet and Cifar-10, outperforming competitors.
- Query Efficiency: Substantially reduces the average number of queries (Avg.Q) required to generate an adversarial example, often by over 40% compared to other methods, while maintaining or improving ASR. For instance, on ImageNet, it reduced Avg.Q by 41.9% compared to the second-lowest query numbers.
- Open-Set Performance: Shows superior performance in open-set scenarios (e.g., attacking Cifar-100 models with Cifar-10 trained autoencoders), highlighting its strong generalizability.
- Real-World API Attack: Demonstrates effectiveness against the Imagga API, a practical scenario with unknown model architecture and training data.
- Robustness Against Defenses: Shows promising results when attacking models with defensive strategies like Adversarial Training, Bit-depth Reduction, NRP, and DiffPure, achieving the highest average ASR among tested methods.
Limitations and Future Work
- Dependence on Surrogate Models for Training: While the attack itself is black-box, the training of the autoencoder still relies on adversarial examples generated by white-box attacks on surrogate models. The paper notes that the choice of white-box attack method for this training phase has a negligible impact on the final attack performance, suggesting robustness in this aspect.
- Parameter Tuning: The paper discusses the influence of parameters like $\tau$ (sampling scale) and $\xi$ (perturbation strength for feature analysis), suggesting optimal ranges based on experimental observations. Further research could explore automated or adaptive parameter selection.
- Future Work: The authors suggest that their method's ability to disentangle features could be extended to other areas like adversarial defense or understanding model robustness more broadly. The paper also implies that further exploration of the disentangled feature space could lead to even more sophisticated attacks or defenses.
Summary updated