Abstract
We focus on the problem of black-box adversarial attacks, where the aim is to generate adversarial examples using information limited to loss function evaluations of input-output pairs. We use Bayesian optimization (BO) to specifically cater to scenarios involving low query budgets to develop query efficient adversarial attacks. We alleviate the issues surrounding BO in regards to optimizing high dimensional deep learning models by effective dimension upsampling techniques. Our proposed approach achieves performance comparable to the state of the art black-box adversarial attacks albeit with a much lower average query count. In particular, in low query budget regimes, our proposed method reduces the query count up to 80% with respect to the state of the art methods.
Introduction
Deep neural networks (DNNs) have demonstrated remarkable performance across various domains but remain susceptible to adversarial examples—inputs intentionally perturbed to cause misclassification. While white-box attacks, which assume full access to model parameters, are highly efficient, black-box attacks are more representative of real-world security scenarios where an attacker only observes the model's output for a given input.
The primary bottleneck in black-box attacks is query efficiency. Existing methods often require thousands of queries, making them detectable by rate-limiting or security monitoring systems. This research addresses the "severely query-limited" regime, focusing on generating successful attacks within a budget of 100–200 queries.
Methods
The proposed method, Bayes-Attack, utilizes Bayesian Optimization (BO), a strategy optimized for finding the global optimum of expensive-to-evaluate black-box functions. However, standard BO struggles with the high-dimensional input space of images (e.g., 224 x 224 pixels).
To overcome this, the authors implement a dimensionality reduction framework:
- Latent Space Optimization: Instead of optimizing every pixel, the attack searches for a perturbation in a significantly smaller latent space (e.g., 18 x 18).
- Upsampling: This low-dimensional "mask" is stretched back to the original image dimensions using simple techniques like Nearest Neighbor (NN) interpolation.
- Projection: The resulting perturbation is projected to ensure it satisfies l-infinity constraints, keeping the changes imperceptible.
- Surrogate Modeling: A Gaussian Process (GP) with a Matern kernel models the loss function, and an Expected Improvement (EI) acquisition function guides the selection of the next perturbation to test.
Experimental Evaluation
The effectiveness of Bayes-Attack was evaluated on ImageNet using three pre-trained classifiers: ResNet50, Inception-v3, and VGG16-bn. MNIST was also used for ablation studies.
Key Insights
- Spatial Correlation: Adversarial perturbations, like natural images, exhibit high spatial correlation. Optimizing a low-resolution mask and upsampling it effectively reduces the search space without compromising attack success.
- Upsampling Simplicity: Interestingly, simple Nearest Neighbor interpolation performed as well as more complex methods like Variational Autoencoders (VAEs), offering a computationally cheaper solution that requires no additional training data.
- Optimal Dimensionality: There is a "sweet spot" for the latent dimension. For ImageNet, dimensions around 18 x 18 or 24 x 24 provided the best balance between expressiveness and query efficiency.
Results
In low-query regimes (under 200 queries), Bayes-Attack significantly outperforms state-of-the-art methods such as NES, Bandits-td, and Parsimonious.
- Success Rate and Efficiency: On ResNet50, Bayes-Attack achieved a 74.16% success rate with an average of only 17 queries. In contrast, the Parsimonious method required 79 queries for a lower success rate.
- Median Query Count: Across all ImageNet models, the median query count for Bayes-Attack was just 6 queries, compared to 20–74 queries for competing methods.
- Query Reduction: The proposed method demonstrated up to an 80% reduction in query count compared to previous state-of-the-art techniques in highly constrained settings.
Conclusion and Future Work
Bayes-Attack establishes a new benchmark for query-efficient black-box attacks in low-budget scenarios. While it dominates in these regimes, its performance tends to plateau compared to other methods when the query budget is significantly larger (e.g., >1,000 queries). Additionally, the computational cost per iteration is higher due to the Gaussian Process updates. Future research will explore extending this efficiency to targeted attacks and further optimizing the computational overhead of the Bayesian Optimization process.
Summary updated