Abstract
Machine learning (ML), especially deep neural networks (DNNs) have been widely used in various applications, including several safety-critical ones (e.g. autonomous driving). As a result, recent research about adversarial examples has raised great concerns. Such adversarial attacks can be achieved by adding a small magnitude of perturbation to the input to mislead model prediction. While several whitebox attacks have demonstrated their effectiveness, which assume that the attackers have full access to the machine learning models; blackbox attacks are more realistic in practice. In this paper, we propose a Query-Efficient Boundary-based blackbox Attack (QEBA) based only on model’s final prediction labels. We theoretically show why previous boundary-based attack with gradient estimation on the whole gradient space is not efficient in terms of query numbers, and provide optimality analysis for our dimension reduction-based gradient estimation. On the other hand, we conducted extensive experiments on ImageNet and CelebA datasets to evaluate QEBA. We show that compared with the state-of-the-art blackbox attacks, QEBA is able to use a smaller number of queries to achieve a lower magnitude of perturbation with 100% attack success rate. We also show case studies of attacks on real-world APIs including MEGVII Face++ and Microsoft Azure.
Introduction
Deep neural networks (DNNs) have achieved remarkable success in various domains, yet they are notoriously susceptible to adversarial examples. These are inputs specifically crafted to cause a model to make a mistake, often through perturbations so small they are invisible to the human eye. In practical scenarios, attackers rarely have access to the internal weights or gradients of a model (whitebox). Instead, they must rely on blackbox interactions.
The most restrictive and realistic of these is the hard-label attack, where the attacker only observes the discrete output label (e.g., "Cat" or "Dog") rather than continuous probability scores. Finding adversarial perturbations in this setting typically requires thousands of queries to probe the decision boundary, a process severely hindered by the "curse of dimensionality." QEBA (Query-Efficient Boundary-Based Blackbox Attack) overcomes this challenge by performing gradient estimation within carefully selected low-dimensional subspaces, making hard-label attacks practical for real-world applications.
Methodology
QEBA optimizes the iterative framework used in boundary-based attacks like HopSkipJumpAttack (HSJA). The process involves three main steps: estimating the gradient at the decision boundary, moving along that gradient to reduce distance to the source image, and projecting the image back to the boundary via binary search.
The primary innovation of QEBA is Dimension Reduction-based Gradient Estimation. Instead of sampling random perturbations in the high-dimensional full image space, QEBA restricts sampling to a much smaller "representative subspace." The mathematical foundation of QEBA shows that the error in gradient estimation is directly proportional to the dimensionality of the search space. By reducing this dimensionality, QEBA ensures that each query provides more precise information about the boundary's orientation.
The authors propose three distinct subspace strategies:
- QEBA-S (Spatial): Samples perturbations in a low-resolution space and uses bilinear interpolation to upscale them. This leverages the fact that image gradients often exhibit local similarity.
- QEBA-F (Frequency): Uses the Discrete Cosine Transform (DCT) to sample perturbations only from low-frequency components, where the most critical image information resides.
- QEBA-I (Intrinsic): Uses Principal Component Analysis (PCA) on gradients collected from "reference models" to find the most influential directions for a specific dataset.
Experimental Evaluation
The researchers evaluated QEBA using the ImageNet and CelebA datasets, alongside case studies on commercial APIs including MEGVII Face++ and Microsoft Azure.
On ImageNet, with a budget of 5,000 queries, QEBA-F achieved a 42% success rate at a very low perturbation threshold (MSE 0.001), while the previous state-of-the-art (HSJA) only reached 16%. All variations of QEBA eventually reached a 100% success rate on both ImageNet and CelebA, but they reached it with significantly fewer queries than the baseline.
In real-world tests, QEBA successfully fooled Face++ into misidentifying individuals and tricked Microsoft Azure's "detect" API into failing to recognize a face in an image. These attacks were achieved using "reasonable" magnitudes of perturbation that would likely bypass human inspection, highlighting a critical security gap in current commercial ML services.
Conclusion
QEBA demonstrates that restricting search to low-dimensional subspaces—whether spatial, frequency-based, or intrinsic—drastically improves the efficiency of hard-label blackbox attacks. A key insight is the transferability of these subspaces; the intrinsic subspace of gradients is relatively stable across different model architectures for the same dataset. While the optimal subspace depends on factors like dataset size and model smoothness, QEBA provides a robust framework for practical adversarial testing. Future research will explore even more efficient subspaces and the development of corresponding adversarial defenses.
Summary updated