Abstract
Hard-label adversarial attacks represent the most restrictive black-box scenario, where an attacker only receives the final predicted class from a target model. Finding minimal perturbations in this setting typically requires a prohibitive number of queries. This paper introduces ARS-OPT (Accelerated Random Search) and PARS-OPT (Prior-guided ARS-OPT), which leverage Nesterov-style momentum and surrogate model priors to accelerate convergence. Theoretically, these methods improve the convergence rate from $O(1/T)$ to $O(1/T^2)$. Empirical evaluations across ImageNet, CIFAR-10, and CLIP demonstrate that our approach significantly outperforms 13 state-of-the-art methods in query efficiency.
Introduction: The Challenge of Hard-Label Attacks
In adversarial machine learning, hard-label attacks are often considered the "final boss" of black-box scenarios. Unlike score-based attacks that utilize confidence percentages, hard-label attacks only have access to the discrete predicted label (e.g., "Dog" vs. "Cat"). This is the most realistic setting for attacking commercial APIs like Google Cloud Vision or AWS Rekognition.
The primary challenge is efficiency: because feedback is minimal, existing methods often require tens of thousands of queries to find a stealthy perturbation. Most current approaches rely on vanilla zeroth-order gradient descent, which converges slowly in high-dimensional image spaces. We address this by asking: how can we find the smallest adversarial perturbation using the fewest possible queries?
Methodology: Accelerated Ray Search
Our approach is based on Ray Search Optimization, which treats the attack as a search for the shortest "ray" from a benign image to the decision boundary. We introduce two primary algorithms:
- ARS-OPT (Accelerated Random Search): Inspired by Nesterov’s Accelerated Gradient (NAG), ARS-OPT utilizes a "lookahead" direction by interpolating between the current position and accumulated momentum. It employs two gradient estimators: a biased one ($g_1$) for the main update and an unbiased one ($g_2$) to maintain the momentum sequence.
- PARS-OPT (Prior-guided ARS-OPT): This variant incorporates "priors" from surrogate models (local models available to the attacker). By using Gram-Schmidt orthogonalization, we blend surrogate gradients with random search vectors, guiding the search toward likely vulnerabilities while maintaining theoretical soundness.
The core "Aha!" moment of this work is the theoretical proof that this framework achieves an $O(1/T^2)$ convergence rate, a significant leap over the $O(1/T)$ or $O(\ln T / T)$ rates of existing hard-label attacks. This acceleration is analogous to a walker descending a valley: instead of just looking at their feet (vanilla gradient descent), the walker looks ahead to anticipate the terrain, leading to smoother and faster progress.
Experimental Results
We evaluated our methods on ImageNet (attacking Inception-v4 and Swin Transformer), CIFAR-10, and CLIP (ViT-L/14). We also tested against defended models protected by Adversarial Training and MIMIR.
Superior Query Efficiency
On ImageNet, PARS-OPT achieved significantly lower $\ell_2$ distortions at low query budgets (2,000 to 4,000 queries) compared to 13 baselines, including HSJA, Sign-OPT, and QEBA. In targeted attacks, ARS-OPT-S showed remarkable stability, effectively avoiding local minima.
Effectiveness Against Large-Scale Models
The method proved highly effective against CLIP, achieving a 78.8% attack success rate within 10,000 queries. In contrast, the baseline Sign-OPT only reached a 19.4% success rate under the same constraints, highlighting the impact of the accelerated convergence.
Conclusion and Future Work
By incorporating momentum and surrogate priors into zeroth-order optimization, ARS-OPT and PARS-OPT provide a powerful framework for query-efficient hard-label attacks. While PARS-OPT's performance depends on the quality of the surrogate model, the underlying ARS-OPT remains robust even without priors. Future research may explore more complex momentum types or adaptive step-size strategies to further push the boundaries of black-box attack efficiency.
Summary updated