[Paper Review] Sign-OPT: A Query-Efficient Hard-label Adversarial Attack
This paper proposes Sign-OPT, a query-efficient hard-label black-box adversarial attack that uses a single-query oracle to estimate the sign of the directional derivative, enabling faster convergence with 5–10× fewer queries than state-of-the-art methods. It achieves smaller perturbations and consistently outperforms existing approaches on MNIST, CIFAR-10, and ImageNet.
We study the most practical problem setup for evaluating adversarial robustness of a machine learning system with limited access: the hard-label black-box attack setting for generating adversarial examples, where limited model queries are allowed and only the decision is provided to a queried data input. Several algorithms have been proposed for this problem but they typically require huge amount (>20,000) of queries for attacking one example. Among them, one of the state-of-the-art approaches (Cheng et al., 2019) showed that hard-label attack can be modeled as an optimization problem where the objective function can be evaluated by binary search with additional model queries, thereby a zeroth order optimization algorithm can be applied. In this paper, we adopt the same optimization formulation but propose to directly estimate the sign of gradient at any direction instead of the gradient itself, which enjoys the benefit of single query. Using this single query oracle for retrieving sign of directional derivative, we develop a novel query-efficient Sign-OPT approach for hard-label black-box attack. We provide a convergence analysis of the new algorithm and conduct experiments on several models on MNIST, CIFAR-10 and ImageNet. We find that Sign-OPT attack consistently requires 5X to 10X fewer queries when compared to the current state-of-the-art approaches, and usually converges to an adversarial example with smaller perturbation.
Motivation & Objective
- To address the challenge of query efficiency in hard-label black-box adversarial attacks, where only model predictions (not logits or probabilities) are accessible.
- To reduce the number of queries required to generate adversarial examples, which is critical for practical and stealthy attacks.
- To develop a novel optimization method that leverages sign information of directional derivatives using only one query per evaluation.
- To provide theoretical convergence guarantees for the proposed Sign-OPT algorithm in the hard-label setting.
- To empirically demonstrate superior query efficiency and lower perturbation magnitude compared to existing methods.
Proposed method
- The method reformulates the hard-label attack as a smooth optimization problem using Cheng et al. (2019)’s formulation, which enables gradient-based optimization.
- It introduces a novel single-query oracle that estimates the sign of the directional derivative by comparing model predictions on two perturbed inputs with opposite signs.
- The algorithm uses this sign oracle within a zeroth-order optimization framework, specifically a variant of signSGD that incorporates the magnitude of the random direction vector.
- The optimization proceeds by iteratively updating the perturbation using the estimated sign of the gradient, with convergence analysis provided under appropriate assumptions.
- The method avoids binary search for function evaluation, which reduces query cost per iteration from tens to just one query.
- The algorithm is applied to attack models on MNIST, CIFAR-10, and ImageNet, with comparisons to Boundary, OPT, and ZO-SignSGD-based attacks.
Experimental results
Research questions
- RQ1Can the sign of the directional derivative in a hard-label black-box attack be estimated using only a single model query?
- RQ2Does using a single-query sign oracle lead to a significant reduction in total query count for adversarial attack?
- RQ3Can the proposed Sign-OPT method achieve smaller perturbations (lower $L_2$ distortion) than existing query-efficient attacks?
- RQ4How does the convergence behavior of Sign-OPT compare to existing zeroth-order optimization methods in the hard-label setting?
- RQ5Can the single-query sign oracle universally improve other optimization-based attack methods in the hard-label setting?
Key findings
- Sign-OPT reduces query count by 5–10× compared to the current state-of-the-art OPT attack on MNIST, CIFAR-10, and ImageNet.
- On MNIST, Sign-OPT achieves a success rate of 94% with 14,000 queries and an average $L_2$ distortion of 1.09, outperforming OPT and Boundary attacks.
- For CIFAR-10, Sign-OPT reaches 95% success rate with 12,000 queries and an average $L_2$ distortion of 0.13, significantly lower than OPT and Boundary.
- On ImageNet (ResNet-50), Sign-OPT achieves a 90% success rate with 160,000 queries and an average $L_2$ distortion of 1.21, compared to 4.27 for OPT under the same query budget.
- The single-query sign oracle improves not only Sign-OPT but also other methods like ZO-SignSGD, demonstrating its general effectiveness.
- Sign-OPT consistently finds adversarial examples with smaller perturbations than prior methods, even when query counts are matched.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.