Introduction
Adversarial attacks expose vulnerabilities in machine learning models by finding small, often imperceptible perturbations that trigger incorrect predictions. In a black-box setting, the attacker lacks access to the model's internal weights and must rely solely on observing outputs for specific inputs. This scenario is highly realistic for attacking commercial APIs or deployed systems.
Existing black-box attacks generally follow two strategies: transfer-based attacks, which use a surrogate white-box model to guess perturbations, and query-based attacks, which iteratively probe the target to estimate gradients. While transfer attacks are fast, they often fail against dissimilar models. Conversely, query-based attacks are reliable but "query-intensive," often requiring thousands of probes—making them impractical for systems with rate limits. This paper introduces Prior-guided Bayesian Optimization (P-BO), a method that bridges this gap by using a surrogate model as a global function prior, achieving near-perfect success rates with an order of magnitude fewer queries.
The P-BO Framework
The core innovation of P-BO is treating the surrogate model as a global function prior within a Bayesian Optimization (BO) framework. Standard BO models the unknown loss landscape of a target model using a Gaussian Process (GP). Typically, this GP starts with a "zero-mean" prior, assuming nothing about the landscape before the first query.
As shown in the figure above, previous methods like P-RGF only used surrogate models to provide local gradient hints. If these hints are misleading, the attack stalls. P-BO instead initializes the GP's mean function using the entire loss function of a surrogate model. This provides a "map" of the landscape across the search space, allowing the optimizer to identify promising regions (peaks and valleys) globally rather than just following local slopes.
Adaptive Integration
To handle cases where the surrogate model is significantly different from the target, the authors introduce an adaptive coefficient ($\lambda$) to weight the prior. By maximizing the marginal log-likelihood of observed data on the fly, the algorithm learns to "trust" the surrogate more or less as it gathers real evidence from the target model. This ensures stability even when the prior is imperfect.
Experimental Results
P-BO was evaluated across several benchmarks, including CIFAR-10, ImageNet, and modern Vision-Language Models (VLMs).
- Unprecedented Efficiency: On CIFAR-10, P-BO achieved a 100% attack success rate (ASR) with an average of only 14–19 queries. In comparison, standard BO required ~80 queries, and traditional gradient-estimation methods like NES required over 300.
- Large-Scale Performance: On ImageNet, P-BO maintained a 94.4% ASR on Inception-v3 while using significantly fewer queries than state-of-the-art competitors.
- Attacking Multimodal Models: The method proved highly effective against VLMs like InstructBLIP and MiniGPT-4, which are increasingly used in real-world applications.
Conclusion
P-BO represents a significant shift in black-box optimization for adversarial machine learning. By moving from local gradient estimation to global function priors, it drastically reduces the query cost of successful attacks. While Bayesian Optimization introduces some internal computational overhead, the massive reduction in target model probes makes it a highly practical tool for evaluating the robustness of modern AI systems. Future work may extend this prior-guided BO approach to other domains like hyperparameter tuning and neural architecture search.
Summary updated