Abstract
Adversarial attacks in black-box settings typically suffer from high query complexity or low success rates. This paper proposes the Prior-guided Random Gradient-Free (PRGF) framework, featuring two algorithms: PRGF-BS (Biased Sampling) and PRGF-GA (Gradient Averaging). These methods leverage "prior" gradient information from surrogate white-box models to guide the search for adversarial perturbations. By dynamically updating integration coefficients based on the estimated similarity between the surrogate and target gradients, PRGF achieves near-100% attack success rates with a fraction of the queries required by previous state-of-the-art techniques.
Introduction
Adversarial perturbations—small, imperceptible changes that trick AI models—pose a significant security risk. While white-box attacks are straightforward due to full gradient access, real-world scenarios often involve black-box models where only output labels or scores are available. Existing approaches are either fast but unreliable (transfer-based) or reliable but prohibitively slow (query-based). The challenge lies in bridging this "query efficiency" gap: using surrogate model "hints" to accelerate the discovery of adversarial directions without sacrificing success rates.
Methodology: The PRGF Framework
The authors introduce the Prior-guided Random Gradient-Free (PRGF) framework to narrow the search space for the true gradient using a surrogate model's gradient as a "prior."
PRGF-BS and PRGF-GA
Two specific strategies are proposed to integrate the prior:
- PRGF-BS (Biased Sampling): This algorithm biases random sampling toward the surrogate gradient rather than testing directions uniformly, effectively "throwing darts" in a more promising direction.
- PRGF-GA (Gradient Averaging): This approach computes a weighted average of the surrogate gradient and a standard query-based gradient estimate.
Optimal Blending
A key contribution is the derivation of optimal coefficients ($\lambda^*$ for BS and $\mu^*$ for GA) for blending the prior. Instead of using fixed heuristics, the framework treats gradient estimation as a minimization problem of the distance between the estimated and true gradients.
As shown in Figure 1, the PRGF methods theoretically achieve lower estimation loss compared to standard Random Gradient-Free (RGF) or pure transfer-based approaches by effectively utilizing the prior information across a range of parameters.
Experimental Evaluation
The methods were evaluated on ImageNet and CIFAR-10 datasets, attacking models like Inception-v3, VGG-16, and ResNet-50 using surrogates such as ResNet-v2-152.
Dynamic Adaptation and Key Insights
The effectiveness of the surrogate gradient (the "prior") is perishable; it is most useful at the start of an attack and decays as the image becomes more perturbed. The PRGF algorithms handle this by dynamically updating the blending coefficients based on the estimated cosine similarity between the surrogate and target gradients.
Figure 5 illustrates how the optimal coefficients ($\lambda^*, \mu^*$) and cosine similarity evolve over attack iterations. As the attack progresses, the algorithm automatically shifts its reliance from the surrogate prior to real-time query feedback, maintaining high estimation accuracy.
Performance Results
PRGF significantly outperformed state-of-the-art attacks like NES and Bandits:
- Query Efficiency: On ImageNet, PRGF-GA reduced the median query count for Inception-v3 from 816 to 314. With multiple surrogates, this dropped to just 50 queries.
- Success Rates: Both variants achieved near 100% success rates across various target models, even under strict query budgets.
- Robustness: The attacks remained effective even when target and surrogate architectures differed significantly, proving the robustness of the transfer-based guidance.
Conclusion
The PRGF framework demonstrates that transfer-based priors can drastically improve the efficiency of black-box attacks. While performance depends on surrogate quality, the adaptive nature of the algorithms ensures robustness. Future work may extend these concepts to hard-label settings and explore interactions with advanced adversarial defenses.
Summary updated