Abstract
Unlike the white-box counterparts that are widely studied and readily accessible, adversarial examples in black-box settings are generally more Herculean on account of the difficulty of estimating gradients. Many methods achieve the task by issuing numerous queries to target classification systems, which makes the whole procedure costly and suspicious to the systems. In this paper, we aim at reducing the query complexity of black-box attacks in this category. We propose to exploit gradients of a few reference models which arguably span some promising search subspaces. Experimental results show that, in comparison with the state-of-the-arts, our method can gain up to 2x and 4x reductions in the requisite mean and medium numbers of queries with much lower failure rates even if the reference models are trained on a small and inadequate dataset disjoint to the one for training the victim model.
Introduction
Adversarial attacks—perturbing an image slightly to make a model misclassify it—are well-understood in "white-box" settings where the attacker has full access to the model's internal gradients. However, in "black-box" settings (like attacking a cloud API), the attacker only sees the output confidence scores.
To find the right perturbation without internal access, attackers usually rely on zeroth-order optimization, which involves "poking" the model with thousands of slightly different versions of an image to estimate which direction the gradient is moving. Because images are high-dimensional (thousands of pixels), this process is incredibly "query-hungry," making it expensive, slow, and easy for a system administrator to detect and block. The "Subspace Attack" addresses this by searching for adversarial perturbations within a low-dimensional subspace.
Methodology
The authors propose a hybrid approach that bridges the gap between transfer-based attacks (which use a local surrogate model) and query-based attacks (which estimate gradients through trial and error).
- Subspace Exploration: Instead of searching the entire high-dimensional space of all possible pixel changes, the search is restricted to a much smaller subspace spanned by the gradients of a few "reference models" (e.g., standard pre-trained models like ResNet or VGG).
- Coordinate Descent for Efficiency: To avoid the computational burden of loading many reference models at once, the algorithm uses a coordinate descent approach. It picks one reference model at a time, calculates its gradient, and uses it as a "heuristic search direction" to update the adversarial image.
- Dropout/Droplayer for Exploration: If the attacker only has a few reference models, the search space might be too narrow. The authors use dropout and stochastic depth to generate a diverse "spectrum" of gradients from a single model, effectively enriching the search subspace without needing more data.
Experimental Evaluation
The researchers evaluated their method on two primary benchmarks:
- CIFAR-10 & CIFAR-10.1: Used to ensure no data overlap between reference and victim models.
- ImageNet: A large-scale dataset for high-resolution testing.
- Victim Models: High-performing architectures including Wide Residual Networks (WRN), GDAS, PyramidNet, Inception-v3, PNAS-Net, and SENet.
Key Results and Insights
The Subspace Attack consistently outperformed existing methods like NES and Bandits-TD. On CIFAR-10, the method reduced the mean number of queries by roughly 2x and the median queries by up to 4.4x.
A critical insight is the "Intrinsic Dimension": while images have thousands of pixels, the "useful" directions for an attack are much fewer. Even random subspaces of a few hundred dimensions can work, but using informed subspaces (gradients from reference models) is far more efficient. As shown in the comparison below, using prior gradients significantly lowers the failure rate compared to random subspaces.
Furthermore, the attack remains highly effective even when reference models are trained on a tiny, separate dataset (only 2,000 images), proving that the "prior knowledge" of how gradients behave is robust across data distributions.
Conclusion
The Subspace Attack demonstrates that transferability can be used to guide gradient estimation, achieving high efficiency with low failure rates. While the method requires reference models, it is flexible enough to use "old-fashioned" models to attack modern architectures. Future work may explore integrating this subspace approach with other zeroth-order algorithms and developing defenses that can detect "subspace-aligned" query patterns.
Summary updated