559 - Improving the Convergence Rate of Ray Search Optimization for Query-Efficient Hard-Label Attacks

Association for Artificial Intelligence, Shuyu Cheng, Chen Ma, Xinjie Xu, Dongwei Xu, Qi XuanUnderline 2026 · OpenAlex

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?

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:

  1. 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.
  2. 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 three-step workflow of the proposed accelerated random search algorithms.

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.

Attack Success Rate vs. Number of Queries on ImageNet.

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

Abstract

In hard-label black-box adversarial attacks, where only the top-1 predicted label is accessible, the prohibitive query complexity poses a major obstacle to practical deployment. In this paper, we focus on optimizing a representative class of attacks that search for the optimal ray direction yielding the minimum ℓ₂-norm perturbation required to move a benign image into the adversarial region. Inspired by Nesterov's Accelerated Gradient (NAG), we propose a momentum-based algorithm, ARS-OPT, which proactively estimates the gradient with respect to a future ray direction inferred from accumulated momentum. We provide a theoretical analysis of its convergence behavior, showing that ARS-OPT enables more accurate directional updates and achieves faster, more stable optimization. To further accelerate convergence, we incorporate surrogate-model priors into ARS-OPT's gradient estimation, resulting in PARS-OPT with enhanced performance. The superiority of our approach is supported by theoretical guarantees under standard assumptions. Extensive experiments on ImageNet and CIFAR-10 demonstrate that our method surpasses 13 state-of-the-art approaches in query efficiency.
BibTeX
@inproceedings{intelligence2026improving,
  author = {Association for Artificial Intelligence and Shuyu Cheng and Chen Ma and Xinjie Xu and Dongwei Xu and Qi Xuan},
  title = {{559 - Improving the Convergence Rate of Ray Search Optimization for Query-Efficient Hard-Label Attacks}},
  booktitle = {Underline},
  year = {2026},
  doi = {10.48448/2zjn-sr82},
}

Loading related content...

Figure